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(){ | |
if($('#form___names').length) { | |
$('form').css('outline',''); | |
$('#form___names,.form___names').remove(); | |
} else { | |
$('head,body').first().append('<style id="form___names">'+ | |
":hover + div.form___names > div, div.form___names > div:hover { background: white; z-index:99999999; opacity: 1; } "+ | |
"form:hover span.form___names { position:fixed; padding: 10px; background: white; top: 4px; left: 4px; font-size: 20px; z-index:99999999; padding: 6px; border: 3px solid gray; display: block; border-radius: 5px; } span.form___names { display:none; } "+ | |
"div.form___names { display:inline-block;position:relative; } "+ | |
"div.form___names div { white-space: nowrap; position:absolute; color:'+c+'; bottom:0; -webkit-transform: rotate(-12deg); -webkit-transform-origin: top left; z-index:99999998; padding: 1px 2px 2px; opacity: 0.5;} "+ |
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
my %morse_code = qw( A .- B -... C -.-. D -.. E . F ..-. G --. H .... | |
I .. J .--- K -.- L .-.. M -- N -. O --- P .--. Q --.- R .-. S ... | |
T - U ..- V ...- W .-- X -..- Y -.-- Z --.. 0 ----- 1 .---- | |
2 ..--- 3 ...-- 4 ....- 5 ..... 6 -.... 7 --... 8 ---.. 9 ----. ); |
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 string | |
import random | |
tchars = "abcdefghjkmnpqrstuvwxyZABCDEFGHJKMNPQRSTUVWXYZ23456789" | |
def token(length): | |
return ''.join(random.choice(tchars) for _ in range(length)) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
<title>Test</title> | |
<style> | |
.disabled { | |
opacity: 0.5; | |
} | |
</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
<?xml version="1.0" encoding="UTF-8"?> | |
<kml xmlns="http://earth.google.com/kml/2.2"> | |
<Document> | |
<name>Mount Olympus.kml</name> | |
<Style id="sn_ylw-pushpin"> | |
<LineStyle> | |
<color>ff0000ff</color> | |
<width>3</width> | |
</LineStyle> | |
</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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Busy Dialog Test</title> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.0/jquery-ui.min.js"></script> | |
<link href="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.0/themes/smoothness/jquery-ui.css" rel="stylesheet" /> | |
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet" /> | |
<style> | |
#test-main { |
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
<!doctype html> | |
<html> | |
<head> | |
<title>I Promise</title> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> | |
<script src="//cdn.rawgit.com/alexei/sprintf.js/master/src/sprintf.js"></script> | |
<style> | |
.rect { | |
height: 40px; | |
margin-bottom: 20px; |
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
$('<a download="body-html.html">Download Body HTML</a>').attr('href','data:text/html,'+encodeURIComponent($('body').clone().find('script, noscript').remove().end().html())).prependTo('body') |
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 bash | |
if [ "$1" == "" ] ; then | |
__keyword="python" | |
else | |
__keyword="$1" | |
fi | |
( | |
while :; do |
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 bash | |
until ping -c 1 10.10.10.200 ; do echo "Waiting 1 min" ; sleep 60 ; done | |
# MacOS play sounds: | |
for f in /System/Library/Sounds/*.aiff ; do echo $f ; afplay $f ; done |
OlderNewer