- Text Content Generator - http://www.lipsum.com
- Favicon Generator - http://tools.dynamicdrive.com/favicon
- Data Generator - https://mockaroo.com/
- Mobile Mockup Generator - https://mockuphone.com
- Logo Generator - https://www.logaster.com
- UUID Generator - https://www.uuidgenerator.net/
- Hash Generator - https://passwordsgenerator.net/sha256-hash-generator/
This file contains hidden or 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 sseclient | |
def getGameDay(): | |
response = requests.get("https://www.blaseball.com/events/streamGameData", stream=True) | |
client = sseclient.SSEClient(response) | |
singleEvent = next(client.events()) | |
client.close() |
This file contains hidden or 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 glob | |
import requests | |
from matplotlib import pyplot as plt | |
from itertools import accumulate | |
# Load original season 3 games | |
with open("season3games.json", "r") as f: | |
line = f.read() | |
games = json.loads(line) |
This file contains hidden or 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
CREATE TABLE IF NOT EXISTS player( | |
player_id varchar(36) PRIMARY KEY, /* Use the uuid as the primary key */ | |
captured_at timestamp /* The timestamp when this player data was fetched from the site. */ | |
/* Or better yet if we can get it the timestamp the change took effect */ | |
name text | |
deceased boolean | |
/* blaserunning */ | |
base_thirst decimal | |
continuation decimal |
This file contains hidden or 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
[ | |
{ | |
"gameId": "258ed83f-19f3-4ddd-bb7e-9bb85768b8fd", | |
"eventType": "WALK", | |
"eventIndex": 0, | |
"inning": 0, | |
"outsBeforePlay": 0, | |
"batterId": "7310c32f-8f32-40f2-b086-54555a2c0e86", | |
"batterTeamId": "36569151-a2fb-43c1-9df7-2df512424c82", | |
"pitcherId": "9965eed5-086c-4977-9470-fe410f92d353", |
This file contains hidden or 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
*READ THIS TOP TO BOTTOM BEFORE STARTING TO COOK* | |
*DO NOT BLINDLY FOLLOW THIS RECIPE WITHOUT READING IT END TO END FIRST* | |
*croissants are weird.* | |
500g all purpose flour | |
10g salt | |
80g sugar | |
10g yeast | |
300ml cool water | |
300g butter (NICE BUTTER. get salted kerrygold, or "european style" butter. this is where MOST of the flavor comes from. don't skimp here. |
This file contains hidden or 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
/* | |
* Solution of Josephus Problem using Bitwise Operation | |
* Shifting the most-significant set bit of n to the | |
* least significant bit will return the safe position. | |
* | |
* ====================== EXPLANATION ====================== | |
* | |
* n (41) the number of people standing in the circle | |
* n = 101001 | |
* |
This file contains hidden or 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
require 'slack-ruby-client' # first, make sure you do: gem install slack-ruby-client | |
require 'date' | |
# Add your Slack API token here | |
token = [YOUR TOKEN HERE] | |
Slack.configure do |config| | |
config.token = token | |
end |
- Install to Debian Buster
- All of services needed to run Mastodon instance (tor, postgresql, redis, nginx) will be installed to the same server.
# apt install postgresql redis nodejs npm ruby tor ffmpeg imagemagick git \
nginx wget bundler protobuf-compiler iptables-persistent ncurses-term vim \
gcc g++ make patch ruby-dev libprotobuf-dev libidn11-dev libpq-dev libicu-dev libxml2-dev libxslt1-dev
This file contains hidden or 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
{ | |
"__inputs": [], | |
"__requires": [ | |
{ | |
"type": "grafana", | |
"id": "grafana", | |
"name": "Grafana", | |
"version": "4.6.3" | |
}, | |
{ |
NewerOlder