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
[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
# Prereq: Current branch is the feature branch and all pending changes are committed locally | |
# First pull down the changes from master | |
$ git checkout master | |
$ git pull | |
# Then, go back to the feature branch and merge in master | |
$ git checkout my-feature | |
$ git merge master |
I hereby claim:
To claim this, I am signing this object:
# | |
# 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 | |
# |
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.") |
# | |
# 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 | |
# |