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
/* jshint esversion: 5, strict: global, devel: true */ | |
// Requires an Object.assign polyfill, depending on your environment. | |
// Nothing else special needed. | |
'use strict'; | |
var log = console.log.bind(console); | |
var Vehicle = { |
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
// https://codegolf.stackexchange.com/questions/221/reverse-polish-notation | |
'use strict'; | |
// let s = '-4 5 +'; | |
// let s = '5 2 /'; | |
// let s = '5 2.5 /'; | |
// let s = '4 2 5 * +'; | |
// let s = '5 1 2 + 4 * 3 - +'; | |
let s = '4 2 5 * + 1 3 2 * + /'; |
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
$ nvm install 4.0.0 | |
Downloading https://nodejs.org/dist/v4.0.0/node-v4.0.0-darwin-x86.tar.xz... | |
######################################################################## 100.0% | |
WARNING: checksums are currently disabled for node.js v4.0 and later | |
tar: Unrecognized archive format | |
tar: Error exit delayed from previous errors. | |
Binary download failed, trying source. | |
######################################################################## 100.0% | |
Checksums empty | |
tar: Unrecognized archive format |
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 gulp = require('gulp'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var source = require('vinyl-source-stream'); | |
var buffer = require('vinyl-buffer'); | |
var browserify = require('browserify'); | |
var watchify = require('watchify'); | |
var babel = require('babelify'); | |
var uglify = require('gulp-uglify'); | |
var gulpif = require('gulp-if'); | |
var stylus = require('gulp-stylus'); |
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
""" | |
title: nginx log rotator | |
author: James Irwin | |
date: 16-Jul-2015 | |
purpose: A test to play around with Python. | |
""" | |
import os | |
from datetime import datetime | |
import shutil |
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
REBOL [ | |
title: "Cryptogram generator" | |
author: "James Irwin" | |
email: "rebolyte at Google's email thingy" | |
date: 23-Mar-2015 | |
] | |
alpha: [A B C D E F G H I J K L M N O P Q R S T U V W X Y Z] | |
the-file: ask "File of strings to encode: " |
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
// Original snippet: | |
// https://errorception.com/docs | |
var SCRIPT_EL = 'script'; | |
function (window, document, SCRIPT_EL, PROJ_ID) { | |
// Set a global variable called '_errs' to an array with our PROJ_ID in it | |
window._errs = [PROJ_ID]; | |
// Specify our method to be executed when 'onerror' fires. This gives us |
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
// http://dgrid.io/js/dgrid/test/Grid_rendering.html | |
// Apparently this is the only way to access nested data? And it's | |
// seriously legacy and only supported because of old DojoX stuff? | |
// data format goes thusly: | |
// { | |
// "_id": 1, | |
// "name": { | |
// "formatted": "first last", |
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
Verifying that +jamesirwin is my openname (Bitcoin username). https://onename.io/jamesirwin |
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
/** | |
* SyntaxHighlighter | |
* http://alexgorbatchev.com/SyntaxHighlighter | |
* Version 3.0.83 (July 02 2010) | |
* Copyright (C) 2004-2010 Alex Gorbatchev. | |
* Dual licensed under the MIT and GPL licenses. | |
* | |
* Upstream theme originally by Media Upstream: | |
* https://github.com/mediaupstream/Upstream-Textmate-Themes/tree/master/Upstream | |
* Ported to SyntaxHighlighter by James Irwin (@rebolyte). |
NewerOlder