SReject

SReject

Joined:
Jun 20, 2011
Location:
Erwin, TN
Website:

Activity Stream

SReject   -  Apr 24, 2013
@Hawkee what are the top 10 most viewed projects/code snippets on hawkee? Since hawkee started, for the last year, and for the last month?
SReject commented on a Snippet, PHP Countup timer for MIRC (start from any date and time)  -  Feb 03, 2013
If im not mistaken you can just use

Code

 
SReject   -  Jan 26, 2013
So everyone, to get a little discussion going, what is everyone's most favorite snippet of code. Doesn't matter the language or it's functionality. Just what is everyone's favored code snippet.

To start, I guess I should tell mine. It's in javascript, and it's not so much a snippet but a technique. Personally, I don't like having many variables that are only used once then never touched again, so I do something of the following:

Code

 


I like this for a few reasons. The first being the single call to getValues(). the 2nd being that there isn't a "touched-once" variable
SReject   -  Jan 21, 2013
@Hawkee the thread/comment system is quite cumbersome to navigate in my opinion, threads are ordered descending in the order of creation(?) and collapsed and then we have comments to those threads that are collapsed... And then when we get a notice, on those threads/comments, it takes us to our notice page, which then takes us to the 'snippet'(for this example) but does expand the thread/comment that the 'notice' occured on
SReject commented on a Snippet, Image Viewer / Opener  -  Jan 20, 2013
A few things I've spotted real quick
1: why is the 7 escaped in your regex @ gopher)\72
2: HTTPS, FTP and gopher, afaik, is a competely different protocol from http, meaning the GET ... Host: headers are invalidly used.
3: Instead of coding the 'redirect' for puu.sh, why not just have your sockets follow redirects?
SReject   -  Jan 04, 2013
@Hawkee I don't really like the newest to oldest comment order you've implemented. I know it makes getting to the new comments easier but makes reading conversations a bit difficult
SReject commented on an Image, Updated Amazed-iRc  -  Dec 08, 2012
as for timestamps I use dd/mm/yy@HH:nn:ss with my personal client
 Respond  
SReject commented on a Snippet, RoCanvas  -  Nov 28, 2012
To reproduce ProIcon's bug:

1: Draw a few random shapes
2: Select the filled-circle tool
3: Click the center of the canvas and hold
4: While holding the mouse down make the circle huge then small again
5: Notice that when shrinking the circle-size, what would have been under it is erased


Now on to my suggestions:
JSlint your code: I know it's a hassle, but it really does make reading code easier.

You can use '<tag class="something">' instead of having to escape double quotes. Another way to make things easier to read
 Respond  
SReject commented on a mIRC Script, 2448Script  -  Nov 28, 2012
Anything that has an execute in a zip file can *NOT* be good
 Respond  
SReject commented on a Snippet, Javascript Objects built atop other Object Constructors  -  Nov 15, 2012
CoffeeScript isn't a new language. New syntax, but when 'compiled' it's source is transcoded into javascript
 Respond  
SReject commented on a Snippet, Javascript Objects built atop other Object Constructors  -  Nov 15, 2012
Won't get any from me. Im an old fashion JS programmer
 Respond  
SReject commented on a Snippet, Javascript Objects built atop other Object Constructors  -  Nov 13, 2012
Fixed a few typos in the code.
 Respond  
SReject   -  Nov 12, 2012
Added a snippet that mimics, for javascript, more OOP Languages 'class childClass extends baseClass' functionality... What are you all doing?
SReject commented on a Snippet, mIRC Spelling & Grammar Check   -  Oct 17, 2012
@XPiRX I'm thinking this is due to mIRC being unicode though I haven't coded mIRC in many months.
 Respond  
SReject commented on a Snippet, Random Colored Text  -  Aug 25, 2012
@Mr.MaSTeR Should always use the 2 digit form, just in case :)
 Respond  
SReject   -  Aug 08, 2012
Q: Im looking for a specific site. Its sort of a forum based type deal, where logical/prgramming questions are asked. You can solve the questions with any method you wish so long as you come up with the correct answer.
SReject commented on a Snippet, Random Colored Text  -  Jul 21, 2012

Code

 
 Respond  
SReject   -  Jul 20, 2012
@Hawkee Would it be possible to clear notifications for comments/likes if we view the post from either our "Home" and/or "Explore" feed?
SReject liked a Snippet, (AHK) Enable Any Window/Button You Click On  -  Jul 07, 2012
SReject commented on a Snippet, (AHK) Enable Any Window/Button You Click On  -  Jul 07, 2012
Well, Started looking through posts just to see what I could find, and a gem in a big pile of shoot is what this is. I do a bit of AHK coding myself and have something similar to this. Though your's is quite a bit cleaner than mine.

10/10 great work :)
 Respond  
SReject commented on an Image, NECRONOMICON 8 - Part 24  -  Jun 27, 2012
I wasn't degrading him. Just trying to give the man some insight is all. :)
 Respond  
SReject commented on an Image, NECRONOMICON 8 - Part 24  -  Jun 27, 2012
I'm not trying to troll you; just giving some constructive critism.

It's ugly:
For starters the colors aren't pleasing to the eye; they clash. If you want a light theme, use more pastel colors for the background. if you want a dark theme, go the opposite. As of right now, the colors make everything hard to see.

It's cluttered. It seems like you stuck everything where ever you had room. I'd suggest dividing it up a bit. Maybe tabs or menus. Right now there's no direction or unity between the elements.

It's unclear what each element is/does. What does each box under transparency do and what does it apply to?
 Respond  
SReject commented on a Snippet, Strong Password Generator  -  Jun 25, 2012
if it didn't have the ()'s I'd've stuffed it all in the regex :P
 Respond  
SReject   -  Jun 25, 2012
So I had this great idea to go through and start commenting when I see bad code.... then I realized I was commenting on my own scripts :(
 Respond  
SReject commented on a Snippet, Strong Password Generator  -  Jun 25, 2012

Code

 
 Respond  
SReject   -  Jun 25, 2012
@Hawkee Just a suggestion. for the code tags, maybe add in a few language-specific syntax highlighters to the code bbc, to be used as such: [ code=languageHere]...[/code ]
SReject is now following MaSOuD  -  Jun 03, 2012
SReject commented on a Snippet, Binary to integer  -  Jun 03, 2012
Well now ya know :D
 Respond  
SReject commented on a Snippet, Binary to integer  -  Jun 01, 2012
miRC already has this built in: $base()

The basics:
$base(input,baseIn,baseOut)
input -> number representation to be converted
baseIn -> the base of the input (2 for binary, 8 for octal, 10 for decimal, 16 for hex, but can be any base)
baseOut -> the base to convert 2 (2 for binary, 8 for octal,...)

Example:
Binary to Decimal: $base(10,2,10) = 2
Octal to Decimal: $base(10,8,10) = 8
Hex to Decimal: $base(10,16,10) = 16
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.