Skip to content

Instantly share code, notes, and snippets.

require.paths.unshift('./support');
require.paths.unshift('./support/connect/lib');
require('proto');
var log = require('./lib/util/log').from(__filename),
Connect = require('connect'),
Express = require('express'),
Assets = require('./lib/assets'),
/*
Node 0.2.3
Requesting the https url works most urls - including the following url with invalid username and password.
Normally if the username and password are correct this service forwards to another https page (the dashboard)
I cannot put my real username and password in this gist for obvious reasons.
*/
var request = require('request');
info: Creating snapshot 5.0.0-169
info: Updating app doodleordie
debug: { method: 'PUT',
debug: uri: 'http://api.nodejitsu.com/apps/doodleordie/doodleordie',
debug: headers:
debug: { Authorization: 'Basic ZG9vZGxlb3JkaWU6ZG9kISE=',
debug: 'Content-Type': 'application/json' },
debug: timeout: 240000,
debug: body: '{"name":"doodleordie","description":"Doodle drawing game.","homepage":"http://doodleordie.com","author":"Dylan Greene <dylang@gmail.com>","contributors":["Dylan Greene <dylang@gmail.com>","Aaron Silverman <aaron@aaronplusplus.com >","Garrett Miller <heyitsgarrett@gmail.com>"],"dependencies":{"mongodb":"*","async":"*","express":"2.x","ejs":"*","logging":"*","longjohn":"*","cli-color":"*","knox":"*","uglify-js":"*","stylus":"*","nib":"*","everyauth":"0.2.x","useragent":"*","shortid":"*","moment":"*","ansi":"*","request":"*","canvas":"0.12.x","nodetime":"*"},"bundleDependencies":["async","express","ejs","logging","longjohn","cli-color","uglify-js","stylus","nib","eve
@dylang
dylang / gist:3694235
Created September 10, 2012 21:58
piehole
function testPie(element) {
// constants
var FONT = 'ProximaNova';
var WIDTH = 390,
HEIGHT = 390,
@dylang
dylang / spawn-as-promised.js
Created November 11, 2013 17:22
spawn as promised - use child_process.spawn as a q promise.
var cp = require('child_process');
var q = require('q');
function spawn(command, args, options) {
var process;
var stderr = '';
var stdout = '';
var deferred = q.defer();
process = cp.spawn(command, args, options);
@dylang
dylang / gulp.json
Created January 3, 2014 19:29
npm modules using gulp as of Jan 3, 2014
{"rows":[
{"key":["gulp","*","gulp-filesize"],"value":1},
{"key":["gulp","*","gulp-load"],"value":1},
{"key":["gulp","~0.0.5","gulp-license"],"value":1},
{"key":["gulp","~0.1.0","gulp-minify-css"],"value":1},
{"key":["gulp","~0.1.0","gulp-minify-html"],"value":1},
{"key":["gulp","~0.2.0","gulp-swig"],"value":1},
{"key":["gulp","~1.0.0","gulp-footer"],"value":1},
{"key":["gulp","~1.0.0","gulp-gzip"],"value":1},
{"key":["gulp","~1.0.0","gulp-header"],"value":1},
@dylang
dylang / frequent-words-available-on-npm.txt
Created March 24, 2016 02:35
Of the 3000 most used English words, these are available as names in npm as of March 23, 2016.
accepted
accident
according
accurate
across
actually
additional
adjective
adult
affect

Nested Numbered List Example

Lorem markdownum parte: hic caducum dives gradere mactassent aera te tantum thalamos haec. Puer erat expersque terque silvarum antiquam.

  1. Lorem markdownum baculum cum rore Iovis sequitur Pentheus nostris summis; et me medio relatu dextra. Echione ibat Tempus contenta, nec in totumque animae; ait detrahe.
if (1) {
  soa(threadingIcqAndroid.hub.kerning_baud(metafileRestoreInterpreter,
          windows, firmware), rom_delete);
This file has been truncated, but you can view the full file.
jenkins@ip-10-40-64-233:~/workspace/x-web-widgets/DYLAN-widget-neighbor-comparison$ npm install --loglevel=silly
npm info it worked if it ends with ok
npm verb cli [ 'node',
npm verb cli '/home/jenkins/.npm/bin/npm',
npm verb cli 'install',
npm verb cli '--loglevel=silly' ]
npm info using npm@2.1.3
npm info using node@v0.10.26
npm verb node symlink /usr/bin/node
npm WARN package.json widget-neighbor-comparison@3.0.3-0 No description
[
{"name":"renovate","hostname":"a8a97adbf8cf","pid":944,"level":20,"repository":"reporting/reporting","branch":"renovate/major-jest","dependencies":["@types/jest","jest","ts-jest"],"msg":"processBranch with 9 upgrades","time":"2020-02-05T03:29:00.354Z","v":0}
{"name":"renovate","hostname":"a8a97adbf8cf","pid":944,"level":20,"repository":"reporting/reporting","branch":"renovate/major-jest","msg":"Setting baseBranch to master","time":"2020-02-05T03:29:00.354Z","v":0}
{"name":"renovate","hostname":"a8a97adbf8cf","pid":944,"level":20,"repository":"reporting/reporting","branch":"renovate/major-jest","branchName":"master","latestCommitDate":"2020-02-04 21:04:35 -0500","msg":"latest commit","time":"2020-02-05T03:29:00.701Z","v":0}
{"name":"renovate","hostname":"a8a97adbf8cf","pid":944,"level":20,"repository":"reporting/reporting","branch":"renovate/major-jest","msg":"getBranchPr(renovate/major-jest)","time":"2020-02-05T03:29:00.701Z","v":0}
{"name":"renovate","hostname":"a8a97adbf8cf","pid":944,"level":20,"reposito