A small Python webserver for serving AMP files locally in development. Adds the required headers for CORS requests.
Run the server.py
script from the directory you wish to act as the root of your webserver:
$ python server.py
h scroll left | |
j scroll down | |
k scroll up | |
l scroll right | |
gg scroll to top of the page | |
G scroll to bottom of the page | |
f activate link hints mode to open in current tab | |
F activate link hints mode to open in new tab | |
r reload |
[alias] | |
c = commit -m | |
a = add | |
st = status | |
cm = commit | |
br = branch | |
co = checkout | |
df = diff | |
lg = log -p | |
pl = pull |
A small Python webserver for serving AMP files locally in development. Adds the required headers for CORS requests.
Run the server.py
script from the directory you wish to act as the root of your webserver:
$ python server.py
<?xml version="1.0" encoding="UTF-8"?> | |
<opml version="1.0"> | |
<head> | |
<title>Luigi Montanez's Ruby Feeds</title> | |
</head> | |
<body> | |
<outline title="ruby" text="ruby"> | |
<outline text="Aaron Patterson" title="Aaron Patterson" | |
type="rss" xmlUrl="http://tenderlovemaking.com/feed/" htmlUrl="http://tenderlovemaking.com"/> | |
<outline text="Aaron Quint" title="Aaron Quint" type="rss" |
# | |
# Before running: | |
# $ gem install twitter -v 4.8.1 | |
# | |
# Register a Twitter application to get auth credentials: | |
# https://dev.twitter.com/apps | |
# | |
# To run: | |
# $ ruby counter.rb upworthy.com | |
# |
# | |
# Before running: | |
# $ gem install twitter | |
# | |
# Register a Twitter application to get auth credentials: | |
# https://dev.twitter.com/apps | |
# | |
# To run: | |
# $ ruby counter.rb upworthy.com 500 | |
# |
NOTE This gist is forked from one compiled by Laurent Bossanti. I've added links to the original tweets.
It's a compilation of all the tweets made about the BritRuby situation before it was announced that the conference was cancelled. In other words, these are the tweets that led to the cancellation.
It may be the case that some tweets were deleted after the fact (one example listed here can't be found anymore), but there's no way of knowing unless someone took screenshots.
Nice speaker lineup for @BritRuby. Except for the 100% white guys part. I don't think adding diversity at the end works. You have to start with it as one of your goals. Who wants to be the token female? Not meaning to single out @BritRuby, just saying I'm disappointed. I know it's a systemic/cultural problem.
require 'nokogiri' | |
def first_link_extractor(html) | |
doc = Nokogiri::HTML(html) | |
doc.css('a')[0]['href'] | |
end | |
puts first_link_extractor("<a href='http://www.original.com'>ORGINAL</a>: Some words here.") |