Skip to content

Instantly share code, notes, and snippets.

Ty Smith tyvsmith

View GitHub Profile
@tyvsmith
tyvsmith / Setting.rb
Created Jun 5, 2011
Dynamic changes to schedule.rb for Whenever gem
View Setting.rb
class Setting < ActiveRecord::Base
validates_uniqueness_of :var
validates_presence_of :value
after_save :send_cron_later
#Setting.for(:display).set=(value)
def self.for(var)
find_or_create_by_var(var)
@tyvsmith
tyvsmith / AndroidManifest.xml
Created May 24, 2011
RESTclient-Android Blog entries
View AndroidManifest.xml
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".ui.Main" android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<receiver android:name=".receiver.BootReceiver">
You can’t perform that action at this time.