Skip to content

Instantly share code, notes, and snippets.

View heath's full-sized avatar
❄️
λΠ

heath

❄️
λΠ
View GitHub Profile
@heath
heath / computer.md
Last active August 29, 2015 13:55
asking price: $400

Intel Core i5-2310 CPU @ 2.90GHz, 4 cores

2 hard drives

24GB System Memory (32GB max capacity)

  • 2 8GB DIMM DDR3 1333MHz chips
  • 2 4GB DIMM DDR3 1333MHz chips
# stuff...
.state 'inbox.results',
url: '/results/:order'
templateUrl: '/scripts/components/inbox/results.html'
controller: 'ResultsCtrl'
# more stuff...
#updated version...
(ns async-tutl.core
(:require [goog.dom :as dom])
)
(enable-console-print!)
(.log js/console (dom/getElement "query"))
(println "Hello world!")
.upload-stuff
form(method="post", action="{{form_action}}", enctype="multipart/form-data", target="upload-iframe")
input.file(name="pFile", type="file", onchange='angular.element(this).scope().file_selected("ps")')
input.file(name="rFile", type="file", onchange='angular.element(this).scope().file_selected("rs")')
@heath
heath / foo.idr
Last active August 29, 2015 13:56
module Main
recTest : Integer -> Integer
recTest = recTestHelper 1
where
recTestHelper : Integer -> Integer -> Integer
recTestHelper n 0 = n
recTestHelper n m = recTestHelper (n * m) (m - 1)
@heath
heath / gist:8919206
Last active August 29, 2015 13:56
developer learning clojurescript
Developer: Hi, I want to write a web application.
ClojureScript: Great!
Developer: Um… how do I get a reference to a DOM element?
ClojureScript: That depends.
Developer: On what?
ClojureScript: Well, are you going to use JavaScript directly, use Google’s Closure library, or try a ClojureScript library like Domina or Enfocus? There are also radical alternatives to manipulating the DOM like Pedestal and Om.
Developer: Uh… I don’t know.
Developer spends the next half-day evaluating the ClojureScript options.
Some days later:
# skey = process.env["SAUCEKEY"]
# suser = process.env["SAUCEUSER"]
exports.config =
allScriptsTimeout: 10000
capabilities:
browserName: "chrome"
framwork: "cucumber"
#fp style
angular.module('app')
.controller 'OverviewCtrl', [ '$scope', '$state'
($scope, $state) ->
foo = "foo"
angular.extend $scope, {
foo
}
[hsenv](d)➜ idris-tutorial git:(master) pandoc -s idris-tutorial.tex -o idris-tutorial.md
pandoc:
Error at "source" (line 1875, column 9):
unexpected " "
expecting "{" or "\\"
vec = (_ ** [3, 4])
vagrant@vagrant-ubuntu-trusty-64:~/.emacs.d/fsharpbinding/emacs$ make
mkdir -p /home/vagrant/.emacs.d/fsharpbinding/emacs/bin
xbuild /home/vagrant/.emacs.d/fsharpbinding/FSharp.AutoComplete/FSharp.AutoComplete.fsproj /property:OutputPath="/home/vagrant/.emacs.d/fsharpbinding/emacs/bin"
XBuild Engine Version 12.0
Mono, Version 3.2.8.0
Copyright (C) 2005-2013 Various Mono authors
Build started 4/9/2014 2:21:18 AM.
__________________________________________________
Project "/home/vagrant/.emacs.d/fsharpbinding/FSharp.AutoComplete/FSharp.AutoComplete.fsproj" (default target(s)):