Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sharkbrainguy
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
sharkbrainguy
16y ago
My impression is that they simply have a free-er hand, and the absence of external restraint doesn't always lead to better work.
32.
▲
by
sharkbrainguy
16y ago
> emacs is ridicously bad at editing text. The thing is I can't imagine thinking that, unless I was coming from vim. Coming from any other style of "editor", I would think the text editing capabilities of emacs were really good. Of cou
33.
▲
by
sharkbrainguy
16y ago
http://paul.graham.usesthis.com/ I use vim for so many other things that I find it tricky to switch unless I'm going to be writing lisp for the rest of the day. I do miss paredit mode...
34.
▲
by
sharkbrainguy
16y ago
It sounds like you're not using a javascript debugger (or rather rolling your own). If that's the case I'd encourage you to familiarize yourself with some, firebug/the Chrome Inspector/IE + VS/whatever
35.
▲
by
sharkbrainguy
16y ago
Unless you're actually really hot, surely.
36.
▲
by
sharkbrainguy
16y ago
Wouldn't it be more useful to compare the gzipped size? Isn't that how it would most often be delivered? That 430 bytes string becomes 222 bytes and RaphaelJS becomes just under 20k.
37.
▲
by
sharkbrainguy
16y ago
It's in the SVG path data format. Inkscape, Illustrator etc. will export it. http://raphaeljs.com/reference.html#path http://www.w3.org/TR/SVG/paths.html#PathData
38.
▲
by
sharkbrainguy
16y ago
1. Get the path string for an icon from the page 2. paste it into this template (taken from the same page) http://gist.github.com/432341 3. save it with the .svg extension 4. open it in inkscape http://www.inkscape.org/ (or probably ill
39.
▲
by
sharkbrainguy
16y ago
To minimize requests you can run a service that batch deshortens urls. Like the little scheme servlet (70 LOC) I'm using to deshorten urls for my JS twitter client. the source: http://github.com/sharkbrainguy/deshorten an example: http:/
40.
▲
by
sharkbrainguy
16y ago
underscore.js provides alot of functional (not lazy) tools with solid performance. http://documentcloud.github.com/underscore/ Check out the benchmarks: http://documentcloud.github.com/underscore/test/test.html
41.
▲
by
sharkbrainguy
16y ago
Just quietly, I've written a library that provides lazy sequences as MooTools Classes if anyone is that way inclined. http://github.com/sharkbrainguy/sequences.js Some basic examples: http://jsfiddle.net/Zh7pR/ It does suffer from the w
42.
▲
by
sharkbrainguy
16y ago
Genius concept. Wish I could use it, outside of the US.
43.
▲
by
sharkbrainguy
16y ago
You can switch to xAuth, if you don't want to mess with oauth. It's somewhere in the middle between basic and o http://dev.twitter.com/pages/auth#browser-less-apps
44.
▲
by
sharkbrainguy
16y ago
css-tidy does a few different formats. You could alias a couple of different sets of options to e.g. `css-compress` and `css-expand` and just pipe your buffer through them.
45.
▲
by
sharkbrainguy
17y ago
why write such a general case, YAGNI
46.
▲
by
sharkbrainguy
17y ago
I found this really handy (from PLT scheme) http://github.com/toyvo/libpandoc "a build configuration for Pandoc that produces a standalone C-callable system library"
47.
▲
by
sharkbrainguy
17y ago
http://www.dilbert.com/fast/2009-11-17/ A link to the minimal version of the site (no flash etc.)
48.
▲
by
sharkbrainguy
17y ago
You can use trampolines in dumber languages too, so that mutual recursion without stack consumption is possible in for e.g. Javascript. http://pastebin.com/m73e36bfc
49.
▲
by
sharkbrainguy
17y ago
or perhaps it's more accurate to say that they are the pound of cure that an ounce of prevention obviates.
50.
▲
by
sharkbrainguy
17y ago
That sure does look like a link though...
51.
▲
by
sharkbrainguy
17y ago
That "people either love or hate x " is almost always a myth created by vocal minorities. e.g. I enjoy marmite but I don't _love_ it Also consider the following: - that most people dislike it the first time (i.e. it's an acquired taste) -
52.
▲
by
sharkbrainguy
17y ago
I accidentally downvoted this...
53.
▲
by
sharkbrainguy
17y ago
you should get an email very quickly if you got it right
54.
▲
by
sharkbrainguy
17y ago
var round = function(number){ var binary = number.toString(2); var hex = number.toString(16); var R = function(str){ return /^10*$/.test(str); }; return R(binary) && R(hex); }; That
55.
▲
by
sharkbrainguy
17y ago
yeah, work is getting in the way of my solution too...
56.
▲
by
sharkbrainguy
17y ago
This one annoyed me so here's a hint to what I was doing "wrong". http://pastie.org/531585
57.
▲
by
sharkbrainguy
17y ago
the graphviz suite (in particular dot) is pretty easy to use and produces decent results
58.
▲
by
sharkbrainguy
17y ago
also, aren't the parens redundant?
59.
▲
by
sharkbrainguy
17y ago
you don't like js2-mode? With mozrepl integration? I really like them... (although at the moment I'm using vim mostly for javascript just for the raw vim comfort)
60.
▲
by
sharkbrainguy
17y ago
it's built on plt-scheme so Tail Calls are optimised
More ›