Skip to content

Instantly share code, notes, and snippets.

View phcostabh's full-sized avatar
🧑‍💻
Coding

Philippe Santana Costa phcostabh

🧑‍💻
Coding
View GitHub Profile
#!/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"
#!/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
" 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
#!/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
<?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
<?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" >
<?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'
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() {
// 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,
Suggest = (function() {
function Suggest(input, options) {
this.$input = $(input);
this.options = options;
this.$suggest = $(options.suggestEl);
}
Suggest.prototype = {