Skip to content

Instantly share code, notes, and snippets.

@nk9
nk9 / largestFiles.py
Last active November 7, 2024 10:22
Python script to find the largest files in a git repository.
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Python script to find the largest files in a git repository.
# The general method is based on the script in this blog post:
# http://stubbisms.wordpress.com/2009/07/10/git-script-to-show-largest-pack-objects-and-trim-your-waist-line/
#
# The above script worked for me, but was very slow on my 11GB repository. This version has a bunch
# of changes to speed things up to a more reasonable time. It takes less than a minute on repos with 250K objects.
#
@simsam7
simsam7 / Compiling-release-APK-for-Android-using-Cordova
Created March 12, 2014 19:11
Compiling release APK for Android using Cordova
Had some 'fun' doing this the first time around, so posting it here for myself & hopefully will help others too :-)
Not going into all the details, you should have Cordova, Android SDK, etc installed, your app created & tested etc, this is for the point where you want to submit your glorious new shiny app to the Google Play Store and you suddenly realize that you're running into things like, how to get a release APK created using Cordova.
1. Create a key if you don't have one, e.g. http://developer.android.com/tools/publishing/app-signing.html#cert
2. Alter your ...\platforms\android\AndroidManifest.xml, set debuggable to false:
android:debuggable="false"
3. Create file 'custom_rules.xml' under platforms\android, put this in there:
@chaschev
chaschev / GoogleApp.java
Created November 15, 2013 08:58
JavaFX Google Maps demo
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.TextField;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Pane;
import javafx.scene.web.WebEngine;
import javafx.scene.web.WebEvent;
@jewelsea
jewelsea / WebViewCaptureDemo.java
Created May 23, 2013 05:38
Captures web pages to image files using JavaFX WebView and ImageIO
import javafx.animation.PauseTransition;
import javafx.application.Application;
import javafx.beans.value.*;
import javafx.embed.swing.SwingFXUtils;
import javafx.event.*;
import javafx.geometry.Bounds;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.image.*;
import javafx.scene.layout.*;