I hereby claim:
- I am z5h on github.
- I am bolusmjak (https://keybase.io/bolusmjak) on keybase.
- I have a public key whose fingerprint is RETU RN T HIS. PGP. GET_ FING ERPR INT( ); }
To claim this, I am signing this object:
; Stumbling towards Y | |
; | |
; The applicative-order Y combinator is a function that allows one | |
; to create a recursive function without using define. | |
; This may seem strange. Usually a recursive function has to call | |
; itself, and thus relies on itself having been defined. | |
; | |
; Regardless, here we will stumble towards the implementation of the | |
; Y combinator (in Scheme). |
#lang scheme | |
(define grammar1 | |
'((T (R)) | |
(T ("a" T "c")) | |
(R ()) | |
(R (R "b" R)))) | |
(define grammar2 | |
'((T (R)) |
; Stumbling towards Y (Clojure Version) | |
; | |
; (this tutorial can be cut & pasted into your IDE / editor) | |
; | |
; The applicative-order Y combinator is a function that allows one to create a | |
; recursive function without using define. | |
; This may seem strange, because usually a recursive function has to call | |
; itself, and thus relies on itself having been defined. | |
; | |
; Regardless, here we will stumble towards the implementation of the Y combinator. |
#!/usr/bin/env ruby | |
# example use: join-on Gemfile "gem '([^']*)'" Gemfile.lock " *([^ ]*)" | |
file1, cap1, file2, cap2 = *ARGV | |
r1 = Regexp.new(cap1) | |
r2 = Regexp.new(cap2) | |
line_match_number = [] | |
n = 0 | |
max_len = 0 | |
File.open(file1).each do |line| |
/** @jsx React.DOM */ | |
"use strict"; | |
var util = { | |
// findPos() by quirksmode.org | |
// Finds the absolute position of an element on a page | |
findPos: function (obj) { | |
var curleft = 0, | |
curtop = 0; |
/** | |
* Get the result of updating `obj` with `props`, while treating `obj` | |
* as immutable. | |
*/ | |
var update = function(obj, props){ | |
var keys = Object.keys(props), | |
key, | |
changed = false, | |
i; |
I hereby claim:
To claim this, I am signing this object:
import Html exposing (..) | |
import Html.Attributes exposing (..) | |
import Html.Events exposing (..) | |
type Action | |
= NoOp | |
| EditEntry Entry String | |
type alias Entry = |
module TimeApp ( start, Config, App ) where | |
{-| This module helps you start your application in a typical Elm workflow. | |
It assumes you are following [the Elm Architecture][arch] and using | |
[elm-effects][]. From there it will wire everything up for you! | |
**Be sure to [read the Elm Architecture tutorial][arch] to learn how this all | |
works!** | |
[arch]: https://github.com/evancz/elm-architecture-tutorial | |
[elm-effects]: http://package.elm-lang.org/packages/evancz/elm-effects/latest |