Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| Choose a ticket class: <select id="tickets"></select> | |
| <p id="ticketOutput"></p> | |
| <script id="ticketTemplate" type="text/x-jquery-tmpl"> | |
| {{if chosenTicket}} | |
| You have chosen <b>${ chosenTicket().name }</b> | |
| ($${ chosenTicket().price }) | |
| <button data-bind="click: resetTicket">Clear</button> | |
| {{/if}} |
| // http://haacked.com/archive/2009/01/14/named-formats-redux.aspx#70485 | |
| using System; | |
| using System.Text; | |
| using System.Web; | |
| using System.Web.UI; | |
| namespace StringLib | |
| { | |
| public static class HenriFormatter |
| namespace MyNamespace | |
| type IMyInterface = | |
| abstract GetValue: unit -> string | |
| type MyRecord = | |
| { MyField1: int | |
| MyField2: string } | |
| interface IMyInterface with | |
| member x.GetValue() = x.MyField2 |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| private static readonly string[] tenHoursOfFun = | |
| { | |
| "https://www.youtube.com/watch?v=wbby9coDRCk", | |
| "https://www.youtube.com/watch?v=nb2evY0kmpQ", | |
| "https://www.youtube.com/watch?v=eh7lp9umG2I", | |
| "https://www.youtube.com/watch?v=z9Uz1icjwrM", | |
| "https://www.youtube.com/watch?v=Sagg08DrO5U", | |
| "https://www.youtube.com/watch?v=5XmjJvJTyx0", | |
| "https://www.youtube.com/watch?v=IkdmOVejUlI", | |
| "https://www.youtube.com/watch?v=jScuYd3_xdQ", |
| // paket add nuget NEST | |
| #I "../../packages" | |
| #r "Elasticsearch.Net/lib/net46/Elasticsearch.Net.dll" | |
| #r "NEST/lib/net46/Nest.dll" | |
| open System | |
| //open Elasticsearch.Net | |
| open Nest |
| Modules.addCached("DSD6OLED",function(){ | |
| //modified SSD1306, 128x32 but needs 0xda,0x12 | |
| // commands sent when initialising the display | |
| var initCmds = new Uint8Array([ | |
| 0xAe, // 0 disp off | |
| 0xD5, // 1 clk div | |
| 0x80, // 2 suggested ratio | |
| 0xA8, 31, // 3 set multiplex, height-1 | |
| 0xD3,0x0, // 5 display offset | |
| 0x40, // 7 start line |