Skip to content

Instantly share code, notes, and snippets.

View therebelrobot's full-sized avatar
A girl made of PLA and caffeine

Aster Haven therebelrobot

A girl made of PLA and caffeine
View GitHub Profile
/*http://zachinglis.com/posts/console-loge*/
window.console.loge = function(msg) {
var gifs = [
'http://d1e3ezyatlol8u.cloudfront.net/img/212/doge-wink-212.gif',
'http://d1e3ezyatlol8u.cloudfront.net/img/212/doge-shake-space-212.gif',
'http://d1e3ezyatlol8u.cloudfront.net/img/212/doge-peepers-212.gif',
'http://d1e3ezyatlol8u.cloudfront.net/img/212/doge-prizza-212.gif',
'http://d1e3ezyatlol8u.cloudfront.net/img/212/doge-hat-212.gif',
'http://d1e3ezyatlol8u.cloudfront.net/img/212/doge-gradient-212.gif',
'http://d1e3ezyatlol8u.cloudfront.net/img/212/doge-fat-212.gif',

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

<!DOCTYPE html>
<!--[if IEMobile 7 ]>
<html dir="ltr" lang="en-US" class="no-js iem7">
<![endif]-->
<!--[if lt IE 7 ]>
<html dir="ltr" lang="en-US" class="no-js ie6 legacy">
<![endif]-->
<!--[if IE 7 ]>
<html dir="ltr" lang="en-US" class="no-js ie7 legacy">
<![endif]-->
/*
* Flyspeck is Dependency Injection Container.
*
* Copyright (c) 2014 Anton Medvedev
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is furnished
@therebelrobot
therebelrobot / Gulpfile Template
Created May 6, 2014 17:04
I need to keep this handy. Hopefully it can help you too.
var gulp = require('gulp');
var uglify = require('gulp-uglify');
var concat = require('gulp-concat');
var less = require('gulp-less');
var minifyHTML = require('gulp-minify-html');
var nodemon = require('gulp-nodemon');
var jshint = require('gulp-jshint');
var bump = require('gulp-bump');
var ngmin = require('gulp-ngmin');
var templates = require('gulp-angular-templatecache');
@therebelrobot
therebelrobot / Request.node.js
Created June 23, 2014 23:55
Node.js function for consuming API
var http = require('http');
var options = {
hostname: 'api.github.com',
path: '/api/endpoint',
headers: {
'User-Agent': 'UserAgentHere',
'Accept': 'application/json'
}
};
var request = http.request(options, function(response) {
@therebelrobot
therebelrobot / Gulp-starter-compass
Created July 7, 2014 16:45
An example of compass in the gulp-starter repo
var compass = require('gulp-compass');
var gulp = require('gulp');
var notify = require('gulp-notify');
var handleErrors = require('../util/handleErrors');
gulp.task('compass', function() {
return gulp.src('./src/sass/*.sass')
.pipe(compass({
config_file: 'compass.rb',
css: 'build',
// <select ng-options="foo.blah for foo in foos" ng-model="selection"></select>
// <li ng-repeat="obj in objects|filter:selection|filterFunction">{{obj}}</li>
.filter('filterFunction', function() {
return function (objects) {
var filter_objects = [];
for (var i = 0; i < objects.length; i++) {
@therebelrobot
therebelrobot / gist:0a2bc99be2d4a6cb7939
Last active August 29, 2015 14:04
List of links relevant to StrongLoop/ExpressJS discussion
@therebelrobot
therebelrobot / gist:bd683c42940878b503b1
Last active August 29, 2015 14:05 — forked from jaredhanson/gist:2559730
Restify/Passport
// Based off example code from Hal Robertson
// https://github.com/halrobertson/test-restify-passport-facebook
// See discussion: https://groups.google.com/forum/?fromgroups#!topic/passportjs/zCz0nXB_gao
var restify = require('restify')
// config vars
var FB_LOGIN_PATH = '/api/facebook_login'
var FB_CALLBACK_PATH = '/api/facebook_callback'
var FB_APPID = '<<YOUR APPID HERE>>'