This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import xml.etree.ElementTree as ET; | |
import json, os, fnmatch, time; | |
def coerceStringToType(val): | |
if not val: | |
return None; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** subsections of sdk.js retrieved on Aug 13th, 2014 */ | |
function init(/*object|number|string*/ options) {__t([options, 'object|number|string', 'options']); | |
if (Runtime.getInitialized()) { | |
Log.warn( | |
'FB.init has already been called - this could indicate a problem'); | |
} | |
if (Runtime.getIsVersioned()) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
class Person | |
{ | |
public: | |
virtual void aboutMe() const { | |
printf("I am a person.\n"); | |
} | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
define(function(require) | |
{ | |
var UNDEFINED = void 0; | |
function NoConflict(namespace) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Apply an object's prototype as a mixin to another object's prototype | |
* @param {Object} destination The class to mix in to | |
* @param {(Object|Array)} source An object or array of objects to mix in | |
*/ | |
function mixIn(destination, source) | |
{ | |
if (typeof source !== TYPE_OF_ARRAY) | |
{ | |
$.extend(destination.prototype, source.prototype); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
(window.NREUM || (NREUM = {})).loader_config = { | |
xpid: "VQQUUFNS" | |
}; | |
window.NREUM || (NREUM = {}), __nr_require = function (t, e, n) { | |
function r(n) { | |
if (!e[n]) { | |
var o = e[n] = { | |
exports: {} | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Your pain is the breaking of the shell that encloses your understanding. Just as the stone of the fruit must break, so that its heart may stand in the sun, so must you know pain. And if you keep your heart in wonder at the daily miracles of your life, your pain would not seem less wondrous than your joy. If you accept the seasons of your heart, as you have always accepted the four seasons, you would watch with serenity the winters of your grief. Much of your pain is self-chosen. It is the bitter potion by which the physician within you heals your sick self. Therefore, trust the physician, and drink his remedy in silence and tranquility. For his hand, though heavy and hard, is guided by the tender hand of the Unseen. - Kahlil Gibran |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Requires Vundle: https://github.com/gmarik/Vundle.vim | |
" Every vimconfig should start like this: | |
syntax on | |
" Basic config | |
set nocompatible | |
set autoindent | |
set smartindent | |
set copyindent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import Image; | |
import math; | |
img = Image.open("thing.png"); | |
pixels = img.load(); | |
width = img.size[0]; | |
height = img.size[1]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# coding: utf-8 | |
import locale, subprocess; | |
# on centos this is 'utf8' | |
utfLocaleSuffix = 'UTF-8'; #darwin/freebsd | |
def main(): | |
# get all locales |