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
/** | |
* This is how we can start OldDiscoverActivity | |
* This is possible because OldDiscoverActivity has an Intent-Filter in the AndroidManifest.XML | |
*/ | |
Intent i = new Intent(); | |
//i.setClassName("tv.ouya.console", "tv.ouya.console.launcher.store.adapter.DiscoverActivity"); | |
i.setClassName("tv.ouya.console", "tv.ouya.console.launcher.store.OldDiscoverActivity"); | |
try { | |
startActivity(i); | |
} catch (Exception e) { |
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 nl.frankkie.web; | |
import java.io.File; | |
import java.util.Map; | |
import fi.iki.elonen.NanoHTTPD; | |
/** | |
* Created by FrankkieNL on 11-8-13. | |
*/ |
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 nl.frankkie.randomapp; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.content.res.Resources; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapFactory; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Paint; |
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.net.URI; | |
import org.apache.http.client.methods.HttpEntityEnclosingRequestBase; | |
/** | |
* http://stackoverflow.com/questions/3773338/httpdelete-with-body | |
* @author fbouwens | |
*/ | |
class HttpDeleteWithBody extends HttpEntityEnclosingRequestBase { | |
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
De Bet: | |
if (@W is LVL8 in Ingress op 2 juli 2014, 19:23, of eerder){ | |
@F.geeft(@W, "6 beugelflessen"); | |
} else { | |
@W.geeft(@F, "6 beugelflessen"); | |
} |
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
//Recursive | |
function A(n){ | |
if (n <=0){return 0;} | |
return 1 - (1 - A( n - 1)) / 2; | |
} | |
//Not recursive, using a loop | |
function B(n){ | |
if (n<=0){return 0;} | |
//TODO insert smart code here |
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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<string name="app_name">Brony MLP Überraschungspony Ratgeber</string> | |
<string name="main_welcome">"My Little Pony G4 Überraschungspony Ratgeber | |
Erstellt mit Daten der MLPMerch.com Überraschungspony-Datenbank. | |
Besuchen Sie MLPMerch.com für die Online Überraschungspony-Datenbank und MLP Merchandise Nachrichten!"</string> | |
<string name="action_settings">Einstellungen</string> | |
<string name="tut1">"Wussten Sie, das es gar keine große Überraschung sein muss, welches Pony sich in einer MLP-Überraschungspony Tüte versteckt? | |
Der Inhalt einer Überraschungspony Tüte lässt sich einfach feststellen ohne sie zu öffnen. |
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
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../paper-item/paper-item.html"> | |
<link rel="import" href="../paper-checkbox/paper-checkbox.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; |
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
//Java Exceptions Testing. Finding out how re-throwing affects the stacktrace. | |
//Tested in: http://www.compilejava.net/ | |
public class HelloWorld | |
{ | |
public static void main(String[] args) throws Exception | |
{ | |
testThrowUp(); | |
} | |
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
/* | |
The Spotify API call, 'top-tracks' requires a ISO 3166-1 alpha-2 country code | |
//https://developer.spotify.com/web-api/get-artists-top-tracks/ | |
//https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 | |
//https://www.spotify.com/nl/legal/end-user-agreement/plain/#s19 | |
//EU is not included in this list, as it generates this error: | |
{ | |
"error": { | |
"status": 400, | |
"message": "Invalid country code" |
OlderNewer