This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mark-Wagners-MacBook-Pro:~ mwagner72$ curl -L https://github.com/atmos/cinderella/raw/master/bootstrap.sh -o - | sh | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
101 1424 101 1424 0 0 1120 0 0:00:01 0:00:01 --:--:-- 1120 | |
Ensuring we have the latest version of cinderella installed | |
A first time install takes about 45 minutes on a modern machine | |
You need to upgrade rubygems to 1.7.2 | |
Cinderella installed successfully | |
sh: line 30: cinderella: command not found | |
sh: line 30: cinderella: command not found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./models/visit.rb | |
class Visit < ActiveRecord::Base | |
attr_accessible :ip_address, :country, :city, :latitude, :longitude | |
belongs_to :link | |
geocoded_by :ip_address | |
after_validation :geocode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Wed, 28 Dec 2011 18:09:04 -0600] INFO: script[installing basic gems] sh("bash" "/var/folders/t6/yzcwhgpd439b1k8zgr1bxzq40000gn/T/chef-script20111228-30437-174plnv-0") | |
[Wed, 28 Dec 2011 18:09:10 -0600] INFO: script[installing basic gems] ran successfully | |
[Wed, 28 Dec 2011 18:09:10 -0600] INFO: Processing homebrew_db[redis] action install (homebrew::dbs line 11) | |
[Wed, 28 Dec 2011 18:09:10 -0600] ERROR: homebrew_db[redis] (homebrew::dbs line 11) has had an error | |
[Wed, 28 Dec 2011 18:09:10 -0600] ERROR: homebrew_db[redis] (/Users/mark/.cinderella/cookbooks/homebrew/recipes/dbs.rb:11:in `from_file') had an error: | |
homebrew_db[redis] (homebrew::dbs line 11) had an error: Chef::Exceptions::Package: No version specified, and no candidate version available for redis | |
/Library/Ruby/Gems/1.8/gems/chef-0.10.8/bin/../lib/chef/provider/package.rb:51:in `action_install' | |
/Library/Ruby/Gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource.rb:440:in `send' | |
/Library/Ruby/Gems/1.8/gems/chef-0.10.8/bin/../lib/chef/resource.rb:440:in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
initialize: () -> | |
@._meta_data = {} | |
@._dirty = false | |
@.name = 'Generic Collection' | |
putMeta: (property, value) => | |
@._meta_data[property] = value | |
getMeta: (property) => | |
return @._meta_data[property] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Api::V1::BaseApiController < ApplicationController | |
include Api::V1::BaseApiHelper | |
respond_to :json | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
protected void onPostExecute(ArrayList<Tip> result) { | |
TipsAdapter adapter = new TipsAdapter(mContext, result); | |
tips_list.setAdapter(adapter); | |
tips_list.setOnItemClickListener(new OnItemClickListener() { | |
@Override | |
public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) { | |
Tip clicked_tip = (Tip) tips_list.getItemAtPosition(position); | |
Intent intent = new Intent(getApplicationContext(), MessageListActivity.class ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.takeit2eleven.towniemeeting.android.fragments; | |
import android.os.Bundle; | |
import android.support.v4.app.Fragment; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.Button; | |
import com.actionbarsherlock.app.SherlockFragment; | |
import com.takeit2eleven.towniemeeting.android.R; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.takeit2eleven.towniemeeting.android.fragments; | |
import android.os.Bundle; | |
import android.support.v4.app.Fragment; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.Button; | |
import com.actionbarsherlock.app.SherlockFragment; | |
import com.takeit2eleven.towniemeeting.android.R; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created with IntelliJ IDEA. | |
* | |
* @author Mark Wagner | |
* Date: 2/27/13 | |
* Time: 2:47 PM | |
*/ | |
public class GoogleMapFragment extends Fragment { | |
private SupportMapFragment mMapFragment; | |
private GoogleMap mMap; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created with IntelliJ IDEA. | |
* | |
* @author Mark Wagner | |
* Date: 2/28/13 | |
* Time: 10:08 AM | |
*/ | |
public class MapsFragment extends SherlockFragment { | |
Button mHotelMapButton; |
OlderNewer