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" |
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
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
// 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
(?:\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
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
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
(function($) { | |
/*! | |
A very simplified version of: | |
Name: Reading Time | |
Dependencies: jQuery | |
Author: Michael Lynch | |
Author URL: http://michaelynch.com | |
Date Created: August 14, 2013 | |
Date Updated: January 24, 2014 |
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> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="description" content="{% block meta_description %}Default meta description here.{% endblock %}"> | |
<title>{% block title %}Default title here{% endblock %}</title> | |
<link rel="icon" type="image/x-icon" href="{{ STATIC_URL }}img/favicon.ico"> | |
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/main.css"> | |
<script src="//code.jquery.com/jquery-1.10.2.min.js"></script> |
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
hliddiard@ubuntu:~$ npm update -g yo | |
npm http GET https://registry.npmjs.org/yo | |
npm http 304 https://registry.npmjs.org/yo | |
hliddiard@ubuntu:~$ yo --version | |
1.1.2 | |
hliddiard@ubuntu:~$ |
OlderNewer