Skip to content

Instantly share code, notes, and snippets.

@staltz
staltz / introrx.md
Last active July 29, 2024 05:55
The introduction to Reactive Programming you've been missing
/*
Copyright (c) 2014 Michael Polyak. All Rights Reserved.
mpolyak@gmail.com
HighSea v2.7.6
*/
if (this.queue === undefined)
{
@negue
negue / NinePatchGroup.js
Created March 1, 2014 01:23
Phaser NinePatchGroup
/**
* NinePatchGroup
*
* @author Negue
* @extends {Phaser.Group}
* @param game
* @constructor
*/
var NinePatchGroup = function (game, x, y, targetWidth, targetHeight, imageKey) {
Phaser.Group.call(this, game);
@jakob-e
jakob-e / unitconversion.scss
Last active October 26, 2022 17:20
SCSS unit conversion functions
// ==========================================================
// Unit Conversion
// ==========================================================
//
// Functions:
// ----------------------------------------------------------
//
// NUMBER:
//
// isNaN($value) - returns true or false if type-of($value)==number
require 'rubygems'
require 'mechanize'
FIRST_NAME = 'FIRST_NAME'
LAST_NAME = 'LAST_NAME'
PHONE = 'PHONE'
EMAIL = 'EMAIL@provider.com'
PARTY_SIZE = 2
SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' }
@d3noob
d3noob / .block
Last active November 30, 2019 18:26
World map with zoom / pan and cities
license: mit
@diogomonica
diogomonica / bigfiles
Created January 7, 2011 14:41
Finds all files bigger than 20m in a linux system, presenting them from Biggest to smallest (including full path and actual size)
find / -type f -size +20000k -exec ls -lh {} \; 2> /dev/null | awk '{ print $NF ": " $5 }' | sort -nrk 2,2