Skip to content

Instantly share code, notes, and snippets.

View carnar's full-sized avatar

Carlos Narez carnar

View GitHub Profile
from flask import Flask
from flask_restful import Api, Resource, reqparse
app = Flask(__name__)
api = Api(app)
users = [
{
"name": "Nicholas",
"age": 42,
@carnar
carnar / happy_git_on_osx.md
Last active September 4, 2015 16:23 — forked from trey/happy_git_on_osx.md
Creating a Happy Git Environment on OS X

Creating a Happy Git Environment on OS X

Step 1: Install Git

brew install git bash-completion

Configure things:

git config --global user.name "Your Name"

git config --global user.email "you@example.com"

@carnar
carnar / Gulpfile.js
Last active August 29, 2015 14:06 — forked from laracasts/Gulpfile.js
var gulp = require('gulp');
var phpspec = require('gulp-phpspec');
var run = require('gulp-run');
var notify = require('gulp-notify');
gulp.task('test', function() {
gulp.src('spec/**/*.php')
.pipe(run('clear').exec())
.pipe(phpspec('', { notify: true }))
.on('error', notify.onError({