Skip to content

Instantly share code, notes, and snippets.

View EarlOfEgo's full-sized avatar
🦧

Stephan Hagios EarlOfEgo

🦧
View GitHub Profile
@EarlOfEgo
EarlOfEgo / gist:2881961
Created June 6, 2012 13:48
pianobar output
(i) Login... { "username": "android", "password": "********", "deviceModel": "android-generic", "version": "5", "includeUrls": true }
{"stat":"ok","result":{"syncTime":"387e9c469dd8a7ef416b0b5aef6f9583","deviceProperties":{"videoAdRefreshInterval":900,"videoAdUniqueInterval":0,"adRefreshInterval":5,"videoAdStartInterval":180},"partnerAuthToken":"VAcAdZD2ylc5+bDglsZ400315HA63B1nFA","partnerId":"42","stationSkipUnit":"hour","urls":{"autoComplete":"http://autocomplete.pandora.com/search"},"stationSkipLimit":6}}
{ "loginType": "user", "username": "********@gmail.com", "password": "********", "partnerAuthToken": "************", "syncTime": 1338990170 }
{"stat":"ok","result":{"stationCreationAdUrl":"http://ad.doubleclick.net/adx/pand.android/prod.createstation;ag=27;gnd=1;zip=99950;genre=0;model=;app=;OS=;dma=747;clean=0;logon=__LOGON__;tile=1;msa=;st=AK;co=02110;et=2;mc=0;aa=0;hisp=0;hhi=0;u=l*7p543pu2ncw7k!ag*27!gnd*1!zip*99950!dma*747!clean*0!logon*__LOGON__!st*AK!co*02110!et*2!mc*0!aa*0!hisp*0!hhi*0!genre*0;sz=
set(INCLUDE_DIR include)
set(SOURCE_DIR src)
set(LIBRARY_DIR lib)
set(RESOURCE_DIR res)
set(USERINTERFACE_DIR uis)
set(TARGET_DIR bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/${TARGET_DIR} )
set(SKYPE_API skypeapi)
#include <gtk/gtk.h>
int main( int argc,
char *argv[] )
{
GtkWidget *window;
gtk_init (&argc, &argv);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
@EarlOfEgo
EarlOfEgo / gist:1521303
Created December 26, 2011 14:41
Android get resources string
Resources res = getResources();
res.getString(R.string.nameOfString);
@EarlOfEgo
EarlOfEgo / gist:1478117
Created December 14, 2011 19:38
custom simplecursoradapter
private class MyCursorAdapter extends SimpleCursorAdapter {
public MyCursorAdapter(Context context, int layout, Cursor c,String[] from, int[] to) {
super(context, layout, c, from, to);
}
@Override
public View newView(Context context, Cursor cursor, ViewGroup parent) {
View view = super.newView(context, cursor, parent);
@EarlOfEgo
EarlOfEgo / main.cpp
Created November 5, 2011 10:56
The main of a UnitTest++ test example
#include "UnitTest++.h"
int main()
{
return UnitTest::RunAllTests();
}
@EarlOfEgo
EarlOfEgo / gist:1322316
Created October 28, 2011 13:53
test cpp
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World!";
return 0;
}