This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
(defvar *total-points* nil) | |
(defvar *hist-array* nil) | |
(defun record-value (n) | |
(if (or (> n 10) | |
(< n 0)) | |
(break "The supplied argument is not between 0 and 10")) | |
(setf (aref *hist-array* n) (+ 1 (aref *hist-array* n))) | |
(setf *total-points* (+ 1 *total-points*))) |
(generate-api-documentation | |
:base "http://api.test.com" | |
:title "API Documentaition for TEST" | |
:author "fuzzyalej" | |
(with-endpoint "/book" | |
:method "GET" | |
:description "This will fetch a book from the database" | |
(parameters | |
(id | |
:type "String" |
I have a lot of people at Hacker Hours ask about where to look for jobs - here are some places I recommend.
Say you have a repo structured by features, issues, etc:
fuzzyalej@MightyPirate:~/code/supersecretproject (master)$ git branch -a
develop
issue/399
* master
remotes/backup/master
remotes/origin/HEAD -> origin/master
remotes/origin/feature/234
(by @andrestaltz)
So you're curious in learning this new thing called (Functional) Reactive Programming (FRP).
Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:
Rx.Observable.prototype.flatMapLatest(selector, [thisArg])
Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.
// utils | |
var slice = Array.prototype.slice; | |
var concat = Array.prototype.concat; | |
var flatten = function(l) { return concat.apply([], l); }; | |
// really stupid DSL | |
function nodeOrTextNode(n) { | |
if (typeof(n) === "object") |
A curated list by Eric Elliott and friends. Suggest links in the gist comments.
Help us turn this into a proper website!
This is a very exclusive collection of only must-have JavaScript links. I'm only listing my favorite links. Nothing else makes the cut. Feel free to suggest links if you think they're good enough to make this list. The really curious should feel free to browse the comments to find other links. I can't guarantee the quality of links in the comments.
If you are a heavy user of thinking sphinx you might have encounter some tricky stuff that could be easily solved if you were able to actually see the indexed data.
Well, you can easily solve that now: mysql --host 127.0.0.1 --port 9306
With that, you have console access to the index database, that you can query with SphinxQL (http://sphinxsearch.com/docs/current.html#sphinxql-reference)
note: if you are using rails, the ID of the model is not id
but sphinx_internal_id
:)