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
.load { | |
height:100px; | |
width:100px; | |
margin:0 auto; | |
position:relative; | |
-webkit-animation: rotation 1s infinite linear; | |
-moz-animation: rotation .6s infinite linear; | |
-o-animation: rotation .6s infinite linear; | |
animation: rotation .6s infinite linear; | |
border:6px solid rgba(236,30,39,.25); |
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 | |
# 1 | |
wget -qO root.zone http://www.internic.net/domain/root.zone | |
# 2 | |
cat root.zone | grep "IN\sNS" | awk '{print $1}' | uniq | sort | sed -r 's/\.//g' | sed '/^$/d' > zone.list 2> /dev/null | |
# 3 |
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
//require(scriptList, onSuccess[, onFailure]) | |
//usage: | |
//require(["a.js", "b.js"], function (){ /*scripts have loaded; do stuff*/ }, function (){ /*one or more scripts didn't load; handle error*/ }); | |
// | |
//scriptList can just be a string if there's only one script | |
var require = (function (){ | |
var head = document.getElementsByTagName("head")[0]; | |
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
This fixes the transparency of PNG images in IE 6, for both image elements and background image styles. | |
This also requires a 1-pixel transparent GIF "blank.gif" in the same directory as "iepngfix.htc". | |
Put the HTML below into <head>, make sure the path to "iepngfix.htc" is correct, and apply it to specific elements instead of everything. | |
<!--[if lte IE 6]> | |
<style type="text/css" media="all"> | |
* { behavior:url(/css/iepngfix.htc); } /*IE 6 PNG fix*/ | |
</style> |
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
This is a complete stylesheet for everything in HTML 4.01, including some useful classes -- not really for use on a website, but a good reference. | |
<!--master styles--> | |
<link rel="stylesheet" type="text/css" media="all" href="css/master_main.css" /> | |
<link rel="stylesheet" type="text/css" media="all" href="css/master_classes.css" /> | |
<!--[if IE]><link rel="stylesheet" type="text/css" media="all" href="css/master_IE.css" /><![endif]--> | |
<!--[if lte IE 6]><link rel="stylesheet" type="text/css" media="all" href="css/master_IE6.css" /><![endif]--> |
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
<html> | |
<head> | |
<title>Log</title> | |
<style type="text/css" media="all"> | |
#log { | |
padding:0.5em; | |
overflow:auto; | |
font-family:"Envy Code R", "Consolas", "DejaVu Sans Mono", "Anonymous Pro", "Courier New", monospace; |
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
//http://www.w3.org/TR/notifications/ | |
//https://developer.mozilla.org/en-US/docs/Web/API/notification | |
//Notifier.isSupported | |
// | |
//Notifier.permission //"granted", "denied", or "default" | |
// | |
//Notifier.requestPermission([callback]) //first argument of callback is the current permission | |
// | |
//Notifier.notify(title[, options]) |
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
//getDimensions([elem]) | |
//setScrollPosition(elem, top, left) | |
(function (){ | |
"use strict"; | |
//**********************// | |
//***** Dimensions *****// | |
//**********************// |
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
if(!Math.root){ | |
Math.root = function root(num, degree){ | |
return Math.pow(num, (1/degree)); | |
}; | |
} |