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
// | |
// tsh - A tiny shell program with job control | |
// | |
// <Put your name and login ID here> | |
// | |
using namespace std; | |
#include <stdio.h> | |
#include <stdlib.h> |
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 | |
public void onScroll(AbsListView view, int firstVisibleItem, | |
int visibleItemCount, int totalItemCount) { | |
//leave this empty | |
} | |
@Override | |
public void onScrollStateChanged(AbsListView listView, int scrollState) { | |
if (scrollState == SCROLL_STATE_IDLE) { | |
if (listView.getLastVisiblePosition() >= listView.getCount() - 1 - threshold) { |
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.example.app; | |
import android.app.Activity; | |
import android.content.BroadcastReceiver; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.IntentFilter; | |
import android.content.SharedPreferences; | |
import android.net.ConnectivityManager; | |
import android.net.NetworkInfo; |
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
private void findMaid(String httpRequestExtension) { | |
PassRestClient.get(httpRequestExtension, null, | |
new JsonHttpResponseHandler() { | |
@Override | |
public void onSuccess(JSONObject response) { | |
new ParseMaid().execute(response); | |
} | |
}); | |
} |
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
#!/bin/bash | |
PREFIX=$1 | |
START=$2 | |
END=$3 | |
for i in $(eval echo {$START..$END}) | |
do | |
echo "deleting $PREFIX$i" | |
qdel $PREFIX$i |
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
/My\ Documents/**/build/ | |
/**/build/ | |
build/ | |
/**/build | |
/My\ Documents/**/build |
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
<%= form_for @photo, :html => { :multipart => true } do |photo| %> | |
<div class="field"> | |
<%= photo.label :title %> | |
<%= photo.text_field :title %> | |
</div> | |
<div class="field"> | |
<%= photo.file_field :image %> | |
</div> | |
<%= photo.fields_for :tags do |tag| %> |
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
public void bindTo(FSStore item, Picasso picasso) { | |
targetImage = item.getImage(); | |
picasso.setLoggingEnabled(true); | |
imageRequest = picasso.load(targetImage.getUrl()); | |
distance.setText(String.valueOf(item.getDistance()) + "miles away"); | |
imageAspectRatio = 1f * targetImage.getWidth() / targetImage.getHeight(); |
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.teststaggeredgrid; | |
import android.content.Context; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import com.squareup.picasso.Picasso; | |
import java.util.Collections; | |
import java.util.List; |
OlderNewer