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
const https = require("https"); | |
let argv = process.argv[2]; | |
let options = { | |
hostname: "codequiz.azurewebsites.net", | |
path: "/", | |
method: "GET", | |
headers: { Cookie: "hasCookie=true" }, | |
}; |
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
(async () => { | |
// FarmersWorld Bot Script v1.0.6 | |
// อัพเดทล่าสุด 13/11/2021 เวลา 03:30 น. | |
// ตัวแปรสำหรับตั้งค่าการเติม energy และ ซ่อมอุปกรณ์ | |
// หากอยากให้ปิดอันไหนก็ใส่ค่าเป็น 0 เช่นอยากปิดการเติม energy ก็เปลี่ยนค่าเป็น 0 | |
// ตัวอย่าง | |
// let autoFillEnergy = 0 | |
let autoFillEnergy = 1 | |
let autoRepair = 1 |
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
const test = (p, seed) => { | |
let a = 'abcdefghijklmnopqrstuvwxyz' | |
let r = '' | |
let i = 0 | |
for (const c of seed) { | |
if (p.length === i) { | |
i = 0 | |
} | |
if (c !== ' ') { | |
// increase |
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
const extractor = (initialData, data) => { | |
if (data.item_group && data.item_group.length > 0) { | |
const children = data.item_group.reduce((a, b) => { | |
return [...a, ...extractor([], b)]; | |
}, []); | |
const temp = { ...data }; | |
temp.count_child = children.length; | |
delete data.item_group; | |
return [...initialData, temp, ...children]; | |
} |
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
print ("Your Name") | |
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
#!/usr/bin/env python | |
from grandmasomsri.graph import power | |
print (powerGraph()) |
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 matplotlib.pyplot as plt | |
import numpy as np | |
import random | |
def powerGraph(): | |
y = np.arange(0,100) | |
prayud = [] | |
somsri = [] | |
for i in y: | |
tmp = i * 0.8 |
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
#!/usr/bin/env python | |
from grandmasomsri.grandpaPrayud import prayud | |
prayud() |
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
#!/usr/bin/env python | |
from grandmasomsri.grandmaSomsri import somsri | |
somsri() |
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
def prayud(): | |
print ("---------------------------------------------") | |
print ("| (( ####@@!!$$ )) |") | |
print ("| `#####@@!$$` )) |") | |
print ("| (( '####@!!$: |") | |
print ("| (( ,####@!!$: )) |") | |
print ("| .###@!!$: |") | |
print ("| `##@@!$: |") | |
print ("| `#@!!$ |") | |
print ("| !@# `#@!$: @#$ |") |
NewerOlder