Skip to content

Instantly share code, notes, and snippets.

View shekeru's full-sized avatar
🥕
A waste of IQ points.

Shekychan shekeru

🥕
A waste of IQ points.
View GitHub Profile
@shekeru
shekeru / hosts
Last active December 22, 2018 07:46
Spotify Ad-Network Blacklist (December 2018) [Hosts File/List]
0.0.0.0 audio-sp.spotify.com
0.0.0.0 redirector.gvt1.com
0.0.0.0 gads.pubmatic.com
0.0.0.0 www.omaze.com
0.0.0.0 ads.pubmatic.com
0.0.0.0 cs126.wpc.edgecastcdn.net
0.0.0.0 gtssl2-ocsp.geotrust.com
0.0.0.0 na.gmtdmp.com
0.0.0.0 pagead46.l.doubleclick.net
0.0.0.0 adclick.g.doublecklick.net
@shekeru
shekeru / init.coffee
Last active July 24, 2018 08:23
Atom Settings Clusterfuck
# initialization file (not found)
@shekeru
shekeru / core.gameevents
Created June 13, 2019 00:25
Dota 2, GameEvents (Core)
//=========== (C) Copyright Valve, L.L.C. All rights reserved. ===========
//
// The copyright to the contents herein is the property of Valve, L.L.C.
// The contents may be used and/or copied only with the written permission of
// Valve, L.L.C., or in accordance with the terms and conditions stipulated in
// the agreement/contract under which the contents have been supplied.
//=============================================================================
// No spaces in event names, max length 32
// All strings are case sensitive
@shekeru
shekeru / game.gameevents
Created June 13, 2019 00:26
Dota 2, Game Events (Game)
//=========== (C) Copyright Valve, L.L.C. All rights reserved. ===========
//
// The copyright to the contents herein is the property of Valve, L.L.C.
// The contents may be used and/or copied only with the written permission of
// Valve, L.L.C., or in accordance with the terms and conditions stipulated in
// the agreement/contract under which the contents have been supplied.
//=============================================================================
// No spaces in event names, max length 32
// All strings are case sensitive
@shekeru
shekeru / port.gameevents
Created June 13, 2019 00:27
Dota 2, Game Events (Port)
//=========== (C) Copyright 2005 Valve, L.L.C. All rights reserved. ===========
//
// Short-term repository for new gameevents during the port. (To prevent merge problems with the other res files.)
//
"ModEvents"
{
"dota_team_kill_credit"
{
"killer_userid" "short"
DotkaLib, Handle Address: d7570000
Module "client.dll" loaded at 000007FEB1C90000
[+] CreateInterface: 000007FEB3188490
Module "engine2.dll" loaded at 000007FEE6420000
[+] CreateInterface: 000007FEE66CED70
Module "vgui2.dll" loaded at 000007FEEEB10000
[+] CreateInterface: 000007FEEEB3FA70
CreateInterface(Source2EngineToClient001, 0) => 0x000007FEE6915480
CreateInterface(Source2Client002, 0) => 0x000007FEB43B9660
@shekeru
shekeru / cloudSettings
Last active October 11, 2021 05:50
Visual Studio Code
{"lastUpload":"2021-10-11T05:50:21.428Z","extensionVersion":"v3.4.3"}
@shekeru
shekeru / easy.py
Last active October 7, 2021 01:07
Sudoku Solver v1
from collections import defaultdict
class Sudoku:
def __init__(s, board):
s.board = board
def __repr__(s):
return "\n".join(" ".join(map(str, xs)) for xs in s.board)
def gen_dict(s):
sq = lambda xs, i: xs[3 * (i//3) : 3 * (1 + i//3)]
s.opts = defaultdict(lambda: {*range(1, 10)})
█████████████████████████████████████████
█ █ █ █ █
█ █████ █████ ███████ ███ █ █████ ███ █ █
█ █ █ █ █ █ █ █ █ █
█ █ █████ ███████ █ ███ █ █████████ █ ███
█ █ █ █ █ █ █ █ █ █ █ █
█ ███ █████ █ █ █████ █████████ █ █████ █
█ █ █ █ █ █ █ █ █ █
█ █ ███ █ █ █ █████ █████ █ █████ █████ █
█ █ █@█ █ █ █ █ █ █ █ █ █ █
@shekeru
shekeru / pe1.ic
Last active July 14, 2020 01:36
Project Euler 1 (Intcode Custom ASM)
rbx, !halt
mul, !halt, 1, *1
0_jmp, 0, !main
-global, 16, sbufR
-global, 16, sbufN
-global, 0, txt
b'Result: \x00'
-global, 0, div
-vars, i, neg, b, a, rsp
rbx, 5