This file contains hidden or 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
<? | |
class Debug { | |
const log = 0; | |
const success = 1; | |
const warning = 2; | |
const error = 3; | |
private static $init = false; | |
public static function start() { | |
session_start(); | |
if (!$_SESSION["debug"]) { |
This file contains hidden or 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
<? | |
class DB { | |
private static $conn = null; | |
public static function connect($host="localhost", $user="root", $pass=null, $db=null) { | |
DB::$conn = mysqli_connect($host, $user, $pass, $db); | |
} | |
public static function insert($table, $data) { | |
if (!DB::$conn) { | |
DB::connect(); | |
} |
This file contains hidden or 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
try: | |
import os, shutil, zipfile | |
except ImportError as e: | |
print("") | |
print("Error: installation module not available:") | |
print("{}.".format(e)) | |
print("") | |
quit() | |
try: |
This file contains hidden or 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
function shlex(str) { | |
var args = str.split(" "); | |
var out = []; | |
var lookForClose = -1; | |
var quoteOpen = false; | |
for (var x in args) { | |
if (args.hasOwnProperty(x)) { | |
var arg = args[x]; | |
var escSeq = false; | |
for (var y in arg) { |
This file contains hidden or 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 json, re, shlex, urllib.request | |
watch = [] | |
def getPrice(item): | |
listings = json.loads(urllib.request.urlopen(makeUrl(item)).read().decode("utf-8"))["listinginfo"] | |
lowest = None | |
for id, obj in list(listings.items()): | |
try: | |
price = obj["converted_price"] |
This file contains hidden or 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 java.util.Calendar; | |
import android.app.DatePickerDialog; | |
import android.app.TimePickerDialog; | |
import android.content.Context; | |
import android.view.View; | |
import android.widget.DatePicker; | |
import android.widget.TextView; | |
import android.widget.TimePicker; |
This file contains hidden or 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
// ==UserScript== | |
// @id iitc-plugin-ingressdualmap-exporter@OllieTerrance | |
// @name IITC plugin: Ingress Dual Map Exporter | |
// @category Keys | |
// @version 0.0.0.1 | |
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion | |
// @description Exports portals currently in view as a CSV list for use with Ingress Dual Map. | |
// @include https://www.ingress.com/intel* | |
// @include http://www.ingress.com/intel* | |
// @match https://www.ingress.com/intel* |
This file contains hidden or 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
// for all public tags | |
$(".sx_c87e68").each(function(i, e) { | |
// navigate up to the root of the item | |
var r = $(e).parent().parent().parent().parent().parent().next(); | |
var id = r.parent().attr("id"); | |
// open the dropdown | |
r.find("i").click(); | |
// find the corresponding menu | |
$(".accelerate").find("a").each(function(j, l) { | |
if ($(l).data("store").domID == id) { |
This file contains hidden or 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
@media (max-width: 768px) { | |
div#content { | |
margin-left: 0; | |
border: none; | |
} | |
#mw-page-base, #mw-head-base, #mw-head, #mw-panel { | |
display: none; | |
} | |
} |
This file contains hidden or 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
$$(".item_market_action_button.item_market_action_button_green")[0].click(); | |
$$("#market_buynow_dialog_accept_ssa")[0].checked = true; | |
$$("#market_buynow_dialog_purchase")[0].click(); |
OlderNewer