Skip to content

Instantly share code, notes, and snippets.

View madlymad's full-sized avatar
👻
Coding stuff

Mando Stamelaki madlymad

👻
Coding stuff
View GitHub Profile
@justinamberson
justinamberson / StackOverflowFanatic.py
Created August 13, 2013 01:09
StackOverflow Fanatic Golden Badge Helper Awarded for 100 days of consecutive visits. Defaults to opening the site every 12 hours (43200 seconds)
#StackOverflow Fanatic Badge Helper
#Justin Amberson 2013 : http://justin.amberson.net
#Fanatic Golden badge - 100 consecutive days on StackOverflow
import webbrowser
import time
def openURL(url):
webbrowser.open(url)
@jpeddicord
jpeddicord / build.gradle
Last active April 14, 2023 20:31
Release APK builder that asks for your key passwords interactively, so you don't have to store them in your build script or VCS. For use with the Gradle build system. CC0 license.
// additional required configuration to hook into the build script
android {
signingConfigs {
release
}
buildTypes {
release {
signingConfig signingConfigs.release
}
@bichotll
bichotll / load_disqus_comments_android.java
Last active April 25, 2019 15:19
Load disqus comments with a htmlview in Android
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_comments);
String htmlComments = getHtmlComment("yourId", "yourShortName");
webDisqus = (WebView) findViewById(R.id.disqus);
// set up disqus
WebSettings webSettings2 = webDisqus.getSettings();
@kmansoft
kmansoft / find_missing_translations.py
Created July 3, 2012 09:22
A simple script to find missing translations in an Android project
#!/usr/bin/python
'''
This script finds missing string translations in Android applicaitons.
Author: Kostya Vasilyev. License: Creative Commons Attribution.
The output format is, I believe, more suitable to working with external
translators than the output of Lint from the Android SDK.
@mosabua
mosabua / AndroidInsecureKeepAliveHttpsTransportSE
Created April 7, 2011 15:51
AndroidInsecureHttpsServiceConnectionSE implements the service connection that will allow any SSL cert on Android 2.1 (api level 7) and below, this disables SSL for old platform version, be careful
import org.ksoap2.transport.HttpsTransportSE;
import org.ksoap2.transport.ServiceConnection;
import java.io.IOException;
public class AndroidInsecureKeepAliveHttpsTransportSE extends HttpsTransportSE {
private AndroidInsecureHttpsServiceConnectionSE conn = null;
private final String host;
private final int port;