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 net.runelite.mapping.ObfuscatedGetter; | |
import net.runelite.mapping.ObfuscatedName; | |
import net.runelite.mapping.ObfuscatedSignature; | |
@ObfuscatedName("fw") | |
public class class166 { | |
@ObfuscatedName("m") | |
@ObfuscatedSignature( | |
signature = "Lfw;" | |
) |
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 java.io.IOException; | |
import java.net.URL; | |
import java.util.Collections; | |
import java.util.List; | |
import java.util.Optional; | |
import java.util.jar.Manifest; | |
import java.util.stream.Stream; | |
/** | |
* Created by kylestev |
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 { Socket } from 'net'; | |
import * as struct from 'bufferpack'; | |
let sock = new Socket({ readable: true, writable: true }); | |
sock.connect({ | |
host: 'oldschool1.runescape.com', | |
port: 43594 | |
}, () => { | |
// first we bind a listener to all incoming data | |
sock.on('data', (buff) => { |
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 json | |
import requests | |
import sys | |
COMPANY_TABLE_ID = 'company_table' | |
URL_STACKALYTICS = 'http://stackalytics.com/api/1.0/stats' | |
URL_SA_IRONIC_METRICS = '{}/{}?module={}&metric={}'.format( | |
URL_STACKALYTICS, '{}', 'ironic-group', '{}') |
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/bash | |
function get_clipboard_content { | |
xclip -selection c -o | |
} | |
function upload_pastie { | |
local lang="plain_text" | |
local content=$(get_clipboard_content) | |
local private=1 |
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
➜ work radon cc -a ironic/ironic | tail -2 | |
2845 blocks (classes, functions, methods) analyzed. | |
Average complexity: A (1.96379613357) | |
➜ work radon cc -a cloud-init/cloudinit | tail -2 | |
960 blocks (classes, functions, methods) analyzed. | |
Average complexity: A (3.91145833333) | |
➜ work radon cc -a ironic-python-agent/ironic_python_agent | tail -2 | |
494 blocks (classes, functions, methods) analyzed. | |
Average complexity: A (2.10526315789) |
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
from libmproxy.script import concurrent | |
@concurrent | |
def request(context, flow): | |
if 'user/ping' in flow.request.path: | |
flow.request.content = '{"lat":44.563781,"lon":-123.279444}' # Oregon State |
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
class Cursor(object): | |
def __init__(self): | |
self.x, self.y = 0, 0 | |
self.dirs = { | |
'd': (0, 1), | |
'u': (0, -1), | |
'r': (1, 0), | |
'l': (-1, 0) | |
} |
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
class Stack(object): | |
def __init__(self): | |
self.arr = [] | |
def __len__(self): | |
return len(self.arr) | |
def push(self, obj): | |
self.arr.append(obj) |
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 random | |
import re | |
def word_stream(sentence): | |
buff = '' | |
for c in sentence: | |
if 'A' <= c <= 'Z' or 'a' <= c <= 'z': | |
buff += c | |
else: | |
if buff: |
NewerOlder