This file contains hidden or 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
var fs = require('fs'); | |
var _ = require('underscore')._; | |
var artists = [{ | |
name: 'Raphaeel Saadiq', | |
album: [ | |
'Instant Vintage' | |
] | |
}, { |
This file contains hidden or 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
var _ = require('underscore')._; | |
var casper = require('casper').create({ | |
clientScripts: [ | |
'bower_components/jquery/dist/jquery.min.js', | |
'bower_components/underscore/underscore.js' | |
], | |
verbose: true, | |
logLevel: 'debug' | |
}); |
This file contains hidden or 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
var casper = require('casper').create(); | |
var utils = require('utils'); | |
var URL_LOGIN = ""; | |
var URL_AUTH = ""; | |
var AUTH_TOKEN = null; | |
var AUTH_EMAIL = null; | |
var AUTH_PASS = null; | |
casper.start(URL_LOGIN, function() { |
This file contains hidden or 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
var nodePath = require('path'); | |
/** | |
* @param string filePath | |
* @return string filePath[extension] | |
*/ | |
var getFileExtension = function(filePath) { | |
var extension = nodePath.extname(filePath||'').split('.'); | |
return extension[extension.length - 1]; | |
}; |
This file contains hidden or 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
# pstorm | |
_ac | |
$this->assertCount($START$, $COUNTABLE$); $END$ | |
_at | |
$this->asserTrue($START$, $BOOLEAN$); $END$ | |
_e | |
$this->asserEquals($START$, $CHECK_EQUAL$); $END$ | |
_ins | |
$this->assertInstanceOf('$START', $INSTANCE$); $END$ |
This file contains hidden or 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
# Custom stuff | |
# Added to my repo | |
cscope.* | |
tags | |
phpcd.phar | |
private | |
# IDEs and code-editors | |
.idea |
This file contains hidden or 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
nmap <S-Enter> o<Esc> " new NEXT line in normal mode | |
nmap <S-Backspace> O<Esc> " new PREVIOUS line in normal mode |
This file contains hidden or 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 | |
require_once __DIR__.'/../vendor/autoload.php'; | |
use Symfony\Component\HttpFoundation\Request; | |
$app = new Silex\Application(); | |
$app->register(new Silex\Provider\TranslationServiceProvider(), array( | |
'translator.messages' => array(), |
This file contains hidden or 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
$: git checkout A | |
$: git checkout --patch B f |
This file contains hidden or 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
mkdir `date +%y-%m-%d` |