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
#!/bin/bash | |
# TODO: Add helpful comments. | |
set -x | |
SRC_DIR="/usr/local/src" | |
NGX_INSTALL_VERSION="1.4.2" | |
LUA_JIT_VERSION="2.0.2" | |
LUA_PATH="/usr/local/include/luajit-2.0" |
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
#!/bin/bash | |
branch=$(git rev-parse --abbrev-ref $1) | |
YELLOW='\e[0;33m' | |
NO_COLOR='\e[0m' #disable any colors | |
success () { | |
echo | |
echo -e "${YELLOW}**** $1${NO_COLOR}" | |
echo |
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
" UI Configuration { | |
colorscheme jellybeans | |
set guifont=Liberation\ Mono\ 09 | |
set linespace=1 | |
set nospell | |
set t_Co=256 | |
nnoremap ; : | |
set nofoldenable | |
set showmatch | |
set nohidden |
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
#!/bin/bash | |
branch=$(git rev-parse --abbrev-ref $1) | |
echo | |
echo "**** Pulling changes into Live [Hub's post-update hook]" | |
echo | |
cd /home/desenvolvedores/philippe.costa/public_html/Letras || exit | |
unset GIT_DIR |
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 | |
/** | |
* Source from http://www.yiiframework.com/forum/index.php/topic/11568-php-objects-vs-arrays-performance-myth/ | |
*/ | |
define('NUM_INSTANCES', 10); | |
define('NUM_TESTS', 10000); | |
class TestObject |
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
<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<match target="font" > | |
<edit mode="assign" name="autohint" > | |
<bool>false</bool> | |
</edit> | |
</match> | |
<match target="font" > | |
<edit mode="assign" name="rgba" > |
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
<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<!-- | |
Documented at | |
http://linux.die.net/man/5/fonts-conf | |
To check font mapping run the command at terminal | |
$ fc-match 'helvetica Neue' |
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
console.time('matching-words'); | |
var query = 'James Morrison Broken Strings ft. Nelly Furtado', | |
results = [ | |
'Broken Strings (feat. Nelly Furtado) James Morrison', | |
'Broken Strings (feat. James Morrison) Nelly Furtado', | |
], | |
match, aux = 0, matches; | |
Array.prototype.unique = 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
// Lib Fuse | |
var Fuse = require('./fuse.js'), | |
// Lib http do Node | |
http = require('http'), | |
// Seta a url do Solr | |
SOLR_HOST = process.argv[2].split(':')[0], | |
// Seta porta do SOLR | |
SOLR_PORT = parseInt(process.argv[2].split(':')[1] || 80, 10), | |
// Flag de Debug | |
DEBUG = parseInt(process.argv[3], 10) || false, |
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
Suggest = (function() { | |
function Suggest(input, options) { | |
this.$input = $(input); | |
this.options = options; | |
this.$suggest = $(options.suggestEl); | |
} | |
Suggest.prototype = { |