Skip to content

Instantly share code, notes, and snippets.

View ibaaj's full-sized avatar

Ismaïl Baaj ibaaj

  • Paris, France
View GitHub Profile
@ibaaj
ibaaj / plot_runkeeper.R
Last active October 4, 2017 08:55 — forked from danielecook/plot_runkeeper.R
Create HeatMap of Runkeeper's data (forked)
find . -type f -name '*.gpx' -print | while read filename; do
echo "$filename";
cat "$filename"|grep " <trkpt"|head -n 1;
done > output.txt
@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 / 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>
#!/bin/zsh
rm -rf ./frames ./ftop ./fbottom ./final;
mkdir -p {frames,ftop,fbottom,final};
ffmpeg -i IMG_6501.MOV -r 25 -qscale:v 2 frames/%05d.jpg ;
framesNumber=$(ls ./frames/*.jpg |wc -l|tr -d ' ');
C_H=540
digraph mainmap {
resolution = 72;
node [fontsize = 10];
edge [fontsize = 9];
overlap = false;
sep=0.4
splines=true;xSatisfiability [label= "SATISFIABILITY" URL= "http://en.wikipedia.org/wiki/Satisfiability"style="bold", shape="ellipse", peripheries="2", fontsize ="14"];
xCircuitSatisfiability [label= "CIRCUIT SATISFIABILITY" URL= "" style ="filled", fillcolor ="#eeeeee" style="bold", shape="ellipse", peripheries="2", fontsize ="14"];
xMaxCut [label= "MAX CUT" URL= "http://en.wikipedia.org/wiki/Cut_(graph_theory)#Minimal_and_maximal_cuts"];
xJobSequencing [label= "JOB SEQUENCING" URL= "" style ="filled", fillcolor ="#eeeeee" ];
@ibaaj
ibaaj / get.py
Created May 9, 2017 00:37
09/05 bot
import json
import csv
thuneEUR = 100
thuneETH = 0
paramChange = 1
s = 0 # 0 = faire rien, -{paramChange} vendre, +{paramChange} acheter
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 / 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 / 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