npm i
sudo node app.js
This file contains 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
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; |
This file contains 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
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
DocumentRoot /var/www | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride All | |
</Directory> | |
<Directory /var/www/> | |
Options Indexes FollowSymLinks MultiViews |
This file contains 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
<?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: |
This file contains 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
console.log('this is executed on require'); | |
module.exports = function() { | |
console.log('this is not executed on require'); | |
}; |
This file contains 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
{EventEmitter} = require 'events' | |
uuid = require 'node-uuid' | |
module.exports = class Model extends EventEmitter | |
constructor: -> | |
super | |
@property: (key, descriptor = {}) -> | |
@properties ?= {} |
This file contains 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
template = require './template' | |
lighting = require './lighting' | |
texturing = require './texturing' | |
blocks = require '../../blocks' | |
adjacent = vec3.create() | |
coords = {} |
This file contains 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
# 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) |
This file contains 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
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: -> |
NewerOlder