Skip to content

Instantly share code, notes, and snippets.

Avatar

Ismaïl Baaj ibaaj

  • Paris, France
View GitHub Profile
@ibaaj
ibaaj / MiniGraphUI.java
Created Apr 19, 2016 — forked from karussell/MiniGraphUI.java
Alternative Roads to Rome
View MiniGraphUI.java
/*
* Licensed to GraphHopper and Peter Karich under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* GraphHopper licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
View .bash_profile
export PATH=/usr/local/bin:$PATH
alias NBContrast="convert $1 -type Grayscale -contrast $2"
alias imgdim='sips -g pixelHeight -g pixelWidth $1'
alias cx='chmod +x'
mcd() { mkdir -p "$1" && cd "$1"; }
qre() { qrencode -o /tmp/a.jpg '$1' && open "/tmp/a.jpg" && sleep 1 && rm "/tmp/a.jpg"; }
alias l='ls -al'
alias dieu='sudo su root -s /bin/zsh'
alias fuck='sudo su root -s /bin/zsh'
export iOSOpenDevPath=/opt/iOSOpenDev
View fan.py
import numpy as np
import skfuzzy as fuzz
import matplotlib.pyplot as plt
import sys
import matplotlib
matplotlib.rc('font', **{'sans-serif' : 'Arial',
'family' : 'sans-serif'})
View pasta
'Nom','Diametre','Largeur','Longueur','Epaisseur','Profondeur','Bords','Surface','CoupeTransversale','ProfilLongitudinal','TempsDeCuisson'
Acini di pepe,2,-,3,-,-,lisse,lisse,solide,droit,9
Agnolotti,-,30,45,-,-,crénelé,lisse,creux,pincé,10
Anellini,6,-,-,1,-,lisse,lisse,creux,droit,6
Bucatini,3,-,237,-,-,lisse,lisse,creux,droit,11
Buccoli,8,-,30,-,-,lisse,lisse,creux,helicoïdal,8
Calamaretti,25,-,14,-,-,lisse,lisse,creux,droit,14
Cannelloni,23,-,100,-,-,lisse,lisse,creux,droit,20
Cannolicchi rigati,8,-,41,-,-,lisse,strié,creux,droit,11
Capellini,1,-,260,-,-,lisse,lisse,solide,droit,2
@ibaaj
ibaaj / blocktoimg.py
Created Aug 13, 2018 — forked from laanwj/blocktoimg.py
tools to write (block) data to png files and vice versa
View blocktoimg.py
#!/usr/bin/env python3
# Distributed under the MIT software license
import binascii, struct, sys, io, argparse
from PIL import Image
IMG_WIDTH = 512 # could be made adaptive...
MIN_HEIGHT = 4 # minimum height of image; twitter won't let us upload anything smaller
BYTES_PER_PIXEL = 4 # RGBA, 8 bit
def div_roundup(x,y):
View p.tex
\documentclass[a4paper, 12pt]{article}
\usepackage{amsmath,amsthm,amssymb}
%\usepackage{diagrams}
\usepackage[french]{babel}
\usepackage[latin1]{inputenc}
\usepackage{hyperref}
\input xy
View awesome-gif.md
@ibaaj
ibaaj / 360TimelapseTutorial.md
Created Oct 13, 2017 — forked from Tomasvrba/360TimelapseTutorial.md
HD 360° Timelapse and FFmpeg tutorial
View 360TimelapseTutorial.md

How to capture, stitch and publish a 360° timelapse

Consumer ready 360° cameras are becoming ever more accessible and many people are experimenting with a variety of 360° content. Out of the many cameras on the market the Ricoh Theta S is one of the most user-friendly, turn-key solutions with lots of built-in features. However, the camera's videos are limited 1920x960 resolution and the Theta+ app only lets you create a timelapse with up to 300 or 400 images. The workaround is to use interval shooting to capture as many images as you'd like at the 5376x2688 to full resolution and then stitch them together manually into an HD video. There are few GUI solutions (especially open-source/free) which let you do this with ease. Here's how you do it:

Set up interval shooting on your Ricoh Theta S

@ibaaj
ibaaj / plot_runkeeper.R
Last active Oct 4, 2017 — forked from danielecook/plot_runkeeper.R
Create HeatMap of Runkeeper's data (forked)
View plot_runkeeper.R
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 Sep 21, 2017
query-ratp-realtime.sh
View 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>
You can’t perform that action at this time.