Skip to content

Instantly share code, notes, and snippets.

View 525c1e21-bd67-4735-ac99-b4b0e5262290's full-sized avatar

525c1e21-bd67-4735-ac99-b4b0e5262290

View GitHub Profile
var _ = require('underscore');
_.throttle2 = function(func, wait, options) {
var context, args, result;
var timeout = null;
var previous = 0;
options || (options = {});
var later = function() {
previous = options.leading === false ? 0 : Date.now();
timeout = null;
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
@525c1e21-bd67-4735-ac99-b4b0e5262290
525c1e21-bd67-4735-ac99-b4b0e5262290 / config.xml
Created December 16, 2012 15:38
how about you magento noobs learn to code?
<?xml version="1.0"?>
<!--
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
npm i
sudo node app.js

Caveat Lector

TODONT

Conjugate of TODO: TODONT = TODO⁻¹

Never say never, only TODONT for now

Plague "now" until rendered akashic

console.log('this is executed on require');
module.exports = function() {
console.log('this is not executed on require');
};
{EventEmitter} = require 'events'
uuid = require 'node-uuid'
module.exports = class Model extends EventEmitter
constructor: ->
super
@property: (key, descriptor = {}) ->
@properties ?= {}
template = require './template'
lighting = require './lighting'
texturing = require './texturing'
blocks = require '../../blocks'
adjacent = vec3.create()
coords = {}
# smallest positive t such that s+t*ds is an integer
intbound = (s, ds) ->
if ds < 0
intbound -s, -ds
else
s = mod s, 1
return (1 - s) / ds
signum = (x) -> if x > 0 then 1 else (if x < 0 then -1 else 0)
module.exports = (subject = module.parent) ->
console.log 'globalist', subject.id
(require 'pkginfo') subject
{dependencies} = subject.exports
for dependency, version of dependencies then do (dependency, version) ->
console.log 'globalising', dependency
Object.defineProperty global, dependency, configurable: yes, get: ->