Generates the README for git-run.
$ git clone git@gist.github.com:cd37a464bded117bfce0.git git-run_guide
$ git clone git@gist.github.com:c4bef77ec0ebf1f2639f.git git-run_guide/examples
$ cd git-run_guide/examples
$ guidedown ../guide.md
iPhone 5 still looking good. Source: NölSch.de | |
I own a 2012 iPhone 5 and today I decided that I won’t be buying a new iPhone. I do like the new iPhones, it’s just that I don’t see the added value for me to buy a new one, and I think I’m not the only one in this situation. My “old” iPhone 5 holds up perfectly to my current needs. And I say “current needs” because “Back in the day” I would basically try out all the apps and play all the games. But Today, more than 80% of those apps are long gone. Either I lost interest or they made a really good mobile website that does the job just fine. Today, next to the native apps like Safari and mail, I only regularly use Reddit, Youtube and the mirror apps for Sketch and Photoshop. I have other apps installed, but those are just there when I need them. "You never know when you might need that QR scanner"? Wrong! You never need a QR scanner, so you can safely delete it. | |
That said, I don’t really need the newest A10 processor or a double photo lens in my daily use. It woul |
Where's my jetpack? |
begin | |
require 'bundler/inline' | |
rescue LoadError => e | |
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler' | |
raise e | |
end | |
gemfile(true) do | |
source 'https://rubygems.org' | |
gem 'rails', '4.2.6' |
#!/usr/bin/env ruby | |
URL_REGEX = /\b(([\w-]+:\/\/?|www[.])[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/)))/ | |
contents = ARGF.read | |
matches = [] | |
contents.scan(URL_REGEX) do |match| | |
matches << match.first | |
end |
body{ | |
font-family: 'SF UI Display', 'Myriad Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
color: #333333; | |
font-size: 18px; | |
line-height: 26px; | |
-webkit-font-smoothing: antialiased; | |
text-rendering: optimizeLegibility; | |
} |
puts "♫ If I could turn, turn back the hands of time ♫" | |
puts "♫ Then my darlin' you'd still be mine ♫" | |
class Time | |
def self.now | |
Time.new(2015, 1, 23) | |
end | |
end |
# Option 1 | |
info = if publication | |
"Title: #{ publication.title } (ID: #{ publication.id })" | |
else | |
'N/A' | |
end | |
# Option 2 | |
info = case publication | |
when Publication then puts "Title: #{ publication.title } (ID: #{ publication.id })" |
<html> | |
<head> | |
<style> | |
a{ | |
display: block; | |
margin: 2em 1em; | |
} | |
</style> | |
</head> | |
<body> |