Skip to content

Instantly share code, notes, and snippets.

NathanSass / rxjava2.kt
Created Dec 27, 2018
Example of a fancy zip chain
View rxjava2.kt
override fun getDocumentAndAudiobook(docId: Int): Single<AudioData.LoaderResult> {
val licenseRequest = audioApi.getLicense(docId).toObservable()
val documentRequest = documentLoaderObservable(docId)
val requests = mutableListOf(licenseRequest, documentRequest)
Function<Array<Any>, CombinedResult> {
return@Function resolve(it)
.flatMap(Function<CombinedResult, Observable<Pair<ScribdDocument, FindawayApi.PlayListResponse>>> {
val playlistRequest = audioApi.getPlaylist(
NathanSass / 0_reuse_code.js
Created Mar 11, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
NathanSass / jquery_example.html
Last active Aug 29, 2015 — forked from dbc-challenges/jquery_example.html
Intro to jQuery for Phase 0
View jquery_example.html
<!DOCTYPE html>
<title>DOM manipulation with jQuery</title>
<script src=""></script>
<script type="text/javascript" src="jquery_example.js"></script>
View 0.2.1-boggle_class_from_methods.rb
class Drawer
attr_reader :contents
# Are there any more methods needed in this class?
def initialize
@contents = []
@open = true
View Defining Variable #1
first_name = "Nathan"
last_name = "Sass"
age = 24