-
Look at the scaladoc for Option#zip.
(Option[A])([B]GenIterable[B] => Option[(A, B)]
-
Look at the Option.scala source.
> grep zip | wc -l
0
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
var gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var sass = require('gulp-sass'); | |
var lr = require('tiny-lr'); | |
var http = require('http'); | |
var path = require('path'); | |
var ecstatic = require('ecstatic'); | |
var tlr = lr(); | |
var livereload = function (evt, filepath) { | |
tlr.changed({ |
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
angular.module('ui.bootstrap.position', []) | |
/** | |
* A set of utility methods that can be use to retrieve position of DOM elements. | |
* It is meant to be used where we need to absolute-position DOM elements in | |
* relation to other, existing elements (this is the case for tooltips, popovers, | |
* typeahead suggestions etc.). | |
*/ | |
.factory('$position', ['$document', '$window', function ($document, $window) { |
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
var source = Rx.Observable.interval(100).bufferWithTimeOrCount(500 /*ms*/, 50 /* items */); | |
source.subscribe(function (arr) { | |
// Have chunked array based upon time or count, whichever hits first | |
}) |
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
private void LoadSpotTiles() | |
{ | |
_referenceDataRepository.GetCurrencyPairsStream() | |
.ObserveOn(_concurrencyService.Dispatcher) | |
.SubscribeOn(_concurrencyService.TaskPool) | |
.Subscribe( | |
currencyPairs => currencyPairs.ForEach(HandleCurrencyPairUpdate), | |
error => _log.Error("Failed to get currencies", error)); | |
} |
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
TITLE: GCN CIRCULAR | |
NUMBER: 16332 | |
SUBJECT: Swift detection of a bright X-ray source in M31 | |
DATE: 14/05/27 22:15:08 GMT | |
FROM: Scott Barthelmy at NASA/GSFC <scott@milkyway.gsfc.nasa.gov> | |
S. D. Barthelmy (GSFC), W. H. Baumgartner (GSFC/UMBC), | |
S. B. Cenko (GSFC), V. D'Elia (ASDC), D. Malesani (DARK/NBI), | |
V. Mangano (PSU), F. E. Marshall (NASA/GSFC) and | |
B. Sbarufatti (INAF-OAB/PSU) report on behalf of the Swift Team: |
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
protocol Functor { | |
typealias ElemTyIn | |
typealias ContainerTyIn | |
typealias ElemTyOut | |
typealias ContainerTyOut | |
func fmap(ElemTyIn->ElemTyOut,ContainerTyIn)->ContainerTyOut | |
} |
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
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE KindSignatures #-} | |
{-# LANGUAGE GADTs #-} | |
{-# LANGUAGE TypeFamilies #-} | |
{-# LANGUAGE TypeOperators #-} | |
{-# LANGUAGE PolyKinds #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE UndecidableInstances #-} | |
{-# LANGUAGE DeriveFunctor #-} | |
module Unique ( |
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
{-# LANGUAGE FlexibleContexts #-} | |
{-# LANGUAGE GeneralizedNewtypeDeriving #-} | |
module Main (insert, delete, lookup, runTrackedMap, main) where | |
import Prelude hiding (lookup) | |
import Control.Applicative (Applicative) | |
import Data.Set (Set) |
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/sh | |
cd /tmp/ | |
git clone --recursive https://github.com/rust-lang/cargo | |
cd cargo | |
make | |
make install | |
cd $HOME | |
rm -rf /tmp/cargo |
OlderNewer