Skip to content

Instantly share code, notes, and snippets.

View flashingpumpkin's full-sized avatar
🏠
Working from home

Alen Mujezinovic flashingpumpkin

🏠
Working from home
View GitHub Profile
(function() {
// Do not use this library. This is just a fun example to prove a
// point.
var Bloop = window.Bloop = {};
var mountId = 0;
function newMountId() {
return mountId++;
}
import scala.xml.{Node, Elem, Group}
/**
* A path to a Node in a Node tree.
*/
sealed trait NodePath {
def depth: Int
}
object NodePath {
package test.zipper
object TreeZipper extends App {
println("hello")
// exp 2 * 3 + 4 * 6
val _2 = Node("2", Nil)
val _3 = Node("3", Nil)
#!/usr/bin/env ruby
require "rubygems"
require "spidr"
require "open-uri"
=begin
= CSS snowball
Rolls through your site, picking up style attributes and making you
a new stylesheet. Once you've got your stylesheet, run it through
object ApplicationBuild extends Build {
val appName = "society20-app"
val appVersion = "1.0-SNAPSHOT"
val appDependencies = Seq(
"commons-codec" % "commons-codec" % "1.6")
val main = PlayProject( appName, appVersion, appDependencies, mainLang = SCALA ).settings()
}

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google
from pretend import stub
class Comparison(object):
def __or__(self, other):
return Or(self, other)
def __and__(self, other):
return And(self, other)
def __call__(self):
@flashingpumpkin
flashingpumpkin / pins.geojson
Created September 17, 2013 11:18
GeoJSON format for importing content into Pin Drop
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@flashingpumpkin
flashingpumpkin / .Xmodmap
Created September 15, 2013 10:43
Swapping Option (Alt) and Command (Meta/Super) keys on an Apple keyboard for use in Linux / Emacs
clear Mod1
clear Mod2
clear Mod3
clear Mod4
clear Mod5
keycode 133 = Alt_L Meta_L
keycode 134 = ISO_Level3_Shift
keycode 108 = Super_R
/*global angular: true, google: true, _ : true */
'use strict';
angular.module('geocoder', ['ngStorage']).factory('Geocoder', function ($localStorage, $q, $timeout) {
var locations = $localStorage.locations ? JSON.parse($localStorage.locations) : {};
var queue = [];
// Amount of time (in milliseconds) to pause between each trip to the