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
<!-- See them all at http://bloki-engine.appspot.com/gallery/designs.html --> | |
<link href="http://bloki-engine.appspot.com/style/button/plain.css" | |
rel="stylesheet" type="text/css" /> | |
<link href="http://bloki-engine.appspot.com/style/getsatisfaction/horizontal_black.css" | |
rel="stylesheet" type="text/css" /> | |
<link href="http://bloki-engine.appspot.com/style/getsatisfaction/horizontal_blue.css" | |
rel="stylesheet" type="text/css" /> |
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.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.net.URI; | |
import java.net.URISyntaxException; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Map; | |
import javax.servlet.ServletException; |
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
DefaultHttpClient httpClient = new DefaultHttpClient(); | |
HttpGet httpGet = new HttpGet("http://ifconfig.me/ip"); | |
HttpResponse httpResponse = httpClient.execute(httpGet); | |
System.out.println(new BufferedReader(new InputStreamReader(httpResponse.getEntity().getContent())).readLine()); |
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
!taken from http://www.cisco.com/en/US/products/ps6366/products_tech_note09186a0080b40901.shtml | |
(Cisco Controller) >show rogue ap summary | |
Rogue on wire Auto-Contain....................... Disabled | |
Rogue using our SSID Auto-Contain................ Disabled | |
Valid client on rogue AP Auto-Contain............ Disabled | |
Rogue AP timeout................................. 1200 |
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.app.Service; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.os.Handler; | |
import android.os.HandlerThread; | |
import android.os.IBinder; | |
import android.os.Looper; | |
import android.os.Message; | |
import android.os.MessageQueue.IdleHandler; | |
import android.os.PowerManager; |
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.Intent; | |
import com.announcify.uberall.droid.util.TextToSpeechHelper; | |
public class TextToSpeechService extends InfiniteWakelockIntentService { | |
private TextToSpeechHelper helper; | |
public TextToSpeechService() { | |
super("Announcify - Text-To-Speech"); |
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
#!/bin/bash | |
if [ -z "$1" ] | |
then | |
exit 1 | |
fi | |
cd "$1" | |
cropImage() { |
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
#!/bin/bash | |
for dir in */; | |
do | |
clear; | |
echo $dir; | |
cd $dir; | |
git status; | |
cd ..; | |
read -p "Press [Enter] key to continue..." |
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
String a = "test"; | |
String b = "test"; | |
System.out.println("a == b? " + (a == b)); // true | |
String c = "tester"; | |
String d = a + "er"; | |
System.out.println("c == d? " + (c == d)); // false |
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.util.HashMap; | |
import java.util.LinkedList; | |
import java.util.List; | |
import java.util.Map; | |
/** | |
* some kind of depth-first and dijkstra mixture. this little code snippet is | |
* able to find a path between "things" - points without any distance or similar | |
* between each other | |
* |