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 BeautifulSoup | |
import cookielib | |
import re | |
import urllib2 | |
def parse_rating(rating): | |
"""Parse a rating's class name and return it as a number. |
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> | |
<meta charset="utf-8"> | |
<style> | |
html, body { | |
background: silver; | |
margin: 0; |
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> | |
<meta charset="utf-8"> | |
<meta content="maximum-scale=1,minimum-scale=1,width=device-width" name="viewport"> | |
<style> | |
body { | |
margin: 0; |
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> | |
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
<html> | |
<head> | |
<title>iOS 8 web app</title> | |
<!-- CONFIGURATION --> |
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> | |
<meta charset="utf-8"> | |
<link href="css/bootstrap.min.css" rel="stylesheet"> | |
<link href="css/bootstrap-responsive.min.css" rel="stylesheet"> | |
<title>Bootstrap >= 2.0.3</title> |
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
\version "2.16.1" | |
sharp = #(define-music-function (parser location note) (ly:music?) #{ | |
\once \override NoteHead #'color = #(rgb-color .75 .25 0) | |
\once \override Stem #'color = #(rgb-color .75 .25 0) | |
#note | |
#}) | |
flat = #(define-music-function (parser location note) (ly:music?) #{ | |
\once \override NoteHead #'color = #(rgb-color 0 .25 .75) |
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 ruby | |
require 'net/http' | |
pattern = /^\[[0-9]+\]: (http.*)$/i | |
Dir.glob('./_posts/*.md').sort.each do |file| | |
puts file | |
File.open(file).each_line do |line| | |
match = pattern.match(line) | |
if match |
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
# coding: utf-8 | |
require 'rspec' # 2.14.1 | |
# NOTE: "include?" and "included_modules" are for modules only. | |
CLASS_METHODS = %i( | |
!= | |
< | |
<= | |
<=> |