start new:
tmux
start new with session name:
tmux new -s myname
<?php | |
/* | |
|-------------------------------------------------------------------------- | |
| Application Routes | |
|-------------------------------------------------------------------------- | |
| | |
| Here is where you can register all of the routes for an application. | |
| It's a breeze. Simply tell Laravel the URIs it should respond to | |
| and give it the controller to call when that URI is requested. |
<?php | |
// Wow this whole thing is horrible | |
class Struct | |
{ | |
public function __construct($properties) | |
{ | |
foreach ($properties as $key => $value) { | |
if (property_exists($this, $key)) { | |
$this->{$key} = $value; |
<?php | |
if(! function_exists('tlog')) { | |
function tlog($logged, $message = '', $user = 'vagrant') | |
{ | |
// Only available in test environments | |
if (app()->environment() === 'production') { | |
return; | |
} |
#!/bin/sh | |
echo Install all AppStore Apps at first! | |
# no solution to automate AppStore installs | |
read -p "Press any key to continue... " -n1 -s | |
echo '\n' | |
echo Install and Set San Francisco as System Font | |
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)" | |
echo Install Homebrew, Postgres, wget and cask | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" |
<?php | |
if (!function_exists('philsturgeon_said_so')) { | |
function philsturgeon_said_so($what) { | |
return 0 !== preg_match('(FIG|PSR|Pyro|Cider|doing it wrong)i', $what); | |
} | |
} |
#include <iostream> | |
#include <map> | |
#include <vector> | |
#include <boost/bind.hpp> | |
#include <boost/function.hpp> | |
#include <boost/noncopyable.hpp> | |
#include <boost/scoped_array.hpp> | |
#include <gl/glut.h> | |
#include <gl/SOIL.h> |
#!/usr/bin/env python | |
# | |
# cocoa_keypress_monitor.py | |
# Copyright © 2016 Bjarte Johansen <[email protected]> | |
# | |
# The MIT License (MIT) | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining | |
# a copy of this software and associated documentation files (the | |
# “Software”), to deal in the Software without restriction, including |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
// Destroys the localStorage copy of CSS that less.js creates | |
function destroyLessCache(pathToCss) { // e.g. '/css/' or '/stylesheets/' | |
if (!window.localStorage || !less || less.env !== 'development') { | |
return; | |
} | |
var host = window.location.host; | |
var protocol = window.location.protocol; | |
var keyPrefix = protocol + '//' + host + pathToCss; |