Skip to content

Instantly share code, notes, and snippets.

language time en_us
colorscheme molokai
if has("gui_macvim")
set guifont=Menlo:h11
endif
cnoremap w= w!
cnoremap q= q!
@aliou
aliou / clang
Created February 15, 2013 10:57
src/Parser.cpp:71:16: error: reference to non-static member function must be called; did you mean to call it with no arguments?
if ((*it)->getType == Token::UNKNOWN)
~~~~~~~^~~~~~~
()
1 error generated.
make: *** [src/Parser.o] Error 1
S := [INSTR SEP]* #
INSTR :=
push(N)
| pop
| dump
| add
| sub
| mul
| div
@aliou
aliou / _Readme.md
Last active December 10, 2015 16:49
Cheddar (cheddarapp.com) lists backup.

Quick command line interface for Cheddar. Uses the vermonster gem, install with:

gem install vermonster

The config file is located at ~/.config/cheddar/config is formated like a regular yaml file:

client_id: xxxxxxx
@aliou
aliou / README.md
Last active December 10, 2015 14:59 — forked from mbostock/.block
Calendar view.

This example demonstrates loading of CSV data, which is then quantized into a diverging color scale. The values are visualized as colored cells per day. Days are arranged into columns by week, then grouped by month and years. Colors by Cynthia Brewer. Layout inspired by Rick Wicklin and Robert Allison. Dow Jones historical data copyright Yahoo! Finance or independent data provider; fair use for educational purposes.

@aliou
aliou / parse_manifest.py
Last active January 22, 2019 15:11
Manifest.mbdb parsing for iOS 5+.
#!/usr/bin/env python
# From http://stackoverflow.com/questions/3085153/how-to-parse-the-manifest-mbdb-file-in-an-ios-4-0-itunes-backup
import sys
import hashlib
mbdx = {}
def getint(data, offset, intsize):
"""Retrieve an integer (big-endian) and new offset from the current offset"""
value = 0
require 'gmail'
Gmail.connect(username, password) do |gmail|
gmail.deliver do
to "[email protected]"
subject "Having fun in Puerto Rico!"
text_part do
body "Text of plaintext message."
end
html_part do
@aliou
aliou / _Readme.md
Last active December 10, 2015 01:38
October 2012.

Nikefuel data for october 2012.

@aliou
aliou / readme.md
Last active December 10, 2015 00:59 — forked from NorthIsUp/fuel.py

Nike fuel data

The config file is located at ~/.config/nike/config is formated like a regular yaml file:

access_token: xxxxxxx
deviceId: xxxxxxx
require 'vermonster'
cheddar = Vermonster::Client.new(:id => client_id, :secret => client_secret)
cheddar.use_token!(user_token)
tasks_id = []
tasks = cheddar.lists.find(1619).tasks
tasks.each do |task|
tasks_id.push(task['id'])