Skip to content

Instantly share code, notes, and snippets.

View luckycreationsindia's full-sized avatar
💻
print('Programming is life 👨‍💻')

Lokesh Jain luckycreationsindia

💻
print('Programming is life 👨‍💻')
View GitHub Profile
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@luckycreationsindia
luckycreationsindia / ClassLoaderActivity.java
Created November 7, 2016 07:35 — forked from marshall/ClassLoaderActivity.java
A reflection hack to override the APK ClassLoader so you can launch Activities in an external JAR.
//
// !!WARNING: Not recommended for production code!!
//
public class ClassLoaderActivity extends Activity
{
public void onCreate(Bundle savedInstanceState)
{
// file.jar has a dex'd "classes.dex" entry that you can generate with "dx" from any number of JARs or class files
ClassLoader dexLoader = new DexClassLoader("/path/to/file.jar", getCacheDir().getAbsolutePath(), null, getClassLoader());
setAPKClassLoader(dexLoader);
@luckycreationsindia
luckycreationsindia / Readme.md
Created September 12, 2016 21:07 — forked from mrgcohen/Readme.md
Twitter Bootstrap Typeahead autocomplete example

Requirements

  • bootstrap with typeahead
  • jquery

Explanation

This will use bootstrap with typeahead to create an autocomplete search.