Skip to content

Instantly share code, notes, and snippets.

View chyld's full-sized avatar
:electron:
import numpy

Chyld Medford chyld

:electron:
import numpy
View GitHub Profile
app.get('/auth/twitter/callback', passport.authenticate('twitter', {successRedirect:'/', failureRedirect:'/login', failureFlash:'Error during login.', successFlash:'Welcome to our world.'}));
app.get('/auth/google', passport.authenticate('google', {scope: ['https://www.googleapis.com/auth/plus.login', 'https://www.googleapis.com/auth/plus.profile.emails.read']}));
app.get('/auth/google/callback', passport.authenticate('google', {successRedirect:'/', failureRedirect:'/login', failureFlash:'Error during login.', successFlash:'Welcome to our world.'}));
app.get('/auth/github', passport.authenticate('github'));
'use strict';
module.exports = function(grunt){
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// ---------------------------------------------------------------------- //
watch: {
code: {
files: ['Gruntfile.js', 'client/**/*', 'server/**/*'],
tasks: ['build']
@chyld
chyld / gulpfile.js
Last active March 14, 2016 13:38
var gulp = require('gulp');
var gutil = require('gulp-util');
var bower = require('bower');
var concat = require('gulp-concat');
var sass = require('gulp-sass');
var minifyCss = require('gulp-minify-css');
var rename = require('gulp-rename');
var sh = require('shelljs');
var jade = require('gulp-jade');
var jshint = require('gulp-jshint');
{
"camelcase": true,
"curly": true,
"eqeqeq": true,
"forin": true,
"immed": true,
"indent": 2,
"latedef": "nofunc",
"newcap": true,
"noarg": true,
{
"requireCurlyBraces": [
"if",
"else",
"for",
"while",
"do",
"try",
"catch",
"switch"
txtblk='\[\e[0;30m\]' # Black
txtred='\[\e[0;31m\]' # Red
txtgrn='\[\e[0;32m\]' # Green
txtylw='\[\e[0;33m\]' # Yellow
txtblu='\[\e[0;34m\]' # Blue
txtpur='\[\e[0;35m\]' # Purple
txtcyn='\[\e[0;36m\]' # Cyan
txtwht='\[\e[0;37m\]' # White
txtrst='\[\e[0m\]' # Text Reset
@chyld
chyld / .vimrc
Created October 13, 2014 20:18
" http://vimdoc.sourceforge.net/htmldoc/options.html
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'scrooloose/nerdtree'
# Allows for faster key repetition
set -s escape-time 1
# Start window numbering at 1
set -g base-index 1
# Start pane numbering at 1
setw -g pane-base-index 1
# Allow repeat keys under 1 second
[alias]
st = status -s
lg = log --oneline --decorate --all --graph
br = branch -av
rt = remote -v
[user]
email = [email protected]
name = Chyld Medford
doctype html
html
head
meta(charset='utf-8')
meta(name='viewport', content='initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width')
title
// compiled css output
link(href='css/ionic.app.css', rel='stylesheet')
// ionic/angularjs js
script(src='lib/ionic/js/ionic.bundle.js')