Skip to content

Instantly share code, notes, and snippets.

Yes, yes it does.

:p

You actually can't. This doesn't do what it looks like (precedence).

You can reverse the condition, it just would need a little editing

It does :D

  • _ is an indescriptive name
  • %p<1 are you trying to modulo from a boolean? what the fuck
  • _-p oh god why
  • this is just nasty
  • with is deprecated
  • you only access one property on window, so just access it directly
  • 094 this can acidentally convert to hex, so just use 94, also the 0 is extraneous in that case anyway
  • there's no reason to make 94 as a variable
  • varName is indescriptive
@The-Quill
The-Quill / meh.md
Created February 23, 2016 12:53
mehmehmeh.meh
  • Follow snake_case
  • it=int=input( ""'') does this even fucking compile?
  • MyNumberCounter= 10 whitespace between operators
  • try : not this operator
  • while not: could swap to == False
  • (it) does nothing
  • int don't name a variable with a type name
  • mix of tabs and spaces, you evil, evil person
  • MyNumberCounter() the type is an int, not a function or generator, this probably won't compile
  • loop is not defined
@The-Quill
The-Quill / shtripedrheview.md
Created February 18, 2016 12:52
shtriped rheview

#Speling You mispeled SEPERATOR.


#Naming

Try and avoid single character or abbreviated names:

strToInt(s)

Rank User Link Total
---- ------------------ -----
1 palacsint 40
2 Jamal 39
2 rolfl 39
2 Malachi 39
5 200_success 37
5 Simon Forsberg 37
5 Mat's Mug 37
8 RubberDuck 36
Rank User Link Total
---- ---------------------------- -----
1 Martin Büttner 37
2 Peter Taylor 34
3 Dennis 33
3 Optimizer 33
5 isaacg 32
6 Sp3000 31
6 Doorknob 31
6 Calvin's Hobbies 31

#Whitespace

You should have whitespace around your operators:

xcoord=avenue;
for(int i=0;i<count;i++)

@The-Quill
The-Quill / disapprovalface.user.js
Last active February 5, 2016 01:20
Disapproval Face disapproves your content
// ==UserScript==
// @name ಠ_ಠ
// @namespace https://gist.github.com/The-Quill/4682157263765d71c7e3
// @updateURL https://gist.github.com/The-Quill/4682157263765d71c7e3/raw/4b972e34ef4fb3f000ac9dae3aa92068b123664e/disapprovalface.user.js
// @downloadURL https://gist.github.com/The-Quill/4682157263765d71c7e3/raw/4b972e34ef4fb3f000ac9dae3aa92068b123664e/disapprovalface.user.js
// @version 3.0
// @description ಠ_ಠ
// @author Quill
// @match *://*/*
// ==/UserScript==
@The-Quill
The-Quill / mutation_observers.js
Last active January 13, 2016 11:23
Mutation Observers
var messages = document.getElementsByClassName("messages");
var ChatObserver = new MutationObserver(function(data){
console.log(data);
ReplaceText(messages[messages.length]);
});
ChatObserver.observe(document.getElementById("chat"), {childList: true, attributes: true, characterData: true});