Skip to content

Instantly share code, notes, and snippets.

@Rapptz
Rapptz / breaking.md
Last active November 29, 2015 00:32

Breaking changes from v0.8.0 to v0.9.0:

  • All HTTP requests now throw exceptions.
  • send_message no longer takes in a string ID for destination.
    • Use discord.Object(id='...') instead.
  • discord.InvalidEventName is removed
  • discord.InvalidDestination is renamed to discord.ClientException
  • on_server_create was renamed to on_server_join
  • on_server_delete was renamed to on_server_remove
  • A lot of the factory methods in discord.Colour were renamed.
Appendix A. Collected ABNF for URI
URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
hier-part = "//" authority path-abempty
/ path-absolute
/ path-rootless
/ path-empty
URI-reference = URI / relative-ref
#include <thread>
#include <chrono>
int main() {
while(true) {
std::this_thread::sleep_for(std::chrono::seconds(60));
}
}
@Rapptz
Rapptz / tnl.md
Created August 6, 2015 04:05
Splatoon level chart
Level EXP Required
21 24
22 48
23 72
24 96
25 120
26 144
27 168
28 192
[0021:0213] Skill/14200.img
Traceback (most recent call last):
File "C:\MapleStory\WzReader\run.py", line 178, in <module>
result = func(*args, **kwargs)
File "C:\MapleStory\WzReader\MGeneral.py", line 196, in Unpack
newWzFile.ExtractFile(eachWzFile)
File "C:\MapleStory\WzReader\IMGReader\CWzFile.py", line 254, in ExtractFile
self.Extract73type()
File "C:\MapleStory\WzReader\IMGReader\CWzFile.py", line 54, in Extract73type
self.ExtractBlocks(ValueLocation)

I do not care about "moderator's discretion". However if you truly want that to be a rule then that should be its own separate rule. Rule 7. But this isn't about "moderator's discretion". This is how rule 1 talks about "low quality" content in a completely vague matter that lends itself to be used as mostly as "moderator's discretion". That's not how rules are supposed to be.

It doesn't help that the image of what quality standards are set on reddit are based on the core principles of reddit leads to a lot of people saying "but I thought our votes were what count" but the entire mod team gladly jumps on that point but saying "no no, reddit doesn't work very well". Throw "moderator's discretion" + vague rule 1A into the mix and you will have this scenario keep replaying until the end of time. Sounds fun.

All I'm saying is that if you want the precious "moderator's discretion" then it should be its own separate rule and then make rule 1 as clear as po

type: comment
body (full-exact, regex, case-sensitive): '^[fF]lair:\s*(64|meta|all|ssb4|melee|brawl|projectm)$'
is_top_level: true
author:
is_submitter: true
message: |
Flair successfully applied on your post [{{title}}]({{permalink}}).
parent_submission:
set_flair: ["{{match-2}}", "{{match-2}}"]
overwrite_flair: true
import sublime, sublime_plugin
import os.path
import platform
def compare_file_names(x, y):
if platform.system() == 'Windows' or platform.system() == 'Darwin':
return x.lower() == y.lower()
else:
return x == y
λ mingw32-make.exe mingw
mingw32-make.exe "LUA_A=lua53.dll" "LUA_T=lua.exe" \
"AR=gcc -std=gnu99 -shared -o" "RANLIB=strip --strip-unneeded" \
"SYSCFLAGS=-DLUA_BUILD_AS_DLL" "SYSLIBS=" "SYSLDFLAGS=-s" lua.exe
mingw32-make[1]: Entering directory 'D:/Downloads/lua-5.3.0/src'
g++ -c -o lua.o lua.c
g++ -c -o lapi.o lapi.c
g++ -c -o lcode.o lcode.c
g++ -c -o lctype.o lctype.c
g++ -c -o ldebug.o ldebug.c
@Rapptz
Rapptz / part2
Last active August 29, 2015 14:20
Feb 13 18:10:48 <Lanzoma> Yo hratis, I PM'd you
Feb 13 18:10:49 <TheHologram> god dammit
Feb 13 18:10:54 <NotHelix> Alright Miracle Jester has not shown up.
Feb 13 18:11:28 <marauders42> what do we do after we win
Feb 13 18:11:32 <Hratis> wat
Feb 13 18:11:32 <TheHologram> i just wanna play smash man
Feb 13 18:11:38 <MrMagnificent> Why does it say on the link?
Feb 13 18:11:40 <NotHelix> Wait for the next round
Feb 13 18:11:42 <MrMagnificent> Isn't this the weekly?
Feb 13 18:11:44 <Hratis> This tournament was going?