This file contains 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 <ctype.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include "sprite.h" | |
#define GAME_FILE "config/game.lisp" | |
enum NodeType { |
This file contains 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 <ctype.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define DATA_FILE "data.lisp" | |
struct Node { | |
char *data; | |
struct Node *next; |
This file contains 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-Type -AssemblyName System.Xml.Linq | |
$reader = [System.Xml.XmlReader]::Create("./magnified.xml") | |
$reader.ReadStartElement("response") | |
$reader.ReadStartElement("row") | |
$csv = @() | |
while(!$reader.EOF) { |
This file contains 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
(defmacro do-until-eof (line &body body) | |
`(loop for ,line = (read-line *standard-input* nil :eof) | |
until (eq ,line :eof) | |
do ,@body)) |
This file contains 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 Main exposing (main) | |
import Array exposing (Array) | |
import Html exposing (Html) | |
import Json.Decode as Decode | |
import Svg | |
import Svg.Attributes as Attributes | |
import Svg.Events as Events | |
This file contains 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 Main exposing (main) | |
import Html exposing (Html) | |
import Html.Attributes as Attributes | |
main : Html msg | |
main = | |
Html.div [ Attributes.class "container" ] | |
[ Html.div [ Attributes.class "row header"] | |
[ Html.h2 [] [ Html.text "Firebird Admin" ] |
This file contains 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 Main exposing (main) | |
import Html exposing (Html) | |
import Html.Events as Events | |
import Json.Decode as Decode | |
type alias KeyUpEvent = | |
{ ctrlKey : Bool | |
, key : String |
This file contains 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
// Build the pipelines | |
const isRoot = where({ parentId: isNil }); | |
const isNotRoot = complement(isRoot); | |
const assembleLookup = (accumulator, current) => { | |
const key = current.parentId; | |
const lookup = compose(append(current), propOr([], key)); | |
return assoc(key, lookup(accumulator), accumulator); | |
}; |
This file contains 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 Main exposing (..) | |
import Html exposing (Html, beginnerProgram, div, form, textarea) | |
import Html.Attributes exposing (name) | |
import Html.Events exposing (on) | |
import Json.Decode as Json | |
import Dict exposing (Dict) | |
type alias Model = |
This file contains 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 (QUnit) { | |
if (!window.console) { | |
window.console = { | |
log: function () { } | |
}; | |
} | |
var tcEscape = function (str) { | |
str = str ? str.toString() : ""; |