This file contains hidden or 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
<div class="row"> | |
<h4><%= app.name%></h4> | |
<ul class= "inline-list"> | |
<% unless app.android_link.nil? %> | |
<li><a href="<%= app.android_link %>" class="fc-webicon googleplay">Download on Google Play</a></li> | |
<% end %> | |
<% unless app.iphone_link.nil? %> | |
<li><a href="<%= app.iphone_link%>" class="fc-webicon apple">Download on Apps Store</a></li> | |
<% end %> | |
</ul> |
This file contains hidden or 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
.fc-webicon { | |
position: relative; | |
display: inline-block; | |
background-size: 100%; | |
width: 30px; | |
height: 30px; | |
text-indent: -999em; | |
text-align: left; | |
-moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5); | |
-webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5); |
This file contains hidden or 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
xxxxxx@site:/var/www/sandbox/site$ which ruby | |
/usr/local/rvm/rubies/ruby-2.0.0-rc1/bin/ruby | |
xxxxxx@site:/var/www/sandbox/site$ which compass | |
/usr/local/rvm/gems/ruby-2.0.0-rc1@site/bin/compass | |
This file contains hidden or 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 | |
public void onResume() { | |
super.onResume(); | |
MainActivity context = ((MainActivity) getSherlockActivity()); | |
// hide "custom" button when category filter has not been customized | |
int filter = Global.getInstance(context).getCatFilterMask() & context.MASK_ALL; | |
Log.d(Global.LOG_TAG, "onResume() filter: " + filter); | |
if (filter == MASK_FOOD || filter == MASK_SHOP || filter == MASK_LODGE |
This file contains hidden or 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
protected LatLng doInBackground(String... strings) { | |
assert( strings.length == 2 ); | |
String loc = strings[0]; | |
String vid = strings[1]; | |
mVenueId = Integer.parseInt(vid); | |
int count = -1; | |
try { | |
Date start = new Date(); | |
List<Address> la = mGC.getFromLocationName(loc, 1); |
This file contains hidden or 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
case R.id.editdetails: | |
pP = gd.getData(); | |
pP.setStartStamp(); | |
//save data in case this is all the user does. | |
pP.savePass(pP, getSherlockActivity()); | |
Intent in = new Intent(getSherlockActivity(), Details.class);//create Park Car Activity | |
in.putExtra(MainActivity.PASS, pP); //add on the parking pass to the intent to park car. | |
startActivity(in); | |
break; |
This file contains hidden or 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
private void getCurrentLocation() { | |
if (servicesConnected()) { | |
if (pP.getLat() == 0.0 && pP.getLong() == 0.0) { // no latlng set | |
// yet. | |
Location loc = mLocationClient.getLastLocation(); | |
pP.setLat(loc.getLatitude());//<<<<<Error on this line loc null? | |
pP.setLong(loc.getLongitude()); | |
} | |
This file contains hidden or 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
private void startAlarm() { | |
// set vibrate | |
vibrate = (Vibrator) getSystemService(VIBRATOR_SERVICE); | |
long[] vibrate_pattern = { 1000, 200, 200 }; | |
vibrate.vibrate(vibrate_pattern, 0); | |
//check if silent mode is on. | |
if (!pass.getSilent()) { | |
mP = new MediaPlayer(); | |
try { |
This file contains hidden or 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
public class SetDurationFragment extends SherlockDialogFragment implements | |
TimePickerDialog.OnTimeSetListener { | |
public static final String TAG = "timepick"; | |
public interface TimeSetListener { | |
void onFinishTimeDialog(int hour, int minute); | |
} | |
@Override | |
public Dialog onCreateDialog(Bundle savedInstanceState) { |
This file contains hidden or 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
amcintyre@vps12:/var/www/cins465-p5/address_book$ rake db:migrate RAILS_ENV = production --trace | |
** Invoke db:migrate (first_time) | |
** Invoke environment (first_time) | |
** Execute environment | |
** Invoke db:load_config (first_time) | |
** Execute db:load_config | |
** Execute db:migrate | |
** Invoke db:_dump (first_time) | |
** Execute db:_dump | |
** Invoke db:schema:dump (first_time) |