Skip to content

Instantly share code, notes, and snippets.

View hced's full-sized avatar

Henrik Cederblad hced

  • H. Cederblad
  • Göteborg, Sweden
View GitHub Profile
@swarminglogic
swarminglogic / watchfile.sh
Last active March 4, 2024 14:44
watchfile - monitor file(s) and execute a command when files are changed
#!/bin/bash
version=1.0.1
versionDate="2014-02-14"
function showHelp() {
echo "watchfile - monitor file(s)/command and perform action when changed
Possible ways of usage
----------------------------------------
@hced
hced / stickyfooter.html
Created September 5, 2012 12:57
Sticky Footer (credits to Ryan Faith)
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
* {
margin: 0;
}
html, body {
@loranger
loranger / userscript.js
Created September 27, 2011 10:43
Trello badge userscript for FluidApp
// ==UserScript==
// @name Fluid Dock Badge for Trello
// @namespace http://fluidapp.com
// @description Display a dock badge for the Trello Dashboard with the number of new notifications
// @include *.trello.com
// @author Laurent Goussard
// ==/UserScript==
if (!window.fluid) {
return;
}
@jonahlyn
jonahlyn / loadJQuery.js
Created September 19, 2011 17:00
Load jQuery only if it hasn't already been included somewhere on the page.
/* Load jQuery only if needed */
(function(){
var scriptAdded = false, js;
function initJQuery() {
if(typeof(jQuery) === 'undefined'){
if(!scriptAdded){
js = document.createElement('script');
js.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js';
var first = document.getElementsByTagName('script')[0];