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 Elmish.Boxes | |
| open System | |
| open Fable.React.Helpers | |
| open Fable.React.Props | |
| open Fable.React.Standard | |
| [<AutoOpen>] | |
| module Domain = |
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
| {-# LANGUAGE RecordWildCards, Arrows #-} | |
| import Numeric | |
| import Data.Char | |
| import Control.Monad | |
| import Data.Monoid ((<>)) | |
| import Data.List (nub, sort, reverse) | |
| data RepeatBounds = RB |
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
| import haxe.macro.Context; | |
| import haxe.macro.Expr; | |
| import haxe.macro.TypeTools; | |
| #if !macro | |
| @:genericBuild(PartialMacro.build()) | |
| #end | |
| class Partial<T> {} | |
| class PartialMacro { |
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
| // Xeno | |
| enum Xeno_Kind { | |
| XENO_POINTER, | |
| XENO_AGGREGATE, | |
| XENO_FIRST_PRIMITIVE_TYPE, | |
| XENO_UINT8 = XENO_FIRST_PRIMITIVE_TYPE, | |
| XENO_UINT16, | |
| XENO_UINT32, | |
| XENO_UINT64, |
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
| import haxe.macro.Context; | |
| import haxe.macro.Expr; | |
| class Macros { | |
| macro public static function autoInt():Array<Field> { | |
| var fields = Context.getBuildFields(); | |
| var t = switch(Context.getLocalClass().get().kind) { | |
| case KAbstractImpl(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
| {-# LANGUAGE TypeSynonymInstances #-} | |
| import Data.Monoid | |
| import Data.Maybe | |
| -- How much water does a "histogram" hold? | |
| -- | |
| -- Inspired by Guy Steele's talk "Four Solutions to a Trivial Problem" | |
| -- https://www.youtube.com/watch?v=ftcIcn8AmSY |
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
| #include <iostream> | |
| #include <memory> | |
| #include <string> | |
| #include "repository.hpp" | |
| // Incomplete types used as compile-time keys. | |
| struct Key1; | |
| struct Key2; |
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
| aws lambda invoke \ | |
| --function-name clj-hello \ | |
| --payload \"Dave\" \ | |
| output | |
| # or... | |
| aws lambda invoke --function-name clj-hello --payload \"Dave\" output | |
| # either way, the response from your function goes in the file "output" |
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> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
| <script type="text/javascript"> | |
| $(function() { | |
| window.WebSocket = window.WebSocket || window.MozWebSocket; | |
| var websocket = new WebSocket('ws://127.0.0.1:9000', |
NewerOlder