(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
:
<?php | |
class MyUser implements Routable, Routinable, ProxyableWhen | |
{ | |
public $path = '/users'; | |
//Routinable | |
public function applyRoutines(AbstractRoute $route) | |
{ | |
$route->userAgent(array('firefox' => function($data) { |
<body class="opening hide-UI view-2D zoom-large data-close controls-close"> | |
<div id="navbar"> | |
<a id="toggle-data" href="#data"><i class="icon-data"></i>Data</a> | |
<h1>3D CSS Solar System</h1> | |
<a id="toggle-controls" href="#controls"><i class="icon-controls"></i>Controls</a> | |
</div> | |
<div id="data"> | |
<a class="sun" title="sun" href="#sunspeed">Sun</a> | |
<a class="mercury" title="mercury" href="#mercuryspeed">Mercury</a> | |
<a class="venus" title="venus" href="#venusspeed">Venus</a> |
<?php | |
// Respect\Database is an easy API for any database with dead simple drivers | |
use Respect\Database\Data; | |
$data = new Data(array( | |
'p001' => new PDO(/*...*/), | |
'tweets' => new Mongo(/*...*/), | |
'timelines' => new Predis\Client(/*...*/), |
<?php | |
use Respect\Rest\Router; | |
use Respect\Relational\Mapper; | |
use Respect\Template\Xml; | |
use Respect\Template\Html; | |
$db = new Mapper(new PDO)); | |
$db->postsBase = $db->select('id', 'title', 'text')->posts( | |
$db->select('name', 'bio')->author) |
<?php | |
//Sample: http://localhost/controller.php?name=Fulano | |
include 'model.php'; | |
$hw = new HelloWorld; | |
$name = $_GET['name']; | |
$greetings = $hw->say($name); |
<?php | |
/** | |
* Controller is the customized base controller class. | |
* All controller classes for this application should extend from this base class. | |
*/ | |
class RestController extends CController | |
{ | |
/** | |
* @var string the default layout for the controller view. Defaults to '//layouts/column1', | |
* meaning using a single column layout. See 'protected/views/layouts/column1.php'. |
Titanium.App.addEventListener("playvideo", function (e) { | |
var win11 = Titanium.UI.createWindow({ | |
orientationModes: [Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT], | |
title: "Video", | |
zIndex: 222222 | |
}); | |
var activeMovie = Titanium.Media.createVideoPlayer({ | |
fullscreen: !0, | |
autoplay: !0, |
<?php | |
require_once 'ControllerTestCase.php'; | |
class AccountControllerTest extends ControllerTestCase | |
{ | |
public function testSignupWithNoDataRedirectsAndHasErrors() | |
{ | |
$response = $this->post('account@signup', array()); |
// I was unhappy about there was close to no control over the "pageControl" | |
// in scrollableViews, so I hacked my own | |
// ----- | |
// Configuration | |
var pageColor = "#c99ed5"; | |
PagingControl = function(scrollableView){ | |
var container = Titanium.UI.createView({ | |
height: 60 |