Skip to content

Instantly share code, notes, and snippets.

View FotoVerite's full-sized avatar

Matthew Bergman FotoVerite

View GitHub Profile
novafabricaGlobalSearch = {
searchField: null,
searchListContainer: null,
list: null,
searchUrl: null,
autoCompleteVars: null,
_createAutoList: function(json) {
var self = novafabricaGlobalSearch;
pm http GET https://registry.npmjs.org/npm
npm http 304 https://registry.npmjs.org/npm
npm ERR! error rolling back Error: EACCES, unlink '/usr/local/lib/node_modules/npm'
npm ERR! error rolling back npm@2.0.0 { [Error: EACCES, unlink '/usr/local/lib/node_modules/npm']
npm ERR! error rolling back errno: 3,
npm ERR! error rolling back code: 'EACCES',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/npm' }
npm ERR! Error: EACCES, unlink '/usr/local/lib/node_modules/npm'
npm ERR! { [Error: EACCES, unlink '/usr/local/lib/node_modules/npm']
npm ERR! errno: 3,
#!/usr/bin/env node
'use strict';
var realist = require('realist'),
fs = require('fs'),
colors = require('colors'),
read = require('fs').readFileSync,
join = require('path').join,
_ = require('lodash'),
/* ASDFPixelSort for video frames v1.0
Original ASDFPixelSort by Kim Asendorf <http://kimasendorf.com>
https://github.com/kimasendorf/ASDFPixelSort
Fork by dx <http://dequis.org> and chinatsu <http://360nosco.pe>
Randomization modifications by Dan-O
-- Usage:
1. Split a video into a series of pictures with ffmpeg:
$ ffmpeg -i "input.mov" -an -f image2 "frame_%06d.png"
2. Change `String basedir` in this script to point to where the images are located.
3. Tweak things, that's what's most fun, isn't it?
Kernel.module_eval do
def _(string)
string
end
end
#And how it's been used
<li><a href="#basic"><%= _('Basic Information')%></a></li>
<li><a href="#addresses"><%= _('Address')%></a></li>
package com.matthewbergman.exitstrategy.adapters;
import android.content.Context;
import android.content.res.Resources;
import android.database.Cursor;
import android.view.View;
import android.widget.ResourceCursorAdapter;
import android.widget.TextView;
import com.matthewbergman.exitstrategy.R;
import com.matthewbergman.exitstrategy.database.DataBaseHelper;
var Faker = require('../Faker');
return {
"name":Faker.Name.findName(),
"username":Faker.Internet.userName(),
"email":Faker.Internet.email(),
"address":{
"streetA":Faker.Address.streetName(),
"streetB":Faker.Address.streetAddress(),
"streetC":Faker.Address.streetAddress(true),
"streetD":Faker.Address.secondaryAddress(),
#!/bin/sh
#
# Usage: version [bump|minor|major]
#
#
# Increments Version or Shows latest version
#
version=$1
get_version=$(git tag | grep ^v*[0-9].[0-9].[0-9] | tr -d '[[:alpha:]]' | tail -1 | sort -n )
@FotoVerite
FotoVerite / gist:1438473
Created December 6, 2011 14:59
jistu npm fail
> jitsu@0.7.2-1 test /Users/fotoverite/github/jitsu
> vows test/commands/*-test.js test/*-test.js --isolate --spec
♢ jitsu/commands/apps
✓ This test requires jitsu be unauthorized
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
@FotoVerite
FotoVerite / gist:1438474
Created December 6, 2011 15:00
Jitsu vows fail
mismatch in remote request :
{ method: 'GET',
uri: 'http://api.mockjitsu.com:90210/apps/mickey/example-app',
headers:
{ Authorization: 'Basic bWlja2V5OnBvaXV5dHJld3E=',
'Content-Type': 'application/json' } }
{ method: 'GET',
uri: 'http://api.mockjitsu.com:90210/apps/mickey/jitsu',
headers: