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 | |
from requests_oauthlib import OAuth1 | |
import random | |
#API information | |
consumer_key = "" | |
consumer_secret = "" | |
token = "" | |
token_secret = "" |
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 | |
randomfood = random.choice(open('food.txt').readlines()) | |
print randomfood |
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
function swag() | |
{ | |
var req = new XMLHttpRequest(); | |
req.open('GET', "http://www.google.com/", true); | |
req.send(null); | |
alert(req.responseText); | |
} |
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 | |
from math import * | |
class player: | |
victories = 0 | |
def set_levels(self, attack, strength, defense): | |
self.attack_level = attack | |
self.strength_level = strength | |
self.defense_level = defense |
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
{"has_more_items":true,"items_html":"\n\n\n\n\n\n\n\n\n\n\n\n \u003cli class=\"js-stream-item stream-item stream-item \n\" data-item-id=\"31256852\" id=\"stream-item-user-31256852\" data-item-type=\"user\"\u003e\n \n\u003cdiv class=\"account js-actionable-user js-profile-popup-actionable \" data-screen-name=\"lorenzofertitta\" data-user-id=\"31256852\" data-feedback-token=\"\" data-impression-id=\"\" \u003e\n \n\n \n\u003cdiv class=\"user-actions btn-group not-following \" data-user-id=\"31256852\"\n data-screen-name=\"lorenzofertitta\" data-name=\"Lorenzo Fertitta\" data-protected=\"false\"\u003e\n\n\n\n \n\u003cdiv class=\"dropdown\"\u003e\n \u003cbutton type=\"button\" class=\"user-dropdown dropdown-toggle js-dropdown-toggle js-link js-tooltip btn plain-btn\" title=\"More user actions\"\u003e\n \u003cspan class=\"user-dropdown-icon Icon Icon--cogWithCaret Icon--large\"\u003e\u003cspan class=\"visuallyhidden\"\u003eUser Actions\u003c\/span\u003e\u003c\/span\u003e\n \u003c\/b |
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
mage = 99.0 | |
defence = 80. | |
hp = 81.0 | |
prayer = 70.0 | |
attack = 80.0 | |
strength = 80. | |
rangeL = 1.0 | |
baseLevel = .25 * ( defence + hp + (prayer/2)) | |
wLevel = 13.0/40.0 * (attack + strength) |
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 inner(radius,width): | |
return (2 * 3.14158265 * radius * width) / 196935000 |
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 time | |
def getReddit(subreddit): | |
baseurl = requests.get("http://reddit.com/r/%s/new/.json" % str(subreddit)) | |
jsonData = baseurl.json()['data']['children'] | |
return jsonData |
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
@sweep | |
# assign n | |
PUSH 100 | |
@L0 | |
DUP |
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 | |
i = requests.get('http://haruhichan.com/feed/feed.php?mode=json') | |
s = json.load(i) |
NewerOlder