This file contains hidden or 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
#Query Phish.net API via Python 2.71. | |
import urllib, json, sys | |
url='https://api.phish.net/' | |
js='api.js' | |
apikey = 'Your API Key' | |
format = 'json' | |
apiver = '2.0' |
This file contains hidden or 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
import cx_Oracle | |
conn = cx_Oracle.Connection("userid/password@tns") | |
curs = conn.cursor() | |
curs.callproc("dbms_output.enable") | |
sqlCode = """ | |
some long | |
sql code | |
with dbms_output |
This file contains hidden or 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 | |
curl -u [email protected] --silent "https://mail.google.com/mail/feed/atom" | | |
perl -ne \ | |
' | |
print "SUBJECT: $1 \n" if /<title>(.+?)<\/title>/; | |
print "RECEIVED $1 \n" if /<issued>(.+?)<\/issued>/; | |
print "FROM: $1 " if /<name>(.+?)<\/name>/; | |
print "($1)\n\n" if /<email>(.+?)<\/email>/; | |
' |
This file contains hidden or 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 | |
# Written by: Terry Moore | |
# Created on Date: 2009-10-12 | |
# Test mail relay from a Linux database server | |
# Version 0.2 | |
# Last update 2009-10-13 | |
#Body of Email | |
DATA="The test message has been sent" |
This file contains hidden or 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
#include <Array.au3> | |
#include <IE.au3> | |
#include <File.au3> | |
$csvFile = "c:\temp\players.csv" | |
for $i = 1 to 30 | |
$ieObject = _IECreate ("http://www.nhl.com/ice/app?service=page&page=playerstats&fetchKey=20112ALLAASAll&viewName=bios&sort=player.birthCountryAbbrev&pg=" & $i) | |
This file contains hidden or 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></title> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> | |
<style> | |
*{padding:0px; margin:0px;} |
This file contains hidden or 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
/** | |
* Replace $.ajax on your subdomain with a copy taken | |
* from your base domain. All jQuery AJAX actions go | |
* through $.ajax (i.e. $.get, $.post), so it's all good. | |
*/ | |
(function() { | |
var iframe, | |
onload, | |
queue = [], |
This file contains hidden or 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://cssdeck.com/labs/baseball-field --> | |
<html> | |
<head> | |
<title>CSS3 Baseball field</title> | |
<style type="text/css"> | |
#field{ | |
position:absolute; |
This file contains hidden or 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(){ | |
var swiperight = null; | |
$('body').on('touchstart vmousedown', function(e){ | |
if (e.pageX < 20) | |
swiperight = e.pageX; | |
else | |
swiperight = null; | |
}); | |
OlderNewer