(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
// See comments below. | |
// This code sample and justification brought to you by | |
// Isaac Z. Schlueter, aka isaacs | |
// standard style | |
var a = "ape", | |
b = "bat", | |
c = "cat", | |
d = "dog", |
<!DOCTYPE html> | |
<head> | |
<title>Stay Standalone</title> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | |
<script src="stay_standalone.js" type="text/javascript"></script> | |
</head> | |
<body> | |
<ul> | |
<li><a href="http://google.com/">Remote Link (Google)</a></li> |
<?php | |
// Wrapper function to access urlFor. | |
function slim_url_for($name, $params = array()) { | |
return Slim::getInstance()->urlFor($name, $params); | |
} | |
// Setup Twig. | |
TwigView::$twigDirectory = '/path/to/twig/'; | |
// Expose urlFor to Twig. |
// | |
// UIDeviceHardware.h | |
// | |
// Used to determine EXACT version of device software is running on. | |
#import <Foundation/Foundation.h> | |
@interface UIDeviceHardware : NSObject | |
- (NSString *) platform; |
#!/usr/bin/env bash | |
apt-get -y update | |
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline5-dev libyaml-dev | |
cd /tmp | |
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz | |
tar -xvzf ruby-1.9.3-p125.tar.gz | |
cd ruby-1.9.3-p125/ | |
./configure --prefix=/usr/local | |
make | |
make install |
<?php | |
/* 1. Add the dependency to your composer.json. | |
// I'm using https://packagist.org/packages/tijsverkoyen/css-to-inline-styles | |
*/ | |
/* 2. Extend \Illuminate\Mail\Mailer to override the getView() method | |
// app/libraries/MyApp/Mailer.php | |
*/ | |
namespace MyApp\Mail; |
<?php | |
class ValidationModel extends Eloquent { | |
/** | |
* Hold the validation rules for the model | |
* | |
* @var array | |
*/ | |
protected $rules = array(); |
set nocompatible " Disable vi-compatibility | |
set t_Co=256 | |
colorscheme xoria256 | |
set guifont=menlo\ for\ powerline:h16 | |
set guioptions-=T " Removes top toolbar | |
set guioptions-=r " Removes right hand scroll bar | |
set go-=L " Removes left hand scroll bar | |
set linespace=15 |