2,770 karma · joined September 11, 2009
Founder, Keygraph https://keygraph.io/ We build AI pentesting software.
Check out our open source AI pentester, Shannon (47k+ stars): https://github.com/KeygraphHQ/shannon
Those random references I made, including playing football in the void decks, are just part of the collective Singaporean experience that has made the country as it is. All were due to the various policies crafted by LKY and his team.
Look, by the time I cared about politics or even had voted for the first time, the GREAT LEADER had already retired and was a shadow of his former self.
Having criss-crossed the globe and now running a startup that has offices in three (very) different countries, I have come to appreciate and admire the man and his vision.
I am not trying to make the man a saint. He had his flaws and there are many policies I strongly disagree with. However at the end of the day, a man's genius is measured by the number of goals he scored, subtracting off his own-goals. And his score runs pretty high.
Just to make myself clear, it's not reverence. It's respect.
[Source: I'm Singaporean]
I'm Singaporean (though currently based in San Francisco) and identify myself as a supporter of the PAP.
I am currently traveling, and unfortunately got hold of LKY's passing a little late (though I had been following his health the past few days) and still feeling a little shell-shocked. I am personally very disappointed at all the comments on HN - most of them drowned out by expats and armchair political scientists.
Well if you had grown up in Singapore, read it's history, lived in HDB flats, recited the pledge and national anthem every goddamn day in school, played football at the void decks, served in the army, you will come to realize what a genius LKY was.
It's nice to see a message from a Singaporean from the other side.
Source: http://blogs.wsj.com/digits/2014/07/16/newest-hit-game-maker...
It's been a lifesaver at my startup, especially when we are running many different (micro)services.
If history serves right, I am predicting Carlsen will lose the throne to Caruana in 2016!
Anyways, fantastic execution! Great visualization. My only super-minor complaint is the fade in/fade out could be a little less abrupt when the songs change :)
Artur Avila - A Brazilian Wunderkind Who Calms Chaos http://www.simonsfoundation.org/quanta/20140812-a-brazilian-...
Manjul Bhargava - The Musical, Magical Number Theorist http://www.simonsfoundation.org/quanta/20140812-the-musical-...
Martin Hairer - In Noisy Equations, One Who Heard Music http://www.simonsfoundation.org/quanta/20140808-in-mathemati...
Maryam Mirzakhani - A Tenacious Explorer of Abstract Surfaces http://www.simonsfoundation.org/quanta/20140812-a-tenacious-...
Subhash Khot - A Grand Vision for the Impossible http://www.simonsfoundation.org/quanta/20140812-a-grand-visi...
This will work:
perl -e 'my $host = "http://2048.semantics3.com/hi/";my $cmd = "curl --silent -L $host"."start";my $output = `$cmd`;my $session_id = $output;$session_id=~s/.*?ID:\s(\w+).*/$1/si;my %keyMap = ( 'w' => 0, 'd' => 1, 's' => 2, 'a' => 3);print STDERR $output,"\n";while(1) { print STDERR "Input (w - up, a - left, d - right, s - down):\n"; my $userInput = <STDIN>; chomp ($userInput); if(defined($keyMap{$userInput})) { $userInput = $keyMap{$userInput}; } else { print STDERR "Invalid move.. w - up, a - left, d - right, s - down\n"; next; } my $cmd = "curl --silent $host"."state/$session_id/move/$userInput"; my $output = `$cmd`; print STDERR "\n$output\n"; if($output=~/Message:/si) { exit(0); }}'Do also checkout our demo showcase app built using the 2048-as-a-service API:
2048 - Startup Growth Edition (MVP) - http://2048.semantics3.com/2048.html
Type curl -L http://2048.semantics3.com/hi/start to get started. Here is a full example on how to play it:
https://github.com/Semantics3/2048-as-a-service#full-example...
If you want a full game on the console:
perl -e 'my $host = "http://2048.semantics3.com/hi/";my $cmd = "curl --silent -L $host"."start";my $output = `$cmd`;my $session_id = $output;$session_id=~s/.*?ID:\s(\w+).*/$1/si;my %keyMap = ( 'w' => 0, 'd' => 1, 's' => 2, 'a' => 3);print STDERR $output,"\n";while(1) { print STDERR "Input (w - up, a - left, d - right, s - down):\n"; my $userInput = <STDIN>; chomp ($userInput); if(defined($keyMap{$userInput})) { $userInput = $keyMap{$userInput}; } else { print STDERR "Invalid move.. w - up, a - left, d - right, s - down\n"; next; } my $cmd = "curl --silent $host"."state/$session_id/move/$userInput"; my $output = `$cmd`; print STDERR "\n$output\n"; if($output=~/Message:/si) { exit(0); }}'Higgs is of 'Higgs Boson' fame and recent Nobel laureate :)
Additional discussion: https://news.ycombinator.com/item?id=6788969