Skip to content

Instantly share code, notes, and snippets.

View AmadejKrepek's full-sized avatar
🎯
Focusing

Amadej Krepek AmadejKrepek

🎯
Focusing
View GitHub Profile
@msramalho
msramalho / instructions.md
Last active December 10, 2025 16:59
How to get a Facebook long term (non-expiring) access token for a Page
@wxguy
wxguy / wgrib2_auto_compile_script.sh
Last active October 7, 2025 08:18
A small bash script to compile wgrib2 from source on Ubuntu OS...
#!/bin/bash
# License for this script is GNU 2
# A small bash script to download, compile and install latest wgrib2 from source.
# I have written this script so that I can automate the proceedure whenever I change Linux OS
# Make it executable before running the script using'chmod +x ./wgrib2_auto_compile_script.sh'
# Ensure to run the script with sudo (sudo ./wgrib2_auto_compile_script.sh) or under root environment
@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 = []
@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