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
/*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', |
<!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 |
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'); |
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) { |
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++) { |
I'm keeping this so I can reference the links later
// 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>>' |