Skip to content

Instantly share code, notes, and snippets.

View google-cloud-storage-upload.php
<?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");
View gist:13fc221a7032f5fc4b1c
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 Oct 7, 2016
iMacros Command, Variable, and function reference
View imacros-cheatsheet.md
View gist:de3cdc050c98719d14f1035ffa870330
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 Mar 12, 2017
Prevents TWS (Interactive Brokers) Automatic Logout
View tws_prevent_logout.au3
#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 Sep 30, 2021
Interactive Brokers Equities (NASDAQ, NYSE, AMEX) - Symbol, Primary Exchange, Tick Increment, ISIN, CONID, ASSETID
View Interactive Brokers Equities (NASDAQ, NYSE, AMEX) - Symbol, Primary Exchange, Tick Increment, ISIN, CONID, ASSETID.txt
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
View SEC_CIK_TICKER
1090872|A
4281|AA
1332552|AAACU
1287145|AABB
1024015|AABC
1099290|AAC
1264707|AACC
849116|AACE
1409430|AAGC
948846|AAI
View csv_to_sqlite+query.py
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 Oct 20, 2017
EtherDelta Translation to Portuguese
View ed_langs_pt.json
{
"en": {
"en": "English",
"cn": "English",
"fr": "English",
"es": "English",
"ko": "English",
"pt": "English"
},
"cn": {