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
| ########################################################## | |
| # How to NEVER use Lambdas. An inneficient and yet educa-# | |
| # tonal guide to the proper misuse of the lambda constru-# | |
| # ct in Python 2.x. [DO NOT USE ANY OF THIS EVER] # | |
| # by: e000 (13/6/11) # | |
| ########################################################## | |
| ## Part 1. Basic LAMBDA Introduction ## | |
| # Well, it's worth diving straight into what lambdas are. | |
| # Lambdas are pretty much anonymous "one line" functions |
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
| $snapins = Get-PSSnapin -Registered | |
| $snapins | Add-PSSnapin | |
| Get-Module -ListAvailable | Import-Module | |
| Get-PSSnapin | Format-Table -autosize PSVersion, Name | |
| Get-Module | Format-Table -autosize ModuleType, Name | |
| function ff ([string] $glob) { get-childitem -recurse -include $glob } |
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
| /** | |
| * Part Zero : 10:15 Saturday Night | |
| * | |
| * (In which we will see how to let the type system help you handle failure)... | |
| * | |
| * First let's define a domain. (All the following requires scala 2.9.x and scalaz 6.0) | |
| */ | |
| import scalaz._ | |
| import Scalaz._ |
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
| function pp(object, depth, embedded) { | |
| typeof(depth) == "number" || (depth = 0) | |
| typeof(embedded) == "boolean" || (embedded = false) | |
| var newline = false | |
| var spacer = function(depth) { var spaces = ""; for (var i=0;i<depth;i++) { spaces += " "}; return spaces } | |
| var pretty = "" | |
| if ( typeof(object) == "undefined" ) { pretty += "undefined" } | |
| else if ( typeof(object) == "boolean" || | |
| typeof(object) == "number" ) { pretty += object.toString() } | |
| else if ( typeof(object) == "string" ) { pretty += "\"" + object + "\"" } |
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
| // [snippet: Async socket server using F# async computations.] | |
| open System | |
| open System.IO | |
| open System.Net | |
| open System.Net.Sockets | |
| open System.Threading | |
| type Socket with | |
| member socket.AsyncAccept() = Async.FromBeginEnd(socket.BeginAccept, socket.EndAccept) |
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
| ּ_בּ | |
| בּ_בּ | |
| טּ_טּ | |
| כּ‗כּ | |
| לּ_לּ | |
| מּ_מּ | |
| סּ_סּ | |
| תּ_תּ | |
| ٩(×̯×)۶ | |
| ٩(̾●̮̮̃̾•̃̾)۶ |
NewerOlder