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/python | |
#Very simple way to create long JS string concatenations from each line in a file | |
#Opens the file given as the first and only argument, and outputs to SDOUT | |
# + '<contents of the line>' | |
#Author: Karl Cordes | |
import sys | |
try: |
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> | |
</head> | |
<body> | |
<style> | |
/* ============================================================================================================================ | |
== BUBBLE WITH A BORDER AND TRIANGLE | |
** ============================================================================================================================ */ |
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
<?php /* From http://sudarmuthu.com/blog/using-wordpress-built-in-tag-auto-complete-script-in-your-plugins */ ?> | |
<?php | |
// Register hooks | |
add_action('admin_print_scripts', 'add_script'); | |
add_action('admin_head', 'add_script_config'); | |
/** | |
* Add script to admin page |
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
var Imap = require('imap'), | |
inspect = require('util').inspect; | |
var imap = new Imap({ | |
user: '', | |
password: '', | |
host: 'imap.gmail.com', | |
port: 993, | |
secure: true | |
}); |
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
// Breakpoints. | |
$desktop: new-breakpoint( min-width 960px 12 ); | |
$tablet: new-breakpoint( min-width 768px max-width 959px 12 ); | |
$mobile: new-breakpoint( max-width 767px 12 ); | |
$handheld: new-breakpoint( max-width 959px 12 ); |
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
general { | |
colors = true | |
interval = 5 | |
} | |
#order += "ipv6" | |
order += "disk /" | |
#order += "run_watch DHCP" | |
#order += "run_watch VPN" | |
#order += "wireless wlan0" |
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
var c=document.getElementById("d"); | |
var c=c.getContext("2d"); | |
var L2=[0,425,338,332,402,225,542,465,262,465,402,225,460,315,800,378]; | |
var cs=["fff","f00","ffa500","ff0","0f0","00f","800080"]; | |
for(var i=2,j=0;i<26;){ | |
c.beginPath(); | |
c.lineWidth=i==2||i>=12?8:2; | |
var k=Math.floor(i/12)*(i%12-2); | |
if(k<0)k=10; |
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
<?php | |
// Infusionsoft Domain for connection | |
define('INFUSIONSOFT_DOMAIN', 'zhXXX'); | |
define('INFUSIONSOFT_KEY', 'XXXXXXXXXXXXXXXXXXXXXX'); | |
// get the isdk and other required files | |
require_once 'lib/iSDK-new/src/isdk.php'; |
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
$ grep cat$ /usr/share/dict/words | |
bobcat | |
cat | |
Chilcat | |
copycat | |
crazycat | |
ducat | |
gaycat | |
hellcat | |
hellicat |
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
""" | |
Requeriments: | |
$ sudo pip install boto dnspython | |
Edit ~/.boto to use your AWS credentials | |
""" | |
import time | |
import sys |
OlderNewer