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
# Usage: | |
# ruby -rubygems json2csv.rb my-dump.json > people.csv | |
# | |
require 'json'; require 'csv' | |
FIELDS = %w(id screen_name name friends_count followers_count) | |
data = JSON.load ARGF | |
csv = CSV::Writer.create(STDOUT) | |
data.each { |user| csv << FIELDS.map { |f| user[f] } } |
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
set :application, 'foo' | |
set :repository, '_site' | |
set :scm, :none | |
set :deploy_via, :copy | |
set :copy_compression, :gzip | |
set :use_sudo, false | |
set :host, '127.0.0.1' | |
role :web, host | |
role :app, host |
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
Fixing the postgresql initdb fatal shared memory error on Leopard | |
Published Tue 18 December 2007 11:09 (+1300) | |
Tagged | |
software (43 posts and 3 photos) | |
mac os x (6 posts) | |
When doing the post-install setup of postgresql default database using initdb, you may hit this error: | |
FATAL: could not create shared memory segment: Cannot allocate memory | |
DETAIL: Failed system call was shmget(key=1, size=1646592, 03600). |
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
========================================================== | |
UBUNTU - Configurando Teclado | |
Setup Brazilian Portuguese layout keyboard | |
========================================================== | |
# Install de VIM Editor | |
sudo aptitude install vim | |
# adicionar a numeração de linha |
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
CHAPTERS=book/preamble.md \ | |
$(wildcard book/chapter-*.md) | |
CONTENTS=book/title.txt \ | |
$(CHAPTERS) | |
ALL_FILES=$(CHAPTERS) \ | |
book/metadata.xml \ | |
book/title.txt \ | |
cover.png |
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
#!/usr/bin/env bash | |
## create an ubuntu 14.04 hvm instance, then from your home directory: | |
# 1. download this script | |
# wget https://gist.githubusercontent.com/waylonflinn/506f563573600d944923/raw/install-python-data-science.sh | |
# 2. make it executable | |
# chmod a+x install-python-data-science.sh |
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
"abaixo", "aca", "acaso", | |
"acerca", "acima", "acola", "acula", "ademais", "adentro", | |
"adiante", "afinal", "afora", "agora", "agorinha", "ah", "ainda", | |
"alem", "algo", "alguem", "algum", "alguma", "algumas", "alguns", | |
"ali", "alias", "alo", "ambos", "amiude", "ante", "antes", "ao", | |
"aonde", "aos", "apenas", "apesar", "apos", "apud", "aquela", | |
"aquelas", "aquele", "aqueles", "aqui", "aquilo", "as", "assim", | |
"ate", "atras", "atraves", "basicamente", "bastante", "bastantes", | |
"bem", "bis", "bom", "ca", "cada", "cade", "caso", "certa", | |
"certamente", "certas", "certeiramente", "certo", "certos", "chez", |
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
module Jekyll | |
class MathJaxBlockTag < Liquid::Tag | |
def render(context) | |
'<script type="math/tex; mode=display">' | |
end | |
end | |
class MathJaxInlineTag < Liquid::Tag | |
def render(context) | |
'<script type="math/tex">' | |
end |
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
# DISCLAIMER: | |
# - Code is provided "as is" and any expressed or implied warranties are disclaimed. | |
# - Errors and omissions excepted. | |
# NOTE: | |
# - Read it carefully, some commands might have to be changed for your system. | |
# - BLAS/LAPACK compilation commands will most likely have to be changed based on the | |
# stackoverflow link below. | |
# - Running this shell file as a script is NOT recommended. Copy/pasting one command at a time is | |
# okay as long as you monitor the output for any possible errors/warnings. |
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
/* | |
JSTN THEME FOR LIMECHAT 1.0 | |
put this and the other thing in ~/Library/Application Support/LimeChat/Themes/ | |
bg 1a2230 | |
hlight 273146 | |
red e44347 | |
purps 8b84d0 | |
fuscia c2339a |
OlderNewer