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
# BuildConfig.java を公開しないようにするため | |
/build | |
# gradle.properties を公開しないようにするため | |
gradle.properties |
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
require 'parse-ruby-client' | |
Parse.init :application_id => ENV['PARSE_APP_ID'], | |
:api_key => ENV['PARSE_API_KEY'] | |
def push_notification(url) # must String | |
data = { :alert => "Push from ruby sample!" + url.to_s, :url => url.to_s } | |
push = Parse::Push.new(data) | |
push.where = { :deviceType => "android" } | |
p push.save |
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 class AsyncRssClient { | |
private static final String TAG = AsyncRssClient.class.getSimpleName(); | |
private AsyncRssClient() {} | |
private static final Handler HANDLER = new Handler(Looper.getMainLooper()); | |
private static AsyncHttpClient sClient = new AsyncHttpClient(); | |
public static boolean read(final Context context, List<String> urls, final RssClientFinishListener listener) { |
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 class ConfigureActivity extends Activity { | |
private static final String TAG = ConfigureActivity.class.getSimpleName(); | |
private int mAppWidgetId; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_configure); |
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 jp.shts.android.nogirepo; | |
public class AppUser extends Person { | |
AppUser(String id, String url, String name) { | |
super(Type.APP_USER, id, url, name); | |
} | |
public static List<AppUser> findByIds(List<String> idList) { | |
// ParseUser |
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
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.jsoup.Jsoup; | |
import org.jsoup.nodes.Document; | |
import org.jsoup.nodes.Element; | |
import org.jsoup.select.Elements; | |
public class CommentParser { |
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 jp.shts.android.nogi.api.calrenderparser; | |
import android.content.Context; | |
import com.loopj.android.http.AsyncHttpClient; | |
public class AsyncCalenderApiClient { | |
/** | |
* |
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
<meta-data | |
android:name="io.fabric.ApiKey" | |
android:value="${fabricApiKey}" /> | |
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
post '/user', provides: :json do | |
params = JSON.parse request.body.read | |
puts params['name'] | |
puts params['age'] | |
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
public class Download { | |
public Observable<File> download(List<String> target) { | |
return Observable.from(target) | |
.map(new Func1<String, okhttp3.Request>() { | |
@Override | |
public okhttp3.Request call(String url) { | |
return new Request.Builder().url(url).build(); | |
} | |
}) |
OlderNewer