Skip to content

Instantly share code, notes, and snippets.

View yoga1290's full-sized avatar

Youssef yoga1290

View GitHub Profile
@yoga1290
yoga1290 / URLThread.java
Last active December 10, 2015 13:09
URLConnection thread class, where I used to handle URLConnections on Android!
import java.io.*;
import java.net.*;
/**
* Just make your activity "implements URLThread_CallBack"
* ... where URLCallBack(String response) is called after the URLConnection returns a something
* Just new URLThread("http://google.com", this, "").start() will start a new thread ;)
*/
interface URLThread_CallBack
/*
First, you need to force people (or just yourself) to create a Call-Back function;
something that will be called to handle URLConnection responses
*/
interface URLThread_CallBack
{
public void URLCallBack(String response);
}
@yoga1290
yoga1290 / EmberJS.DynamicSegments.css
Last active May 11, 2018 10:44
Dynamic Segments in Ember.JS
body {
font-family: Helvetica, Arial, sans-serif;
}
@yoga1290
yoga1290 / NestedDynamicSegments.css
Last active August 29, 2015 13:57
Ember.JS Nested Dynamic Segments
body {
font-family: Helvetica, Arial, sans-serif;
}
@yoga1290
yoga1290 / promises.css
Last active August 29, 2015 13:57
Ember.JS Route Model + Promises
body {
font-family: Helvetica, Arial, sans-serif;
}
body {
font-family: Helvetica, Arial, sans-serif;
}
@yoga1290
yoga1290 / FixtureAdapter.css
Last active August 29, 2015 13:57
Ember.JS: DS.Store + DS.FixtureAdapter
body {
font-family: Helvetica, Arial, sans-serif;
}
body {
font-family: Helvetica, Arial, sans-serif;
}
body {
font-family: Helvetica, Arial, sans-serif;
}
body {
font-family: Helvetica, Arial, sans-serif;
}