| title | description | author | created | updated | ||
|---|---|---|---|---|---|---|
{{title}} |
{{description}} |
{{author}} |
|
|
🙋♂️
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Function to display usage information | |
| usage() { | |
| echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]" | |
| exit 1 | |
| } | |
| # Check if at least one argument (input file) is provided | |
| if [ $# -lt 1 ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Add color coding based on Rails environment for safety | |
| if defined? Rails | |
| banner = if Rails.env.production? | |
| "\e[41;97;1m #{Rails.env} \e[0m " | |
| else | |
| "\e[42;97;1m #{Rails.env} \e[0m " | |
| end | |
| # Build a custom prompt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // F<'a> is any type with member 'map' of type ('a -> 'b) -> F<'a> -> F<'b> | |
| type F<'a> = QIL<'a> | |
| and S<'a> = F<Q<'a>> | |
| and Q<'a> = | |
| private | |
| | Step of Step<'a> | |
| | Bind of IBind<'a> | |
| with | |
| static member lift (k : F<'a>) : Q<'a> = Step (Suspend (fun () -> S<_>.map (Yield >> Step) k)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #load @"paket-files/fsprojects/Chessie/src/Chessie/ErrorHandling.fs" | |
| type Continuation<'output, 'next> = 'output -> 'next | |
| module TerminalDsl = | |
| open Chessie.ErrorHandling | |
| type Terminal<'next> = | |
| | WriteLine of string * Continuation<unit, 'next> | |
| | ReadLine of unit * Continuation<string, 'next> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #I @"packages\FSharp.Data.Toolbox.Twitter.0.6\lib\net40" | |
| #I @"packages\FSharp.Data.2.1.1\lib\net40" | |
| #r @".\packages\FSharp.Data.Toolbox.Twitter.0.6\lib\net40\FSharp.Data.Toolbox.Twitter.dll" | |
| #r @".\packages\FSharp.Data.2.1.1\lib\net40\FSharp.Data.dll" | |
| open FSharp.Data.Toolbox.Twitter | |
| // Check out https://apps.twitter.com for more info on getting key & secret! | |
| let key = "" //Insert key here! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module DapperFSharp = | |
| open System.Data.SqlClient | |
| open System.Dynamic | |
| open System.Collections.Generic | |
| open Dapper | |
| let dapperQuery<'Result> (query:string) (connection:SqlConnection) = | |
| connection.Query<'Result>(query) | |
| let dapperParametrizedQuery<'Result> (query:string) (param:obj) (connection:SqlConnection) : 'Result seq = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <title>Sample iGoogle Page</title> | |
| <style type="text/css"> | |
| /* Entire Page has been divided into 3Columns. | |
| Note: iGoogle Page has 3 columns */ |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)