Skip to content

Instantly share code, notes, and snippets.

View suranyami's full-sized avatar

David Parry suranyami

View GitHub Profile
@suranyami
suranyami / .block
Last active November 15, 2017 00:51
D3 experiments
license: gpl-3.0
@suranyami
suranyami / .block
Created November 14, 2017 02:48
fresh block
license: mit
@suranyami
suranyami / index.html
Created September 18, 2014 07:55
Minimal Rivets.js example
<div id="details">
<h1 id='head'>{user.firstName}</h1>
<h2 rv-text='user.surname'></h2>
<input id='input' type='text' rv-value="user.firstName">
</div>
<script src='rivets.js'></script>
<script>
var user = {
@suranyami
suranyami / erlang.rb
Last active August 29, 2015 14:00 — forked from dch/erlang.rb
Install OTP 17.0 via homebrew: `brew install wxmac && brew install --no-docs --with-dirty-schedulers --time -v https://gist.githubusercontent.com/suranyami/11205570/raw/f05c10bd6f288d39c7e577f0c72ab43580cfdae6/erlang.rb`
require 'formula'
# Major releases of erlang should typically start out as separate formula in
# Homebrew-versions, and only be merged to master when things like couchdb and
# elixir are compatible.
class Erlang < Formula
homepage 'http://www.erlang.org'
url 'http://www.erlang.org/download/otp_src_17.0.tar.gz'
sha1 '642f29673bdd01f14c980ca5e556e6e1199b9672'
@suranyami
suranyami / fails.coffee
Last active August 29, 2015 13:58
The following are the same specs (taken from here: http://jweden.tumblr.com/post/66999796589/async-testing-in-jasmine-2-0 ), working one in Javascript, the other, converted to Coffeescript (with js2coffee). The JS passes, the Coffeescript fails.
describe "Asynchronous specs", ->
funcRunInBackground = ->
value = 1
return
wrapFuncRunInBackground = (done) ->
# setup for simmulating the async operation, a function run in the background
setTimeout (->
funcRunInBackground()
done()
@suranyami
suranyami / keybase.md
Created March 12, 2014 11:56
keybase.md

Keybase proof

I hereby claim:

  • I am suranyami on github.
  • I am suranyami (https://keybase.io/suranyami) on keybase.
  • I have a public key whose fingerprint is CA02 FEA6 76D1 9308 82D1 BD26 8730 7AB0 39DA DBA8

To claim this, I am signing this object:

@suranyami
suranyami / marker-style.html
Created November 29, 2011 02:30
Styling a list marker in CSS
<!doctype html>
<html>
<head>
<title>Marker example</title>
<style>
body {
font-size: 14px;
}
li {
@suranyami
suranyami / 0_instructions.md
Created August 18, 2011 13:26 — forked from eric1234/0_instructions.txt
Using Sprockets 2 in Rails 3.0.x with CoffeeScript & SASS

Some brief instructions on how to use Sprocket 2 in Rails to get CoffeeScript powered JS and SASS powered CSS with YUI compression all via the magic of rack.

This stuff will be native in Rails 3.1 and the layout of the files on the filesystem will be different but this guide will get you working with it while we wait for all that to finalize.

Ignore the number prefixes on each file. This is just to ensure proper order in the Gist.

Note from suranyami: