I hereby claim:
- I am boyvanamstel on github.
- I am boyvanamstel (https://keybase.io/boyvanamstel) on keybase.
- I have a public key whose fingerprint is 7194 3A0A 33CC 7063 2CDD FCFD 5069 041D 0970 CA9E
To claim this, I am signing this object:
# Remove #define DEBUG 0 | |
awk '!/#define DEBUG 0/' "$DERIVED_FILES_DIR"/receipt.h > "$DERIVED_FILES_DIR"/receipt.temp && mv "$DERIVED_FILES_DIR"/receipt.temp "$DERIVED_FILES_DIR"/receipt.h |
I hereby claim:
To claim this, I am signing this object:
# http://blog.hasmanythrough.com/2006/4/20/many-to-many-dance-off | |
# Join Table: Simple Associations | |
# Table: | |
create_table "dancers_movies", :id => false do |t| | |
t.column "dancer_id", :integer, :null => false | |
t.column "movie_id", :integer, :null => false | |
end |
<!doctype html> | |
<!--[if lt IE 7 ]> <html class="no-js ie6" lang="en"> <![endif]--> | |
<!--[if IE 7 ]> <html class="no-js ie7" lang="en"> <![endif]--> | |
<!--[if IE 8 ]> <html class="no-js ie8" lang="en"> <![endif]--> | |
<!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js" lang="en"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title></title> |
<?xml version="1.0" encoding="UTF-8" ?> | |
<rss version="2.0"> | |
<channel> | |
<title>RSS Title</title> | |
<description>This is an example of an RSS feed</description> | |
<link>http://www.someexamplerssdomain.com/main.html</link> | |
<lastBuildDate>Mon, 06 Sep 2010 00:01:00 +0000 </lastBuildDate> | |
<pubDate>Mon, 06 Sep 2009 16:45:00 +0000 </pubDate> | |
<item> |
<?php | |
$my_query = new WP_Query('post_status=future&order=DESC&showposts=5'); | |
if ($my_query->have_posts()) { | |
while ($my_query->have_posts()) : $my_query->the_post(); ?> | |
<?php the_date(); ?> - <?php the_title(); ?> | |
<?php endwhile; | |
} | |
// Source: http://www.studionashvegas.com/tutorial/displaying-future-posts-in-wordpress/ | |
?> |
find . -name '*.html.erb' | xargs ruby -e 'ARGV.each { |i| puts "html2haml -r #{i} #{i.sub(/erb$/,"haml")}"}' | bash | |
find . -name "*.html.erb" -exec rm -rf {} \; |
class Poi < ActiveRecord::Migration | |
def self.up | |
create_table :pois, :id => :poi_id do |t| | |
t.column :longitude, :decimal, :precision => 10, :scale => 7 | |
t.column :latitude, :decimal, :precision => 10, :scale => 7 | |
end | |
end | |
def self.down | |
drop_table :pois |
# Release | |
keytool -exportcert -alias [alias] -keystore [keystore] | openssl sha1 -binary | openssl enc -a -e | |
# Debug | |
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl enc -a -e | |
Password: android |
# Model User: | |
has_many :questions | |
has_many :comments | |
# Questions to which the user is an expert a.k.a. 'questions to me' | |
has_many :experts, :dependent => :destroy | |
has_many :questionstome, :through => :experts, :source => :question | |
# This allows you to do things like this: | |
# u = User.first |