View mastodon.js
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
const fetch = require('node-fetch'); | |
const createHiddenField = (obj, fieldName, value) => { | |
Object.defineProperty(obj, fieldName, { | |
enumerable: false, | |
writable: true, | |
value: value, | |
}); | |
}; |
View mk.js
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
const fetch = require('node-fetch'); | |
const fs = require('fs'); | |
const { JSDOM } = require('jsdom'); | |
const path = require('path'); | |
const baseApi = 'https://mkwrs.com'; | |
const fetchOptions = { | |
headers: { | |
'User-Agent': 'ne^', | |
}, |
View gist:ecb1185a75071020fb411cd3b783763f
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
### Keybase proof | |
I hereby claim: | |
* I am nekzor on github. | |
* I am nekzor (https://keybase.io/nekzor) on keybase. | |
* I have a public key ASChzUyCppEK-FV2NEK6vgsaUrt7ApeVHa22Oampywj4LAo | |
To claim this, I am signing this object: |
View tm-stats-Fall 2020-2020-12-15.txt
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
Statistics as of 2020-12-15: | |
Top wr holders | |
8 - riolu-tm | |
5 - GNR-HASKELL | |
4 - Erizel | |
3 - RacetalTM | |
2 - hug0220 | |
Top countries by wrs |
View tm-stats-Fall 2020-2020-12-14.txt
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
Statistics as of 2020-12-14: | |
Top wr holders | |
7 - riolu-tm | |
5 - Erizel | |
4 - GNR-HASKELL | |
3 - RacetalTM | |
3 - hug0220 | |
Top countries by wrs |
View fetch.js
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
const fetch=(u)=>new Promise((x)=>require('https').request(u,{headers:{'User-Agent':'n^'}},(r)=>{let b='';r.on('data',(d)=>b+=d);r.on('end',()=>x(b));}).end()); | |
// Example: | |
fetch('https://api.github.com/users/NeKzor/followers') | |
.then(JSON.parse) | |
.then((followers) => console.log(followers.length)); | |
// > 15 |
View result.txt
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
sp: | |
00 884 | |
01 578 | |
02 1 | |
03 790 | |
04 109 | |
05 522 | |
06 801 | |
07 0 | |
08 597 |
View trees.js
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
const fs = require('fs'); | |
const validCommands = ['color', 'wait', 'play', 'fire', 'clear', 'reset', 'say2']; | |
const parseVoice = (voice, line) => { | |
let curCommand = undefined; | |
let commands = []; | |
for (let c of line) { | |
if (c === '[') { |
View sixense_patch.js
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
const fs = require('fs'); | |
const client_sixense = process.argv[2] || './portal2_sixense/bin/client_sixense.dll'; | |
const module = fs.readFileSync(client_sixense); | |
const patch = [ | |
[ | |
// Fix crash in init | |
// cmp ecx 69 |
View sda.js
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
{ | |
console.save = function(file, obj) { | |
let blob = new Blob([JSON.stringify(obj, null, 4)], { type: 'application/json' }); | |
let e = document.createEvent('MouseEvents'); | |
let a = document.createElement('a'); | |
a.download = file; | |
a.href = window.URL.createObjectURL(blob); | |
a.dataset.downloadurl = ['application/json', a.download, a.href].join(':'); | |
e.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null); |
NewerOlder