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
find . -type f -name '*.gpx' -print | while read filename; do | |
echo "$filename"; | |
cat "$filename"|grep " <trkpt"|head -n 1; | |
done > output.txt |
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
#!/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> |
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
#!/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> |
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
#!/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 |
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
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" ]; |
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
import json | |
import csv | |
thuneEUR = 100 | |
thuneETH = 0 | |
paramChange = 1 | |
s = 0 # 0 = faire rien, -{paramChange} vendre, +{paramChange} acheter |
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
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 |
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
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 |
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
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") |
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
# -*- 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 |