Skip to content

Instantly share code, notes, and snippets.

View capoferro's full-sized avatar

Josiah Kiehl capoferro

View GitHub Profile
OK, entering \batchmode~/Projects/Mashbot/mashbot/doc/requirements $ latex Requirements.tex
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
%&-line parsing enabled.
entering extended mode
(./Requirements.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, loaded.
(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
Given /^there is a "([^\"]*)" with the following:$/ do |model, table|
model.classify.constantize.create!(table.rows_hash)
end
</head>
<body onload="initialize()" onunload="GUnload()">
<%= fb_connect_javascript_tag %>
<%= init_fb_connect "XFBML" %>
<ImageView android:id="@+id/mainImage"
android:src="@drawable/mage"
android:layout_width="200px"
android:layout_height="200px"
android:background="#fff" />
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.bluepojo.android.squire;
public final class R {
@capoferro
capoferro / context-aware-terminal-from-nautilus
Created May 1, 2010 03:31
Allow context-aware terminal to open from Nautilus
echo "gnome-terminal" > ~/.gnome2/nautilus-scripts/gnome-terminal; chmod +x ~/.gnome2/nautilus-scripts/gnome-terminal
@capoferro
capoferro / IP Retriever
Created July 8, 2010 02:04
Retrieve IP address via sh
ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'
Test!
This is an addition
omng
og
BALEETED
kgnb
module InstanceMethods
def can_moderate_community?
self.community_admin? or self.community_moderator?
end
end
@capoferro
capoferro / response.rb
Created November 11, 2010 16:01
response.rb
class Response
attr_reader :errors
attr_accessor :data
def initialize data=[]
@data = []
@data << data
@data.flatten!
@errors = ActiveModel::Errors.new(self)