Skip to content

Instantly share code, notes, and snippets.

View jeffersonsouza's full-sized avatar

Jefferson Souza jeffersonsouza

View GitHub Profile
require 'formula'
class Phpunit < Formula
homepage 'http://www.phpunit.de/manual/current/en/index.html'
url 'http://pear.phpunit.de/get/phpunit.phar'
sha1 'de677ba60b2ccd135002d02501cde16a471503f5'
version 'HEAD'
def install
bin.install "phpunit.phar" => "phpunit"

Hoodie vs. Meteor

Preface: Not a Meteor Expert. Please comment with improvements.

Paraphrasing philosophy:

  • Hoodie, Look ma! No Backend.
  • Meteor, Backend Power on the Fronend.

A couple of high-level observations:

/*
See dev dependencies https://gist.github.com/isimmons/8927890
Compiles sass to compressed css with autoprefixing
Compiles coffee to javascript
Livereloads on changes to coffee, sass, and blade templates
Runs PHPUnit tests
Watches sass, coffee, blade, and phpunit
Default tasks sass, coffee, phpunit, watch
*/
#!/bin/bash
## Author: Ken Goldfarb <hello@kengoldfarb.com>
## https://github.com/kengoldfarb
##
## This script will install Nginx+Pagespeed with PHP-FPM 5.5.x
## It's testsed working on a stock AWS Ubuntu 14.04 image
##
## BONUS: Oh-my-zsh installation included!
{
"directory": "components"
}
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@jeffersonsouza
jeffersonsouza / gist:be44fcfc213d142090ce
Last active September 22, 2015 10:04 — forked from ravenlp/gist:96a66df5dbc1b96afba7
Angular ng-hide fade in/out animation
.fadable {
transition: 0s linear all;
}
.fadable.ng-hide-remove {
opacity: 0;
display: block !important;
transition: 0.5s linear all;
}
.fadable.ng-hide-remove.ng-hide-remove-active {
opacity: .5;
@jeffersonsouza
jeffersonsouza / sites-available_angularjs_html5
Created November 25, 2015 11:05 — forked from demisx/sites-available_angularjs_html5
Nginx config for HTML5 AngularJS applications
server {
listen 8000;
server_name localhost;
root /Users/dmoore/projects/tutorials/angular-phonecat2/.build;
access_log "/Users/dmoore/projects/tutorials/angular-phonecat2/logs/hotili-net.access.log";
error_log "/Users/dmoore/projects/tutorials/angular-phonecat2/logs/hotili-net.error.log";
error_page 404 /app/404.html;
error_page 403 /app/403.html;