Skip to content

Instantly share code, notes, and snippets.


Nate Murray jashmenn

View GitHub Profile
View 01-popcorn.css.scss
* Author: Nate Murray
* URL:
* Project Name: This is the CSS file for Popcorn! The best way to learn AngularJS and Ruby on Rails
/* We start by loading the bootstrap 3 "Bolt" */
View dummy-movies.js
// app/assets/javascripts/app/controllers/movies.js
'use strict';
.controller('MoviesController', ["$scope",
function($scope) {
$scope.movies = [
youtubeId: "8Eg6yIwP2vs",
jashmenn / .rvmrc
Created February 4, 2014 17:51
View .rvmrc
#!/usr/bin/env bash
# This is an RVM Project .rvmrc file, used to automatically load the ruby
# development environment upon cd'ing into the directory
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional,
# Only full ruby name is supported here, for short names use:
# echo "rvm use 1.9.3" > .rvmrc
View Protocol.txt
BTCmsg Protocol v1 (2011-09-18)
Each message is represented by multiple payment which is calculated by
the following algorithm:
1. Two first chars for message type ('01' for md5, '02' for ascii).
2. Then the message in hex (python binascii.hexlify).
3. Split the long string to groups of 4 hex digits.
4. Each group of 4 hex (e.g. 2 ascii letters from the message) is
represented by a payment in satoshi (maximum 0xffff=65535).
jashmenn / simple-parabola.swift
Last active August 29, 2015 14:02
This gist is an OSX Playground to draw parabola-like lines. If you'd like to get lessons like this in your inbox, sign up at
View simple-parabola.swift
// This gist is an OSX Playground to draw parabola-like lines.
// If you'd like to get lessons like this in your inbox, sign up at
// Preview results image:
import Cocoa
import XCPlayground
// create a place to view the image we're going to draw
var view = NSImageView(frame:
NSRect(x: 0, y: 0, width: 300, height: 300))
jashmenn /
Created October 1, 2014 18:05

Keybase proof

I hereby claim:

  • I am jashmenn on github.
  • I am eigenjoy ( on keybase.
  • I have a public key whose fingerprint is 1788 8F0E 2E14 207F 54A2 9CFC CAFA 3035 D99F 10A4

To claim this, I am signing this object:

View dumb_graph.js
function sum (fn, xs) {
var toRet = 0;
for (var i = 0, ii = xs.length; i < ii; i++) {
toRet += fn(xs[i], i, xs);
return toRet;
function update(t, o) {
for (var k in o) {
View annotation.rb
a = {
"annotations" => [
"x" => 19,
"y" => 20,
"w" => 50,
"h" => 50,
"predictions" => {
"green" => 0.2,
View rename-file-and-buffer.el
;; source:
(defun rename-file-and-buffer (new-name)
"Renames both current buffer and file it's visiting to NEW-NAME."
(interactive "sNew name: ")
(let ((name (buffer-name))
(filename (buffer-file-name)))
(if (not filename)
(message "Buffer '%s' is not visiting a file!" name)
(if (get-buffer new-name)
(message "A buffer named '%s' already exists!" new-name)
jashmenn / gist:6206
Created August 19, 2008 17:24
growl notify for irssi
View gist:6206
upgraded to a real git repository. Please see: