Skip to content

Instantly share code, notes, and snippets.

Stacey Lynn capicue

Block or report user

Report or block capicue

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@capicue
capicue / index.html
Created Oct 20, 2016
Elmoji Translator
View index.html
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>Elmoji Translator</title>
<script type="text/javascript" src="main.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.7/css/materialize.min.css">
<link rel="stylesheet" href="main.css">
@capicue
capicue / Main.js
Last active Dec 10, 2015
Hexagons 2
View Main.js
var Elm = Elm || { Native: {} };
Elm.Native.Array = {};
Elm.Native.Array.make = function(localRuntime) {
localRuntime.Native = localRuntime.Native || {};
localRuntime.Native.Array = localRuntime.Native.Array || {};
if (localRuntime.Native.Array.values)
{
return localRuntime.Native.Array.values;
}
View monad.md

Monads and Functors

The Monad class defines the basic operations over a monad, a concept from a branch of mathematics known as category theory. From the perspective of a Haskell programmer, however, it is best to think of a monad as an abstract datatype of actions. Haskell's do expressions provide a convenient syntax for writing monadic expressions.

Monadic Classes

class Functor f where
  fmap :: (a -> b) -> f a -> f b
View Markdown.elm
import Html (..)
import Html.Attributes (..)
import Html.Events (..)
import Signal ((<~), Signal)
import Signal
import Markdown
-- MODEL --
@capicue
capicue / head.min.js
Last active Aug 29, 2015
Introductions
View head.min.js
/**
Head JS The only script in your <HEAD>
Copyright Tero Piirainen (tipiirai)
License MIT / http://bit.ly/mit-license
Version 0.96
http://headjs.com
*/(function(a){function z(){d||(d=!0,s(e,function(a){p(a)}))}function y(c,d){var e=a.createElement("script");e.type="text/"+(c.type||"javascript"),e.src=c.src||c,e.async=!1,e.onreadystatechange=e.onload=function(){var a=e.readyState;!d.done&&(!a||/loaded|complete/.test(a))&&(d.done=!0,d())},(a.body||b).appendChild(e)}function x(a,b){if(a.state==o)return b&&b();if(a.state==n)return k.ready(a.name,b);if(a.state==m)return a.onpreload.push(function(){x(a,b)});a.state=n,y(a.url,function(){a.state=o,b&&b(),s(g[a.name],function(a){p(a)}),u()&&d&&s(g.ALL,function(a){p(a)})})}function w(a,b){a.state===undefined&&(a.state=m,a.onpreload=[],y({src:a.url,type:"cache"},function(){v(a)}))}function v(a){a.state=l,s(a.onpreload,function(a){a.call()})}function u(a){a=a||h;var b;for(var c in a){if(a.hasOwnProperty(c)&&a[c].state!=o)return!1;b=!0}
View keybase.md

Keybase proof

I hereby claim:

  • I am capicue on github.
  • I am capicue (https://keybase.io/capicue) on keybase.
  • I have a public key whose fingerprint is FCD9 92E7 F025 03DA 95A0 A06F E0BD EB62 E20F F530

To claim this, I am signing this object:

View gist:361509
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/hash/keys.rb:47:in `assert_valid_keys': Unknown key(s): autosave (ArgumentError)
from /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/associations.rb:1530:in `create_has_many_reflection'
from /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/associations.rb:822:in `has_many'
from (eval):3:in `has_many'
from /Users/stacey/Programming/rails/pasteweb/app/models/order.rb:35
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:380:in `load_without_new_constant_marking'
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:380:in `load_file'
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:379:in `load_file'
from /opt/local/lib/ruby/gems/1.8
View gist:358176
| 1 | 2 | 3 | doors
| | | |
| 1/3 | 1/3 | 1/3 | initial probability
| | | |
| 1/3 | 1/3 | 1/3 | you pick door 1
| | | |
| 1/3 | 0 | 2/3 | he opens door 2 to reveal a goat
You can’t perform that action at this time.