Skip to content

Instantly share code, notes, and snippets.

<?php
require_once("src/Google/Client.php");
require_once("src/Google/Service/Storage.php");
/**
* Connect to Google Cloud Storage API
*/
$client = new Google_Client();
$client->setApplicationName("App Name");
String packageName = "com.android.browser";
String className = "com.android.browser.BrowserActivity";
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
intent.setClassName(packageName, className);
intent.setData(Uri.parse("https://google.com"));
startActivity(intent);
@x011
x011 / imacros-cheatsheet.md
Created October 7, 2016 12:07
iMacros Command, Variable, and function reference
http://rootzwiki.com/topic/41985-enable-wifi-tether-through-adb/
adb shell input keyevent 3 # home
adb shell am start -a android.intent.action.MAIN -n com.android.settings/.Settings
adb shell input keyevent 20 # down
adb shell input keyevent 20 # down
@x011
x011 / tws_prevent_logout.au3
Last active March 12, 2017 19:46
Prevents TWS (Interactive Brokers) Automatic Logout
#include <Debug.au3>
#include <date.au3>
Opt("MouseCoordMode", 0)
Opt("WinTitleMatchMode", 3)
While 1
@x011
x011 / Interactive Brokers Equities (NASDAQ, NYSE, AMEX) - Symbol, Primary Exchange, Tick Increment, ISIN, CONID, ASSETID.txt
Last active March 28, 2024 20:00
Interactive Brokers Equities (NASDAQ, NYSE, AMEX) - Symbol, Primary Exchange, Tick Increment, ISIN, CONID, ASSETID
symbol,exch,tick,isin,conid,assetid
OGEN,AMEX,0001,US6840232036,79502228,IB14002948
AZRX,NASDAQ,01,US05502L1052,249028358,IB44916495
SLIM,NASDAQ,01,US47103U5065,236317253,IB42908076
SPNC,NASDAQ,05,US84760C1071,274605,IB49346
SLMAP,NASDAQ,01,US78442P2056,2009074,IB24382
ISCA,NASDAQ,05,US4603352018,4596071,IB47153
JASN,NASDAQ,0001,US4711721062,159114177,IB28671428
PMD,NASDAQ,01,US7443752057,756145,IB82271
SPAN,NASDAQ,01,US8463961099,274554,IB49331
@x011
x011 / SEC_CIK_TICKER
Created March 13, 2017 02:06
CIK|TICKER
1090872|A
4281|AA
1332552|AAACU
1287145|AABB
1024015|AABC
1099290|AAC
1264707|AACC
849116|AACE
1409430|AAGC
948846|AAI
import csv
import sqlite3
import os.path
from datetime import datetime
csv_file = "csv_to_db.csv"
db_file = "csv_to_db.sqlite"
if not os.path.exists(db_file):
#id,mtype,competition,gender,team1,team2,venue,date
con = sqlite3.Connection(db_file,detect_types=sqlite3.PARSE_DECLTYPES)
cur = con.cursor()
@x011
x011 / ed_langs_pt.json
Created October 20, 2017 23:37
EtherDelta Translation to Portuguese
{
"en": {
"en": "English",
"cn": "English",
"fr": "English",
"es": "English",
"ko": "English",
"pt": "English"
},
"cn": {