View google-cloud-storage-upload.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
View imacros-cheatsheet.md
iMacro CheatSheet - Command Reference
- http://wiki.imacros.net/Command_Reference
- http://wiki.imacros.net/iMacros_for_Firefox#Javascript_Scripting_Interface
Variables
iMacros supports 3 types of variables
- The macro variables !VAR0 thru !VAR9. They can be used with the SET and ADD command inside a macro.
View gist:de3cdc050c98719d14f1035ffa870330
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
View tws_prevent_logout.au3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Debug.au3> | |
#include <date.au3> | |
Opt("MouseCoordMode", 0) | |
Opt("WinTitleMatchMode", 3) | |
While 1 | |
View Interactive Brokers Equities (NASDAQ, NYSE, AMEX) - Symbol, Primary Exchange, Tick Increment, ISIN, CONID, ASSETID.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
View ed_langs_pt.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"en": { | |
"en": "English", | |
"cn": "English", | |
"fr": "English", | |
"es": "English", | |
"ko": "English", | |
"pt": "English" | |
}, | |
"cn": { |
OlderNewer