Trying to regex in ruby using this:
/UTC\s.\d{4}/
This picks up both
UTC +0000 UTC -0800
The codebase I'm working with uses:
/UTC\s\-?\d{4}/
sudo ln -s /Applications/Day\ One.app/Contents/MacOS/dayone /usr/bin |
git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short --since="`date -v-1d '+%m/%d/%y'`" | |
Prettier: | |
git log --pretty=format:"%ad | [`pwd`]%n- %s%d" --graph --date=short --since="`date -v-1d '+%m/%d/%y'`" | |
Day One: | |
git log --pretty=format:"%ad | [`pwd`]%n- %s%d" --graph --date=short --since="`date -v-1d '+%m/%d/%y'`" | dayone new |
set makeprg=/usr/local/gnat/bin/gnatmake |
-- Homework 3a: The "Riffle Shuffle" | |
-- Max Smith and Kristian Freeman | |
-- TA: Caleb Nelson | |
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; | |
with Ada.Text_IO; use Ada.Text_IO; | |
PROCEDURE hw3a is | |
maxDeck : CONSTANT positive := 52; -- Card decks don't get any larger... | |
SUBTYPE deckRange is positive RANGE 1..maxDeck; |
/* create tables to store itunes music library data for quick access | |
- rkumar 2010 July | |
*/ | |
drop table tracks; | |
create table tracks ( | |
album_artist VARCHAR(50), | |
album_rating_computed INTEGER, | |
album_rating VARCHAR(50), | |
album VARCHAR(50), | |
all_items VARCHAR(50), |
Trying to regex in ruby using this:
/UTC\s.\d{4}/
This picks up both
UTC +0000 UTC -0800
The codebase I'm working with uses:
/UTC\s\-?\d{4}/
# Disable wifi | |
rm -rf /Volumes/Kindle/system/.assets | |
echo "Disable WiFi on your Kindle - it will download new ads if you don't." | |
echo "If you want a more thorough (permanent) method of removing ads, see Yifan Lu's work." |
html { | |
zoom: 1.5; | |
} |
The Apple TV has some nice pictures for screensavers, but there's only about ~20 on average for each screensaver set. Luckily, with a jailbroken Apple TV, we can replace them pretty easily.
The screensaver images are located at /System/Library/PrivateFrameworks/AppleTV.framework/Default[Album]Photos
. I like SFTP'ing in with Cyberduck.
There are multiple screensaver sets — if you have a set you like the least (maybe "FlowerPhotos"?), replace those.
The files are in a pretty basic format:
01.jpg
02.jpg
#!/usr/bin/ruby | |
# Fix for Slogger and Ruby 1.9 | |
# | |
# require 'ftools' | |
# | |
require 'fileutils' | |
curloc = File.expand_path(File.dirname(__FILE__)) |