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
https://google.com/maps/?saddr=ORIGIN&daddr=DESTINATION&dirflag=METHOD | |
# Method = (d)riving | t(r)ansit | (w)alking | (b)icycling |
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
jQuery.fn.removeStyle = function( property ) { | |
// Remove all styles if no property is specified | |
if ( property === null ) { | |
return this.removeAttr( 'style' ); | |
} | |
// Split the property list | |
var proporties = property.split( /\s+/ ); | |
// Loop through each property and remove them |
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/bash | |
# Make sure at least the first parameter is set | |
if [ -z "$1" ]; then | |
echo "Usage: kick [-d] user" | |
exit | |
fi | |
# Check if the -d flag (delete) is set | |
if [[ "$1" == '-d' ]]; then |
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
#!/usr/bin/env python | |
import sys | |
import base64 | |
import time | |
import struct | |
import hashlib | |
import hmac | |
# Abort with error if not used properly |
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
( function( $ ) { | |
// Store the original method for all other uses | |
var oldRemoveClass = $.fn.removeClass; | |
// Replace existing method iwth new version | |
$.fn.removeClass = function( className ) { | |
if ( className instanceof RegExp ) { | |
// Run a regex replace on each element's class name list | |
return $( this ).each( function() { | |
var classes = $( this ).attr( 'class' ) || ''; |
NewerOlder