Skip to content

Instantly share code, notes, and snippets.

@danielhickman
danielhickman / Control-TP-Link-Smart-Bulbs-with-IFTTT.md
Last active July 29, 2020 12:37
Control TP-Link Smart Bulbs with IFTTT and HTTP Requests
@danielhickman
danielhickman / Wayback Machine Block.md
Created December 12, 2016 01:31
Block the Wayback Machine seen on web.archive.org
@danielhickman
danielhickman / Bug-Reporter-for-GitHub.md
Created January 6, 2016 04:12
JavScript Bug Reporter for GitHub Repos

JavaScript:

(function() {
	"use strict";
	// Set me!
	githubURL = "https://github.com/username/repo";
	title = "[Bug Report]: Blah Blah Blah";


	var errors = [];
@danielhickman
danielhickman / Waves-Drag-Calm.md
Last active January 6, 2016 04:13
Calm waves effects not calmed because of a drag-start.

JavaScript:

document.addEventListener("dragstart", function() {
	Waves.calm(".waves-effect");
});
@danielhickman
danielhickman / JavaScript-Remove-and-Remove-Children.md
Created November 14, 2015 02:24
JavaScript Remove and Remove Children
// Remove Element(s)
Element.prototype.remove = function() {
	this.parentElement.removeChild(this);
}
NodeList.prototype.remove = HTMLCollection.prototype.remove = function() {
	for (var i = this.length - 1; i >= 0; i--) {
		if(this[i] && this[i].parentElement) {
			this[i].parentElement.removeChild(this[i]);
 }
@danielhickman
danielhickman / Simple-GitHub-Webhook-Deployment.md
Last active August 29, 2015 14:28
How to Create a Simple GitHub Webhook Deployment

Dependencies:

  • #linuxmasterrace
  • git
  • php
  • apache

Commands to run before:

cd /var/www/example.com/
git clone https://github.com/username/reponame.git