- Update HISTORY.rst
- Commit the changes:
git add HISTORY.rst
git commit -m "Changelog for upcoming release 0.1.1."
- Update version number (can also be minor or major)
bumpversion patch
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 |
<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'); |
import random | |
def dice(): | |
return random.randint(1, 6), random.randint(1, 6) | |
class Game: | |
def __init__(self): | |
self.team = 0 |
import tweepy | |
from time import sleep | |
from datetime import datetime | |
import pytz | |
CONSUMER_KEY = "" | |
CONSUMER_SECRET = "" | |
ACCESS_KEY = "" | |
ACCESS_SECRET = "" |
git add HISTORY.rst
git commit -m "Changelog for upcoming release 0.1.1."
bumpversion patch
@namespace url(http://www.w3.org/1999/xhtml); | |
html { | |
background-color: #002b36 !important; | |
color: #839496 !important; | |
font-size: 105% | |
} | |
* { /* body, div#content-body, div#body, div#content, h1 */ | |
background: transparent !important; | |
color: inherit !important; |
import toml | |
import structlog | |
from pathlib import Path | |
class InvalidSettingError(ValueError): | |
pass | |
class ConfigurationBase: |
# percent change = new - old / old * 100 | |
dataframe['percent_change'] = ( | |
dataframe['Last'] - dataframe['PrevDay']) / dataframe['PrevDay'] * 100 |