I hereby claim:
- I am robmiller on github.
- I am robmil (https://keybase.io/robmil) on keybase.
- I have a public key whose fingerprint is 56A1 8D07 7155 50C6 2AAF 00D1 6524 6485 80D1 168E
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
def run | |
ARGF.each_slice($options[:columns]) do |values| | |
puts values.map(&:chomp).join($options[:separator]) | |
end | |
end | |
require "optparse" |
require "zlib" | |
class Png | |
class ChunkError < StandardError; end | |
attr_reader :filename, :file, :signature, :chunks | |
SIGNATURE = [0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a].pack("C8") | |
def initialize(filename) |
I hereby claim:
To claim this, I am signing this object:
tell application "Skim" | |
repeat with n from (count of documents) to 1 by -1 | |
set doc to document n | |
-- change "book-screen.pdf" to the filename of the PDF | |
-- that you want to refresh | |
if name of doc is "book-screen.pdf" then | |
revert doc | |
end if | |
end repeat | |
end tell |
require "terminal-notifier-guard" | |
guard :shell do | |
watch(/src\/(.*\/)?(.*)\.rs$/) do |path, folder, file| | |
p "Path: #{path}" | |
p "Folder: #{folder}" | |
p "File: #{file}" | |
binary_name = File.read("Cargo.toml")[/name = "(.*)"/, 1] |
$ gem install bitly | |
$ export BITLY_USERNAME="your bit.ly username" BITLY_API_KEY="your bit.ly API key" | |
$ ruby -rcsv -rbitly -e 'b = Bitly.new(ENV["BITLY_USERNAME"], ENV["BITLY_API_KEY"]); CSV.filter { |r| r.each { |f| f.replace b.shorten(f).short_url if f =~ /^https?:/ } }' urls.csv > urls.shortened.csv |
for user in $(cat /etc/passwd | cut -d: -f1); do; read "DELETE?Delete $user? "; [[ "$DELETE" =~ ^[Yy]$ ]] && echo "Removing $user"; done |
extern crate plist; | |
use std::process::Command; | |
use std::io::{Read,Seek,SeekFrom,Cursor}; | |
use plist::StreamingParser; | |
fn main() { | |
println!("Profiling system."); | |
let profiler = Command::new("system_profiler") |
I've only spent half a day with it, but my first impressions are thus. It's partly about Android, since this is my first Android device, and partly about the Nexus itself.
It's small! It's comfortable to hold in one hand, and the keyboard is a great size — where touchscreen phones are too small for proper two-thumbed typing, and where it can sometimes (with my tiny hands at least) be occasionally difficult to reach the middle of the keyboard on iPad, I've found the keyboard on the Nexus to be a great size. Swype adds some icing to the already-nice cake.
Build quality is excellent; it has a satisfying heft without being heavy, the leathery-plastic back is nice and grippy, and it just generally feels solid and well-constructed — in absolute terms, not just for its price point.
The screen is lovely; side-by-side with a retina iPad it's perhaps slightly inferior but as general usage goes it's an absolute pleasure. When you consider the cost, it's absolutely phenomenal.
ERROR: Error installing consular-iterm: | |
ERROR: Failed to build gem native extension. | |
/Users/rob/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb | |
extconf.rb:44: Use RbConfig instead of obsolete and deprecated Config. | |
create /Users/rob/.rvm/gems/ruby-1.9.3-p194/gems/rb-appscript-0.6.1/src/osx_ruby.h ... | |
create /Users/rob/.rvm/gems/ruby-1.9.3-p194/gems/rb-appscript-0.6.1/src/osx_intern.h ... | |
creating Makefile | |
make |