start new:
tmux
start new with session name:
tmux new -s myname
groupBy('source) { | |
_.sortBy('links) | |
.reverse | |
.mapStream[(String,Int), (String, Int, Int, Int)] | |
(('destination, 'links) -> ('destination, 'links, 'rank, 'gap)) { destLinks => | |
destLinks.scanLeft(None: Option[(String, Int, Int, Int)]) { | |
(prevRowOut: Option[(String,Int,Int,Int)], thisRow: (String, Int)) => | |
val (dest, links) = thisRow | |
prevRowOut match { | |
case None => Some((dest, links, 1, 0)) // rank 1, gap 0 -- not exactly what you wanted... |
angular.module('d3AngularApp', ['d3']) | |
.directive('d3Bars', ['$window', '$timeout', 'd3Service', | |
function($window, $timeout, d3Service) { | |
return { | |
restrict: 'A', | |
scope: { | |
data: '=', | |
label: '@', | |
onClick: '&' | |
}, |
function youtube(){ | |
// Setup OAuthServiceConfig | |
var oAuthConfig = UrlFetchApp.addOAuthService("youtube"); | |
oAuthConfig.setAccessTokenUrl("https://www.google.com/accounts/OAuthGetAccessToken"); | |
oAuthConfig.setRequestTokenUrl("https://www.google.com/accounts/OAuthGetRequestToken?scope=http%3A%2F%2Fgdata.youtube.com%2F"); | |
oAuthConfig.setAuthorizationUrl("https://www.google.com/accounts/OAuthAuthorizeToken"); | |
oAuthConfig.setConsumerKey("anonymous"); | |
oAuthConfig.setConsumerSecret("anonymous"); | |
// Setup optional parameters to point request at OAuthConfigService. The "twitter" |