This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Map<Positon, Long> positionProb; | |
List<Position> finalReachableCells; | |
List<Position> visitedCells; | |
/** | |
* Class to represent the positon | |
*/ | |
class Positon { | |
int x; | |
int y; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"sync") | |
func printEvenNumbers(ch chan int){ | |
for i:=2; i<=45; i=i+2 { | |
ch<-i; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env node | |
/** | |
* This scripts check of the existence of gender pronouns | |
* and aborts the commit if any of them are found | |
* | |
* Don't consider it as silly, because its really 'NOT!'. | |
* One of the core contributor of libuv had to depart since didn't | |
* accept a PR related to gender pronoun fix, so think | |
* carefully before using gender pronouns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function() { | |
if(!window.your_bookmarklet) { | |
var doc = document, | |
js = doc.createElement('script'); | |
js.type = 'text/javascript'; | |
js.src = 'loader.js'; | |
js.async = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Description | |
This will be a REPL where user can query for twitter content within node REPL. | |
End result will be like this.. | |
node twitter-repl | |
# Will get into REPL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getInstrumentedFn(fn){ | |
return new Proxy(fn, { | |
apply: function(target, that, args){ | |
//get the function name | |
var fName = fn.name || ('random function_' + parseInt(Math.random() * 1000)); | |
//mark the starting of function. | |
performance.mark(fName + '_start'); | |
var returnValue = fn.apply(that, args); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<span class="custom-select"> | |
<span class="header">Recipient:</span> | |
<span class="option" data-option="normal">Normal</span> | |
<ul class="dropdown"> | |
<li data-option="all">All: Email everyone</li> | |
<li data-option="normal">Normal: Everyone except pre-existing low traffic subscribers</li> | |
<li data-option="none">None: Do not email anyone</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://yearofmoo.com | |
http://thinkster.io | |
http://egghead.io | |
http://scotch.io/tag/angular-js | |
https://github.com/jmcunningham/AngularJS-Learning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Agenda for the ngHyderabad meetup on 20140308 | |
================================================ | |
1. Introduction to modern web applications | |
* Current web stacks (ASP/JSP/Servlet) | |
* Bottleneck and scaling concerns with the existing stack | |
2. Overview of components of MEAN stack | |
* Explanation of each component of MEAN | |
* Advantages of having a single language stack | |
* Need for the API only servers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTML5 has growing base of ~30 APIs of which below are very important and widely actively within the community. | |
Application cache | |
History API | |
FullScreen API | |
Page visibility API | |
WebRTC | |
Media API | |
Drag and Drop | |
User Interaction |
NewerOlder