Skip to content

Instantly share code, notes, and snippets.

View ibaaj's full-sized avatar

Ismaïl Baaj ibaaj

  • Paris, France
View GitHub Profile
date value
2017-05-08 02:25:05 84.2557611
2017-05-08 02:30:03 84.39944492
2017-05-08 02:35:04 84.80249011
2017-05-08 02:40:03 85.00872619
2017-05-08 02:45:04 84.94212441
2017-05-08 02:50:05 84.9358578
2017-05-08 02:55:03 84.88719833
2017-05-08 03:00:06 84.82001123
2017-05-08 03:05:06 84.74269385
@ibaaj
ibaaj / get.py
Last active May 4, 2017 14:29
Ethereum Notification System
import urllib.request
import json
import datetime
import csv
import matplotlib.pyplot as plt
import matplotlib.dates as md
import dateutil
import os
from pushbullet import Pushbullet
@ibaaj
ibaaj / find.py
Created May 1, 2017 17:33
Map My Feet
# -*- coding: utf-8 -*-
import requests
import json
import csv
from requests.auth import HTTPBasicAuth
from time import strftime
USERNAME = "XXXXXXX" # icloud username
PASSWORD = "XXXXXXX" # icloud pass
@ibaaj
ibaaj / get.py
Created April 30, 2017 21:00
track flight price drops
from google_flight import google_flight_api
from pushbullet import Pushbullet
import datetime
import time
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
g = google_flight_api.GoogleFlight("XXXXXXXXXXXX")
@ibaaj
ibaaj / gist:7e2c6e1af14e23b37f785bcedb0e7ede
Created April 11, 2017 13:35
foule ffmpeg & image magique avec brou
brew install ffmpeg --with-chromaprint --with-fdk-aac --with-fontconfig --with-freetype --with-frei0r --with-game-music-emu --with-libass --with-libbluray --with-libbs2b --with-libcaca --with-libebur128 --with-libgsm --with-libmodplug --with-libsoxr --with-libssh --with-libvidstab --with-libvorbis --with-libvpx --with-opencore-amr --with-openh264 --with-openjpeg --with-openssl --with-opus --with-rtmpdump --with-rubberband --with-schroedinger --with-sdl2 --with-snappy --with-speex --with-tesseract --with-theora --with-tools --with-two-lame --with-wavpack --with-webp --with-x265 --with-xz --with-zeromq --with-zimg
brew install imagemagick --with-fftw --with-fontconfig --with-ghostscript --with-hdri --with-liblqr --with-librsvg --with-libwmf --with-little-cms --with-little-cms2 --with-opencl --with-openexr --with-openjpeg --with-openmp --with-pango --with-perl --with-quantum-depth-16 --with-quantum-depth-32 --with-quantum-depth-8 --with-webp --with-x11 --with-zero-configuration
@ibaaj
ibaaj / ratpNew.sh
Last active September 21, 2017 11:47
#!/bin/zsh
read -d '' query << EOF
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns="http://wsiv.ratp.fr" xmlns:xsd="http://wsiv.ratp.fr/xsd">
<soap:Header/>
<soap:Body>
<getMissionsNext>
<station>
<xsd:id>181</xsd:id>
@ibaaj
ibaaj / query-ratp-realtime.sh
Last active September 21, 2017 11:47
query-ratp-realtime.sh
#!/bin/zsh
read -d '' query << EOF
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns="http://wsiv.ratp.fr" xmlns:xsd="http://wsiv.ratp.fr/xsd">
<soap:Header/>
<soap:Body>
<getStations>
<station>
@ibaaj
ibaaj / bmlib.c
Last active December 14, 2016 23:31
sym
#include "berlekamp-massey.h"
int
berlekamp_massey(maxlen_t s, byte_t len, maxlen_t * poly, maxlen_t * lambda)
{
maxlen_t q = 1, t, k, i;
byte_t d;
int64_t m = -1;
*poly = 1;
hex2dec(){
a=$(echo ${1} | tr "a-z" "A-Z");
echo "ibase=16; ${a}"|bc;
}
dec2hex(){
echo "obase=16; $@"|bc
}
dec2bin() {
echo "obase=2; ${1}" | bc -l;