- README
- What problem does it solve?
- Usage examples
- Install instructions
- How can I contribute?
- CHANGELOG
- List relevant changes
- Make BC breaks proeminent
- Show examples of how to upgrade
- LICENSE
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 config --global alias.deploy '!test -x .git/hooks/deploy && .git/hooks/deploy || echo no deploy hook provided' |
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
function json_encode_jp($array) { | |
return preg_replace_callback( | |
'/\\\\u([0-9a-zA-Z]{4})/', | |
function ($matches) { | |
return mb_convert_encoding(pack('H*',$matches[1]),'UTF-8','UTF-16'); | |
}, | |
json_encode($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
#!/bin/bash | |
checkoutType=$3 | |
[[ "$checkoutType" == 1 ]] || exit | |
branch=`git symbolic-ref --short HEAD` | |
if [[ "$branch" == "master" ]]; then | |
sculpin generate --env=prod |
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
drop table venda_mensal cascade; | |
CREATE TABLE venda_mensal ( | |
venda_codigo integer NOT NULL, | |
venda_vtec_codigo integer, | |
venda_term_numero_terminal character varying(30), | |
venda_data_computador_bordo timestamp(0) without time zone, | |
venda_data_cadastro timestamp(0) without time zone default current_timestamp, | |
venda_codigo_gr integer | |
)TABLESPACE pg_default; |
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/sh | |
git diff-tree -r --no-commit-id --name-only --diff-filter=ACMRT master master^ | xargs zip patch.zip |
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 -e | |
directory=$1 | |
[ -z "$directory" ] || directory=`pwd` | |
total=0 | |
function round_float { | |
echo "($1 + 0.5)/1" | bc | |
} |
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
#!/usr/bin/env python | |
import pygtk | |
import gtk | |
import webkit | |
import sys | |
class Browser: | |
def __init__(self): |
- Make solar energy economical
- Provide energy from fusion
- Provide access to clean water
- Reverse-engineer the brain
- Advance personalized learning
- Develop carbon sequestration methods
- Engineer the tools of scientific discovery
- Restore and improve urban infrastructure
- Advance health informatics
- Prevent nuclear terror
- Programming: Principles and Practice Using C++ (Bjarne Stroustrup) (updated for C++11/C++14) An introduction to programming using C++ by the creator of the language. A good read, that assumes no previous programming experience, but is not only for beginners.
- C++ Primer * (Stanley Lippman, Josée Lajoie, and Barbara E. Moo) (updated for C++11) Coming at 1k pages, this is a very thorough introduction into C++ that covers just about everything in the language in a very accessible format and in great detail. The fifth edition (released August 16, 2012) covers C++11. [Review]