Skip to content

Instantly share code, notes, and snippets.

@NeKzor
NeKzor / mk.js
Last active Jul 12, 2021
Every Mario Kart World Record form 1996-2021. Datasets available at https://www.dolthub.com/repositories/nekz/mkwrs/data/master
View mk.js
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
### 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
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
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
@NeKzor
NeKzor / fetch.js
Created Aug 31, 2020
One-liner fetch API for NodeJs. Fuck axios & co.
View fetch.js
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
@NeKzor
NeKzor / result.txt
Last active Feb 22, 2020
Data dump for Klooger.
View result.txt
sp:
00 884
01 578
02 1
03 790
04 109
05 522
06 801
07 0
08 597
@NeKzor
NeKzor / trees.js
Created Jan 9, 2020
Next level routing feat. The Beginners Guide.
View trees.js
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 === '[') {
@NeKzor
NeKzor / sixense_patch.js
Created Nov 29, 2019
Play Portal 2 Sixense Perceptual Pack without Senz3D camera.
View sixense_patch.js
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
@NeKzor
NeKzor / sda.js
Last active Nov 4, 2019
SDA forum scraping + analytics.
View sda.js
{
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);
View autoBanNoProof.php
<?php
include(__DIR__."/../loader.php");
$params = array(
"dateStart" => "2017-05-11",
"dateEnd" => date('Y-m-d', time() - 60 * 60 * 24),
"banned" => "0",
"demo" => "0",
"yt" => "0");