Skip to content

Instantly share code, notes, and snippets.

View AmadejKrepek's full-sized avatar
🎯
Focusing

Amadej Krepek AmadejKrepek

🎯
Focusing
View GitHub Profile
@robflaherty
robflaherty / csv-to-json.php
Created September 1, 2011 02:26
Convert CSV to JSON
<?php
/*
* Converts CSV to JSON
* Example uses Google Spreadsheet CSV feed
* csvToArray function I think I found on php.net
*/
header('Content-type: application/json');
// Set your CSV feed
@dwf
dwf / gist:1222883
Created September 16, 2011 19:19
Using matplotlib + multiprocessing for asynchronous, interactive monitoring plots.
"""Demo of how to pop up plots asynchronously using separate processes."""
from multiprocessing import Process
import time
import sys
import matplotlib.pyplot as plt
import numpy as np
def demo():
i = 0
processes = []
@msramalho
msramalho / instructions.md
Last active May 29, 2024 08:41
How to get a Facebook long term (non-expiring) access token for a Page