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 tweepy | |
from time import sleep | |
from datetime import datetime | |
import pytz | |
CONSUMER_KEY = "" | |
CONSUMER_SECRET = "" | |
ACCESS_KEY = "" | |
ACCESS_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 | |
def dice(): | |
return random.randint(1, 6), random.randint(1, 6) | |
class Game: | |
def __init__(self): | |
self.team = 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
<html> | |
<body> | |
<h1>I feel lonely</h1> | |
<script type="text/javascript" src="//code.jquery.com/jquery-2.1.3.min.js"></script> | |
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/socket.io/0.9.16/socket.io.min.js"></script> | |
<script type="text/javascript" charset="utf-8"> | |
var socket = io.connect('http://' + document.domain + ':' + location.port); | |
socket.on('connect', function() { | |
socket.emit('connected'); |
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 lnd_grpc import Client | |
from random import randint | |
from hashlib import sha256 | |
from time import sleep | |
def create_random_hash(): | |
n = str(randint(0, 1e32)) | |
hash = sha256(n.encode()) | |
return hash.digest(), n |
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 time import sleep | |
import plotly.offline as py | |
import plotly.figure_factory as ff | |
import random | |
def dice(): | |
return random.randint(1, 6), random.randint(1, 6) | |
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 func_one(): | |
print("TESTING") | |
dict_one = {"one": func_one} | |
dict_one["one"]() |
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 transitions import Machine | |
class Payments(models.Model): | |
STATES = { | |
'started': 'Started', | |
'captured': 'Captured', | |
'completed': 'Completed', | |
} |
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
(bung, bung, bung, bung, bung, bung, bung, bung, bung, bung, bung, bung, bung) | |
(bung, bung, bung, bung, bung, bung, bung, bung, bung, bung, bung, bung, bung) | |
Mr. Python, bring me a string? | |
(bung, bung, bung, bung) | |
Make it the longest that I've ever seen. | |
(bung, bung, bung, bung) | |
Teach it some methods to mutate and format. | |
(bung, bung, bung, bung) | |
Then convert and stream it with the JSON format. |
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
(Na na na na na na na na na na na na na na na na) | |
Gitmaaaaaan! | |
(Na na na na na na na na na na na na) | |
Gitmaaaaaan! | |
(Na na na na na na na na na na na na) | |
Gitman! Gitman! Gitman! | |
(Na na na na na na na na na na na na na na na na) | |
Gitman! Gitman! Gitman! | |
Da da da da da da da da da da da da da! | |
Gitmaaaaaan! |