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
""" | |
Example: | |
``` | |
with Pipeline() as pipeline: | |
pipeline.add_stage(lambda x: x + 1) # 1 + 1 = 2 | |
pipeline.add_parallel_stage( | |
lambda x: x + 1, # 2 + 1 = 3 | |
lambda x: x + 2 # 2 + 2 = 4 | |
) | |
pipeline.add_stage(lambda x, y: x + y) # 3 + 4 = 7 |
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 fetch from 'node-fetch'; | |
import jwt from 'jsonwebtoken'; | |
const contractId = 'your-contract-id'; | |
const accessKey = 'your-access-key'; | |
const secretKey = 'your-secret'; | |
async function request(url, {method, headers, body}) { | |
console.log('------------------------------'); | |
console.log(`${method}: ${url}`) |
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
// ==UserScript== | |
// @name Novel Reader | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://metruyenchu.com/truyen/*/chuong* | |
// @match https://truyen.tangthuvien.vn/doc-truyen/*/chuong* | |
// @match https://www.novelpub.com/novel/* | |
// @match https://www.lightnovelpub.com/novel/* |
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 os | |
from random import randint | |
SIMULATIONS = 1000000000 | |
RATE = 6 # The base rate to get a 5* item is 0.6% | |
chances = dict([(i, 0) for i in range(1, 91)]) | |
times = 0 | |
for i in range(SIMULATIONS): |