Skip to content

Instantly share code, notes, and snippets.

View jashmenn's full-sized avatar

Nate Murray jashmenn

View GitHub Profile
// app/assets/javascripts/app/controllers/movies.js
'use strict';
angular.module('popcornApp')
.controller('MoviesController', ["$scope",
function($scope) {
$scope.movies = [
{
youtubeId: "8Eg6yIwP2vs",
/*
* Author: Nate Murray
* URL: http://fullstack.io
* Project Name: This is the CSS file for Popcorn! The best way to learn AngularJS and Ruby on Rails
*
*/
/* We start by loading the blocktie.co bootstrap 3 "Bolt" */
/*
@jashmenn
jashmenn / .rvmrc
Created February 4, 2014 17:51
.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
environment_id="ruby-1.9.3-p194@ios"
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
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 https://fullstackedu.com
// 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 https://fullstackedu.com
// Preview results image: http://i.imgur.com/h2VeRDv.png
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
jashmenn / keybase.md
Created October 1, 2014 18:05
keybase.md

Keybase proof

I hereby claim:

  • I am jashmenn on github.
  • I am eigenjoy (https://keybase.io/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:

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) {
a = {
"annotations" => [
{
"x" => 19,
"y" => 20,
"w" => 50,
"h" => 50,
"predictions" => {
"green" => 0.2,
;; source: http://steve.yegge.googlepages.com/my-dot-emacs-file
(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
jashmenn / gist:6206
Created August 19, 2008 17:24
growl notify for irssi
upgraded to a real git repository. Please see: http://github.com/jashmenn/irssi-growl