An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
Thus, when one ant finds a good (i.e., short) path from the colony to a food source, other ants are more likely to follow that path, and positive feedback eventually leads all the ants following a single path. The idea of the ant colony algorithm is to mimic this behavior with "simulated ants" walking around the graph representing the problem to solve.
List of algorithms
--expose_js and call global.gc()
)/* | |
* Count inversions in an array using JavaScript | |
* Friday fun writing algorithms as UNREADABLE CODE WITH FEW LINEZ FTW :D::D | |
*/ | |
var array_inversions = function (A) { | |
var I = 0, | |
R = function (A) { return (A.length < 2) ? A : M(R(A.splice(0, A.length/2)), R(A)) }, | |
M = function (B, C) { | |
var D = [] |
##Google Interview Questions: Product Marketing Manager
What brings you to web development? What's your goal? What's your passion? What wakes you up in the middle of the night?
Tell me about common themes you run into working in the UI. How did you address them?
What do you do to keep up to date with technology (blogs, conferences, etc)?
The objective is to build a web-application that does some analysis of a web-page/URL.
Today I decided to clean up and organise files on windows computer at work. This process involved deleting files I no longer have use for and creating grouping the rest in folders. So I ended up with folders for audio, video, projects, ebooks, e.t.c.
One of the folders that I came across contained about 50 small mp3 files. Before deleting the files I had to play them just to make sure they didn't contain anything important. What do I know, turns out they clips of a DHH(the ROR creator) interview - please don't ask me how they got to my computer. He's quite an opinionated guy and I decided I wanted to keep the files. But 50 files? Wouldn't it be nice if I could glue them together into a single file? Well, being the hacker that I am I popped open my terminal and started writing a program.
I broke down the task to two main things.
The first thing turned out to be quite easy to do because th