Skip to content

Instantly share code, notes, and snippets.

"assetCount.Css": 7,
"assetCount.Gif": 13,
"assetCount.Html": 3,
"assetCount.Ico": 1,
"assetCount.JavaScript": 8,
"assetCount.Jpeg": 4,
"assetCount.Png": 177,
"assetCount.application/octet-stream": 1,
"assetCount.application/vnd.ms-fontobject": 2,
@auchenberg
auchenberg / gist:5916408
Created July 3, 2013 08:41
Podio alisas
# Podio
alias podio='cd HOME/Podio'
alias podio-rails='podio && cd frontend-rails'
alias podio-php='podio && cd frontend-php'
alias podio-scss='sass --watch /Users/auchenberg/Podio/frontend-rails/app/assets/stylesheets:/Users/auchenberg/Podio/frontend-rails/public/stylesheets/compiled'
alias podio-shared=' podio && cd shared-assets'
alias podio-rb='podio-rails && cd vendor/podio && git pull && podio-rails'
# Rails
alias rails-debug='VERBOSE_API=1 LIVERELOAD=1 rails server thin --debugger'
@auchenberg
auchenberg / gist:6048667
Created July 21, 2013 14:08
Fizz buss in JavaScript
for(i=1; i <= 100; i++) {
if(i % 3 === 0 && i % 5 === 0) {
console.log('FizzBuzz');
} else if(i % 3 === 0) {
console.log('Fizz');
} else if (i % 5 === 0) {
console.log('Buzz');
} else {
console.log(i);
}
@auchenberg
auchenberg / SudokuBoardValidator
Last active December 20, 2015 07:49
SudokuBoardValidator
// Problem: http://www.eecis.udel.edu/~breech/contest.inet.fall.07/problems/valid-sudoku.html
function SudokuBoardValidator(data) {
this.data = data;
}
SudokuBoardValidator.prototype = {
isUniq: function (range) {
[alias]
st = status
ci = commit
br = branch
co = checkout
unstage = reset HEAD
uncommit = reset --soft HEAD^
# When doing "git git log" or some such, do not complain about "git" not
# being a valid Git command. This happens when copy-pasting examples, for
@auchenberg
auchenberg / dependency-list-generator
Created July 28, 2014 12:16
A quick script to generate a JSON blob of dependencies with license info from Bower/NPM.
var fs = require('fs');
var npm = require('npm');
var bower = require('bower');
var Q = require('q');
var npmConfig = JSON.parse(fs.readFileSync('package.json'));
var bowerConfig = JSON.parse(fs.readFileSync('bower.json'));
function gatherNpmInfo(dependencies) {
DOESNT WORK:
POST /api/session HTTP/1.1
Host: dev.g2m.me:8243
Authorization: Basic Y2l0cml4Og==
Cache-Control: no-cache
Postman-Token: 24a359ae-4725-5106-711c-b6334ddcb729
Content-Type: application/x-www-form-urlencoded
<a
class="add-this-event-link"
href="#"
title="Add to Calendar"
data-start="10-05-2014 11:38:46"
data-end="11-05-2014 11:38:46"
data-timezone="Copenhagen/Europe"
data-title="Summary of the event"
data-description="Description of the event"
data-location="Location of the event"
@auchenberg
auchenberg / index.js
Created November 5, 2014 22:09
nicercast + ffmpeg
var express = require('express');
var http = require('http');
var spawn = require("child_process").spawn;
var icecast = require('icecast-stack');
var Throttle = require('throttle');
var ip = require('ip');
var ffmpeg = require('fluent-ffmpeg');
var Server = function(inStream, opts) {
var app = express();
@auchenberg
auchenberg / callstats.io
Created November 27, 2014 15:21
Callstats.js
(function(e) {
var t = function(e, t, n) {
function F(e, t, n, r, i) {
function u(u) {
var a = (new Date).getTime(),
c = {};
c.version = s, c.appID = o, c.conferenceID = encodeURIComponent(n), c.apiTS = a, r !== undefined && (c.ucID = r), f && (c.token = f.token), c.localID = encodeURIComponent(e), c.remoteID = encodeURIComponent(t), c.endpointID = l, c.browser = {
name: v.name,
ver: v.ver,
os: v.os