Skip to content

Instantly share code, notes, and snippets.

View px-amaac's full-sized avatar

Aaron McIntyre px-amaac

View GitHub Profile
<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>
.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);
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
@px-amaac
px-amaac / Fragment
Last active December 16, 2015 23:48
@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
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);
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;
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());
}
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 {
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) {
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)