Skip to content

Instantly share code, notes, and snippets.

View Ugoku's full-sized avatar

Sander de Jong Ugoku

View GitHub Profile
@Luuk3333
Luuk3333 / nederland-buienradar-sneeuw.py
Last active June 10, 2018 23:10
Python scripts to download buienradar.nl images.
import os
import arrow
import urllib
import zipfile
import time
# get times
timezone = 'Europe/Amsterdam'
timestamp_format = 'YYYY-MM-DD_HH-mm-ss'
log_timestamp_format = "YYYY-MM-DD HH:mm:ss.SSS ZZ"
@mgibbs189
mgibbs189 / test.php
Created January 7, 2016 01:25
FacetWP - isotope / image show issue for The7 theme
<?php
// Goes into functions.php
function fwp_theme_fix() {
?>
<script>
(function($) {
$(document).on('facetwp-loaded', function() {
$('.iso-grid').addClass('cont-id-0').isotope();
$('.wf-cell').addClass('shown');
@maxpert
maxpert / .htaccess
Last active October 29, 2017 06:40
PHP Long shadow icon generator.
# for neater URLS like /{text}/{size}/{bg}
RewriteEngine on
RewriteRule ^img/([^/]+)/(\d+)/([a-fA-F0-9]{6})$ i/index.php?text=$1&size=$2&bg=$3 [NC,QSA]
RewriteRule ^img/([^/]+)/(\d+)$ i/index.php?text=$1&size=$2 [NC,QSA]
RewriteRule ^img/([^/]+)$ i/index.php?text=$1 [NC,QSA]
RewriteRule ^img/([^/]+)/.+$ i/index.php?text=$1 [NC,QSA]
@paulirish
paulirish / gist:5558557
Last active April 18, 2024 14:32
a brief history of detecting local storage

A timeline of the last four years of detecting good old window.localStorage.


Jan Lenhart, bless his heart contributed the first patch for support:

October 2009: 5059daa