Skip to content

Instantly share code, notes, and snippets.

View Sprocket's full-sized avatar

Duncan Heal Sprocket

View GitHub Profile
@ericlbarnes
ericlbarnes / bower.json
Last active January 8, 2024 01:52
Gulp, Bower, Bootstrap Sass, FontAwesome
{
"name": "project",
"version": "0.0.0",
"authors": [
"Eric Barnes <[email protected]>"
],
"license": "MIT",
"private": true,
"ignore": [
"**/.*",
@mitchellvanw
mitchellvanw / laravel-application-creater
Last active December 30, 2015 11:09
Install the Laravel Application Creator globally on your *nix machine.
# Installation
curl -o laravel.phar http://laravel.com/laravel.phar
chmod 755 laravel.phar
mv laravel.phar /usr/local/bin/laravel
# Usage
laravel new <application_name>
@wookiecooking
wookiecooking / aliases.sh
Created November 30, 2013 00:52
[Shell] Assortment of OSX influenced bash aliases and functions
# Rails Stuff
alias stoprails='kill -9 $(lsof -i :3000 -t)'
alias startrails='rails server -d'
alias restartrails='stopRails && startRails'
#Check PHP For Erroes
alias phpcheck='find ./ -name \*.php | xargs -n 1 php -l'
# ROT13-encode text. Works for decoding, too! ;)
alias rot13='tr a-zA-Z n-za-mN-ZA-M'
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active April 20, 2025 23:00
A badass list of frontend development resources I collected over time.
@msurguy
msurguy / model.php
Created March 11, 2013 19:10
Get created_at date in different formats with Laravel in PHP 5.2+. Put this code in your model (for example models/users.php) and in your views do {{ $user->short_created_at }}
public function get_short_created_at()
{
$date = $this->get_attribute('created_at');
if (is_string($date)){
$dateObject = DateTime::createFromFormat('Y-m-d H:i:s', $date);
return $dateObject->format('Y-m-d');
}
return $date;
}
@trey
trey / rwd.css
Created January 26, 2012 20:14
Bootstrap's RWD breakpoints
/* http://twitter.github.com/bootstrap/scaffolding.html#responsive */
/* Landscape phones and down */
@media (max-width: 480px) { ... }
/* Landscape phone to portrait tablet */
@media (max-width: 768px) { ... }
/* Portrait tablet to landscape and desktop */
@media (min-width: 768px) and (max-width: 940px) { ... }
@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@smgladkovskiy
smgladkovskiy / Controller_Template.php
Last active September 6, 2019 12:03
template controller for kohana v3.3
<?php defined('SYSPATH') or die('No direct script access.');
/**
* Template Controller
*
* @package Templates
* @author Sergei Gladkovskiy <[email protected]>
*/
abstract class Controller_Template extends Kohana_Controller_Template {