curl -sS https://getcomposer.org/installer | php
php composer.phar install
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.awt.*; | |
import java.awt.event.*; | |
import java.util.*; | |
import javax.swing.*; | |
class sms2graph extends JFrame { | |
private static int WINDOW_X = 640; | |
private static int WINDOW_Y = 480; | |
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
/* | |
* Copyright 2014 David Herges <[email protected]> | |
* Licensed under MIT (http://opensource.org/licenses/MIT) | |
*/ | |
define('M_NEGATIVE_PI_2', ((double) 0.0 - M_PI_2)); | |
define('M_NEGATIVE_PI', ((double) 0.0 - M_PI)); | |
define('M_2PI', ((double) 2.0 * M_PI)); | |
/** |
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
/* | |
* Copyright 2014 David Herges <[email protected]> | |
* Licensed under MIT (http://opensource.org/licenses/MIT) | |
*/ | |
package org.apache.sling.models.extensions.injector; | |
import org.apache.felix.scr.annotations.Component; | |
import org.apache.felix.scr.annotations.Property; | |
import org.apache.felix.scr.annotations.Service; |
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 android.content.Context; | |
import android.database.Cursor; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.CursorAdapter; | |
import nl.qbusict.cupboard.CursorCompartment; | |
import static nl.qbusict.cupboard.CupboardFactory.cupboard; |
https://github.com/jknack/handlebars.java https://sling.apache.org/
Maven dependencies:
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
.DS_Store | |
node_modules/ | |
dist/ |
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 TwitterApiTest { | |
@Rule | |
public MockWebServerPlus server = new MockWebServerPlus(); | |
private final OkHttpClient okHttpClient = new OkHttpClient.Builder().build(); | |
@Test | |
public void homeTimeline() throws IOException, InterruptedException { | |
// replay scripted http response from yaml file |
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
[ | |
{ | |
"coordinates": null, | |
"created_at": "Tue Aug 28 21:16:23 +0000 2012", | |
"favorited": false, | |
"id_str": "240558470661799936", | |
"text": "just another test", | |
"id": 240558470661799936, | |
"user": { | |
"name": "OAuth Dancer", |
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
/** | |
* Retrofit interface for Twitter REST API | |
*/ | |
public interface TwitterApi { | |
@GET("statuses/home_timeline.json") | |
Call<ResponseBody> homeTimeline(); | |
@GET("statuses/show/:id") | |
Call<ResponseBody> show(@Path("id") String id); |
OlderNewer