Languages |
---|
ActionScript |
C# |
C++ |
Django |
Elixir |
Go |
Java |
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
https://account.oneplus.net/invite/claim/GLNU-U4LY-D0F3-7IPC | |
https://account.oneplus.net/invite/claim/GLPY-R4Q3-ICII-UWTC | |
https://account.oneplus.net/invite/claim/GLVZ-ZS8K-V068-TZDA | |
https://account.oneplus.net/invite/claim/GL8O-LKZJ-HKFJ-V6VZ | |
https://account.oneplus.net/invite/claim/GLTU-D8CR-EJ2Q-7RL7 | |
https://account.oneplus.net/invite/claim/GLDT-A9FA-B0MU-IWIJ | |
https://account.oneplus.net/invite/claim/GLGB-BRJT-IHEZ-N7MR | |
https://account.oneplus.net/invite/claim/GLN0-DCO9-4GIG-ZYQS | |
https://account.oneplus.net/invite/claim/GLAW-HUDO-SHUD-SZE7 | |
https://account.oneplus.net/invite/claim/GLMC-VAOQ-NTMQ-YXNZ |
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 | |
$id = (isset($_GET['id']) && is_numeric($_GET['id'])) ? intval($_GET['id']) : 0; | |
if ($id != 0 && $id > 0){ | |
header('Content-type: image/png'); | |
function getLikesPosts($idd){ | |
$html = file_get_contents("https://forums.oneplus.net/members/$idd/?card=1"); | |
$pattern = '/\<dt\>Likes Received\:\<\/dt\>.\<dd\>(.*?)\<\/dd\>/'; | |
preg_match($pattern, $html, $matches, PREG_OFFSET_CAPTURE); |
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
def loadPlugins(): | |
pluginFiles = ["plugins/" + f for f in listdir(curPath + "\plugins") if re.search('^.+\.py$', f)] | |
global plugins | |
plugins = [] | |
for file in pluginFiles: | |
values = {} | |
execfile(file, values) | |
plugin = values['plugin'] # get the variable "plugin" | |
print "Initializing plugin:", plugin['name'] | |
plugins.append(plugin) |
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 | |
$id = (isset($_GET['id']) && is_numeric($_GET['id'])) ? intval($_GET['id']) : 0; | |
//get the ?id=value from the url, if it doesn't exist, make it zero | |
//if $id is no 0 and it is greater than 0 (can't have a user 0 or negative) | |
if ($id != 0 && $id > 0){ | |
header('Content-type: image/png'); | |
//tell whatever is accessing the url that an image/png is going to show (not html) | |
//make a function that returns an array of info for the likes/post |
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
// ==UserScript== | |
// @name No reddit on weekdays | |
// @version 0.1 | |
// @description Redirects you to xkcd.com/no | |
// @author Juan Potato | |
// @match *://*.reddit.com/* | |
// ==/UserScript== | |
if(0 < new Date().getDay() < 6) | |
window.location.href = "http://xkcd.com/no/"; |
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
#!/bin/python3 | |
import re | |
base = '(\d+\.?\d*)\s*' | |
units = { | |
'kg': { | |
'pattern': ['kg', 'kilogram'], | |
'convert': 2.20462262185, |
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 requests | |
import json | |
import time | |
TOKEN = '' | |
url = 'https://api.telegram.org/bot' + TOKEN | |
offset = 0 | |
answerInlineQueryUrl = url + '/answerInlineQuery' | |
sendVoiceUrl = url + '/sendVoice' |
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
#!/bin/sh | |
# | |
# Terraria Config | |
# | |
#maxplayers=69 | |
#world=/home/terrariaserver/.local/share/Terraria/Worlds/LetsNotFail.wld | |
#port=7777 | |
#password=potato |
OlderNewer