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
var domains = ""; | |
$('#ctl00_Main_ctl01_pnlResults tr td:nth-child(2) a').each(function(){ | |
domains += $(this).text() + '\n'; | |
}); | |
console.log(domains); |
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 sys | |
ENTRY_START = 297 | |
RATING_RANGE = (20, 24) | |
TITLE_START = 26 | |
input_file = sys.argv[1] | |
with open(input_file, 'r') as f: | |
entries = [line.strip() for line in f] |
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
(?:\s+(?P<rating>\d\.\d)\s+(?P<show_name>\".*)(?=\n.* {))(?:\n.*?\s+(\d\.\d)\s+.*?{(.*)}) |
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
// requires jQuery | |
function Color(r,g,b,a) { | |
this.r = parseInt(r); | |
this.g = parseInt(g); | |
this.b = parseInt(b); | |
this.a = parseFloat(a); | |
} | |
Color.prototype.rgb = function() { |
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
from .base import * | |
try: | |
from .local import * | |
except ImportError: | |
pass |
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
" Necesary for lots of cool vim things | |
set nocompatible | |
" Syntax highlighting | |
syntax on | |
" Improve indents | |
set smartindent | |
set tabstop=4 | |
set shiftwidth=4 |
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 os, sys, getpass | |
from requests.exceptions import HTTPError | |
import heroku | |
# var initialization | |
try: | |
my_app = sys.argv[1] | |
domains_file = sys.argv[2] | |
except IndexError: | |
print "\nUsage: ~$ python add_domains.py app_name domains_to_add.txt\n" |
NewerOlder