This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
require('load-grunt-tasks')(grunt); | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
config:{ | |
themeName: 'mythemename', | |
themePath: 'public', | |
assetsPath: 'resources/assets', | |
bowerPath: 'bower_components' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysqldump -u root -p --no-data databasename tablename > filename.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# brew install imagemagick | |
# Ensure we're running in location of script. | |
cd "`dirname $0`" | |
for f in *; do | |
if [[ $f == *@3x* ]]; | |
then | |
echo "$f -> ${f//@3x/@2x}, ${f//@3x/}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#run php server from terminal | |
sudo php -S <domain>:<port> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Install laravel 4 | |
git clone -b develop git://github.com/laravel/laravel.git . | |
//Run Server | |
//sudo php -S domain.dev:80 | |
sudo php -S domain.dev:80 -t public/ | |
php artisan serve | |
//Exec autoload | |
composer dump-auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NSMutableDictionary+Utilities.h | |
// | |
// Created by Daniel Gutierrez on 11/26/13. | |
// | |
#import <Foundation/Foundation.h> | |
@interface NSMutableDictionary (Utilities) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
// set up grunt | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_comment": "Api Rest templates", | |
"restGet": { | |
"application/json": { | |
"method": "$context.httpMethod" | |
} | |
}, | |
"restPost": { | |
"application/json": "{\n\"method\": \"$context.httpMethod\",\n\"body\": $input.json('$')\n}" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": "s3:ListBucket", | |
"Resource": "arn:aws:s3:::my-bucket" | |
}, | |
{ | |
"Effect": "Allow", |