This file contains hidden or 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
| var gulp = require('gulp'); | |
| var minifycss = require('gulp-minify-css'); | |
| var autoprefixer = require('gulp-autoprefixer'); | |
| var notify = require('gulp-notify'); | |
| var sass = require('gulp-ruby-sass'); | |
| gulp.task('css', function() { | |
| return gulp.src('sass/main.sass') | |
| .pipe(sass({ style: 'compressed' })) | |
| .pipe(autoprefixer('last 15 version')) |
This file contains hidden or 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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| config.vm.box = "precise64" | |
| config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
| config.vm.network :private_network, ip: "192.168.33.21" |
This file contains hidden or 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
| [alias] | |
| #Basic | |
| st = status -sb | |
| co = checkout | |
| #Flow | |
| fs = flow feature start | |
| ff = flow feature finish | |
| #Infoz |
This file contains hidden or 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
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://npmjs.org/install.sh | sh |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| echo ">>> Starting Install Script" | |
| # Update | |
| sudo apt-get update | |
| # Install MySQL without prompt | |
| sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root' | |
| sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root' |
This file contains hidden or 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
| <?php | |
| /** | |
| * @package Redirect to homepage after logout | |
| * @version 0.1 | |
| */ | |
| /* | |
| Plugin Name: Redirect to homepage after logout | |
| Plugin URI: http://daankortenbach.nl/wordpress/redirect-to-homepage-after-logout/ | |
| Description: Redirects the user to the homepage after logout | |
| Author: Daan Kortenbach |
This file contains hidden or 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
| # Ensures all line endings are committed as LF, but will checkout with native line endings | |
| * text=auto | |
| # -- Override Section, just in-case Git tries to be sneaky | |
| # Ensure that these files are recognized as text | |
| *.asp text | |
| *.aspx text | |
| *.asx text | |
| *.c text |
This file contains hidden or 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
| <?php | |
| // Redirect to a named 'home' route. | |
| return Redirect::home(); | |
| // Refresh the current URI. | |
| return Redirect::refresh(); |
This file contains hidden or 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
| <?php | |
| # Create a list with numbers ranging from 10 to 20. | |
| Form::selectRange('number', 10, 20); | |
| # Create a list with years ranging from 1900 to 2000. | |
| Form::selectYear('year', 1900, 2000); | |
| # Creates a list with month names. | |
| Form::selectMonth('month'); |
This file contains hidden or 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
| <?php | |
| // Get an array of all files in a directory. | |
| $files = File::files('path_to_dir'); | |
| // Get all of the files from the given directory (recursive). | |
| $files = File::allFiles('path_to_dir'); | |
| // Get all of the directories within a given directory. | |
| $files = File::directory('path_to_dir'); |