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
| using System; | |
| using static Exceptions; | |
| class MainClass | |
| { | |
| public static void Main(string[] args) | |
| { | |
| throw NRE; | |
| } | |
| } |
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
| using System; | |
| using System.Xml; | |
| class MainClass : Variables | |
| { | |
| public static void Main(string[] args) | |
| { | |
| new MainClass().StaticIsEvilForSure(); | |
| } |
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
| using System; | |
| using System.Xml; | |
| using static Variables; | |
| class MainClass | |
| { | |
| public static void Main(string[] args) | |
| { | |
| for (i = 0; i < 10; i++) | |
| { |
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
| JSON={ | |
| parse:function(str,options) { | |
| this.str = str; | |
| this.i = 0; | |
| this.nfirstchars = '-0123456789.'; | |
| this.nchars = '-0123456789.eE'; | |
| this.n | |
| return this.parseValue(); | |
| }, | |
| isWhiteSpace:function(c) { |
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
| type json = | |
| | Number of float | |
| | String of string | |
| | Boolean of bool | |
| | Array of json list | |
| | Object of (string * json) list | |
| | Null | |
| static member (?) (this,name:string) = | |
| match this with | |
| | Object xs -> xs |> List.find (fst >> (=) name) |> snd |
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
| #r @"packages/FSharp.Data/lib/net40/FSharp.Data.dll" | |
| #load "FsHtml.fs" // "paket-files/ptrelford/FsHtml/src/FsHtml.fs" | |
| open System | |
| open FSharp.Data | |
| open FsHtml | |
| type Events = JsonProvider<"https://api.meetup.com/fsharplondon/events?&sign=true&photo-host=public&page=200&status=past,upcoming"> | |
| let meetups = [ |
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
| #r "System.Drawing.dll" | |
| #r "System.Windows.Forms.dll" | |
| #r @"./packages/MonoGame.Framework.WindowsDX.3.4.0.459/lib/net40/MonoGame.Framework.dll" | |
| open Microsoft.Xna.Framework | |
| open Microsoft.Xna.Framework.Graphics | |
| open Microsoft.Xna.Framework.Input | |
| module Text = | |
| open System.IO |
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
| #r "PresentationCore.dll" | |
| #r "PresentationFramework.dll" | |
| #r "WindowsBase.dll" | |
| open System | |
| open System.Windows | |
| open System.Windows.Controls | |
| open System.Windows.Media | |
| let w, h = 800.0, 600.0 |
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
| #r "PresentationCore.dll" | |
| #r "PresentationFramework.dll" | |
| #r "WindowsBase.dll" | |
| #r "WriteableBitmapEx.Wpf.dll" // requires custom version with DrawString | |
| open System | |
| open System.Windows | |
| open System.Windows.Controls | |
| open System.Windows.Media | |
| open System.Windows.Media.Imaging |
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
| package main | |
| import ( | |
| "fmt" | |
| "image" | |
| "image/color" | |
| "image/png" | |
| "math" | |
| "math/rand" | |
| "os" |
NewerOlder