This file contains 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 | |
class Currency | |
{ | |
/** @var string */ | |
private $literalCode; | |
/** @var int */ | |
private $numericCode; |
This file contains 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 | |
interface ClassGenerator | |
{ | |
/** | |
* @return string | |
*/ | |
public function getClassName(); | |
/** |
This file contains 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
CREATE TABLE players ( | |
player_id INT AUTO_INCREMENT NOT NULL, | |
player_name VARCHAR(255) NOT NULL, | |
PRIMARY KEY(player_id) | |
); | |
INSERT INTO players (player_name) VALUES | |
('Sasha'), | |
('Kris'), |
This file contains 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 | |
use Psr\Log\LogLevel; | |
/** | |
* Dump just everything to da fokkin' stdout, yeah! | |
*/ | |
class StdoutDebugLogger extends Psr\Log\AbstractLogger | |
{ | |
protected $useAnsiCodes = false; |
This file contains 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 | |
class MyDevelopmentServiceManager | |
{ | |
protected $factories = array( | |
'Foo' => '\MyModule\Foo', | |
'Bar' => '\MyModule\Bar', | |
); | |
protected $instances; |
This file contains 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
# sudo apt-get install pandoc | |
MARKDOWN = pandoc --from markdown --to html5 --css style.css --standalone | |
# sudo apt-get install node-less | |
LESS = lessc --compress | |
SOURCE_PAGES = $(shell find . -type f -name '*.md') | |
TARGET_PAGES = $(patsubst %.md,%.html,$(SOURCE_PAGES)) | |
all: $(TARGET_PAGES) style.css |
This file contains 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
Index: .fluxbox/init | |
=================================================================== | |
--- .fluxbox/init (revision 762) | |
+++ .fluxbox/init (revision 763) | |
@@ -31,7 +31,7 @@ | |
session.screen0.overlay.capStyle: CapNotLast | |
session.screen0.clientMenu.usePixmap: true | |
session.screen0.toolbar.visible: true | |
-session.screen0.toolbar.onhead: 0 | |
+session.screen0.toolbar.onhead: 1 |
This file contains 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
{ | |
"minimum-stability": "dev", | |
"require": { | |
"php": ">=5.3.3", | |
"silex/silex": "1.0.*", | |
"jquery/jquery": "@stable", | |
"twitter/bootstrap": "@stable" | |
}, | |
"repositories": [ | |
{ |
This file contains 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
% grep Audio ~/.fluxbox/keys | |
XF86AudioPlay :ExecCommand mpc toggle | |
XF86AudioPrev :ExecCommand mpc prev | |
XF86AudioNext :ExecCommand mpc next | |
XF86AudioStop :ExecCommand mpc stop | |
XF86AudioLowerVolume :ExecCommand aumix -v-10 | |
XF86AudioRaiseVolume :ExecCommand aumix -v+10 | |
XF86AudioMute :ExecCommand aumix -v 0 |
This file contains 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
// This code is OK | |
if (navigator.geolocation) { | |
deploySelfDrivingCar() | |
notifyFlyingMonkeys() | |
} else { | |
asknicelyforlocation() | |
} | |
// Not OK | |
foo(); bar(); |