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
| # The MangaStudio 5 (ms5) file format is actually just sqlite3 database. | |
| # | |
| # When you save and re-save them, they tend to accumulate a bit of cruft. | |
| # This script will loop through the specified .lip files and run the 'vacuum;' | |
| # command on each one, removing the cruft! | |
| # | |
| # WARNING: Use at your own risk! I've not had any problems, but it has not | |
| # been tested exhaustively. | |
| # | |
| # Installation: |
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/env ruby | |
| require 'thor' | |
| require 'sprockets' | |
| require 'fileutils' | |
| def require_engine(name) | |
| begin | |
| require name | |
| puts " o #{name} enabled" |
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
| class EventEmitter | |
| emit: (event, args...) -> | |
| return false unless @events?[event] | |
| listener args... for listener in @events[event] | |
| return true | |
| addListener: (event, listener) -> | |
| @emit 'newListener', event, listener | |
| ((@events?={})[event]?=[]).push listener |
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
| export OLDPATH=$PATH | |
| export HAXE_NIGHTLY=$HOME/bin/haxe_nightly | |
| export USE_HAXE_NIGHTLY=false | |
| hxn(){ | |
| if [ -z "$USE_HAXE_NIGHTLY" ] || $USE_HAXE_NIGHTLY; then | |
| echo "Changing to Haxe stable version" | |
| export HAXE_STD_PATH=$OLD_HAXE_STD | |
| export PATH=$OLDPATH | |
| export USE_HAXE_NIGHTLY=false | |
| else |
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
| // Type definitions for Giraffe | |
| // Project: https://github.com/barc/backbone.giraffe | |
| // Definitions by: Matt McCray <https://github.com/darthapo> | |
| // Definitions: https://github.com/borisyankov/DefinitelyTyped | |
| /// <reference path="../backbone/backbone.d.ts" /> | |
| declare module Giraffe { | |
| interface GiraffeObject { |
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
| MyModule= {} # Whatever | |
| # Magic export | |
| @MyModule= (@module or module or {}).exports= MyModule |
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
| var _missing= function(data){ return React.DOM.pre(null, "Route not found: "+ data.route) }, | |
| _router= null, | |
| _started= false, | |
| _nextId= 1; | |
| function handleRouteChange(container, component) { | |
| var routeParams= Array.prototype.slice.call( arguments, 1 ) | |
| React.renderComponent( | |
| component({ routeParams:routeParams }, null), | |
| container |
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
| # Cake task to generate destructuring code based on all the tag-like elements found in the target file. | |
| # This will generate some false positives, so you'll want to inspect the results closely. | |
| # If anyone wants to tweak the RegExp, or the whole detection block, I'd love to see it! | |
| __= require 'coffee-script/lib/coffee-script/helpers' | |
| _= require 'underscore' | |
| React= require 'react' | |
| tagRE= /[\W]{1}(\([\w]*)/g |
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
| function memorySizeOf(obj) { | |
| var bytes = 0; | |
| function sizeOf(obj) { | |
| if(obj !== null && obj !== undefined) { | |
| switch(typeof obj) { | |
| case 'number': | |
| bytes += 8; | |
| break; | |
| case 'string': |
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
| { | |
| "name": "ogre-js-docs", | |
| "version": "0.1.0", | |
| "description": "Docs for ogre.js", | |
| "main": "server.js", | |
| "scripts": { | |
| "start": "node server.js", | |
| "test": "echo \"Error: no test specified\" && exit 1" | |
| }, | |
| "author": "Matt McCray <[email protected]>", |