This file contains hidden or 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
| Hi | |
| World! | |
| Universe! | |
| {"name":"tim"} |
This file contains hidden or 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
| List<Vertex> responses = ... list of 8 responses ... | |
| // Collect all the concepts for all of the responses along with the responses that mention each concept. | |
| final Map m = [:] | |
| final List<Vertex> concepts = responses._().bagConcepts(m, 1L, 1) { [it, it.in(S.EDGE_MENTIONS).toList()] }.toList() | |
| // Even if each response mentions the same 100 concepts, that should only be 800 vertices tops, I would think... |
This file contains hidden or 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
| { | |
| "discussionId": "1009120297", | |
| "title": "does this work", | |
| "rawTitle": "does this work", | |
| "prompt": "please discuss", | |
| "rawPrompt": "please discuss", | |
| "responses": [ | |
| { | |
| "responseId": "4000000001803", | |
| "authorId": "17197812", |
This file contains hidden or 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/bash | |
| if [ "$#" != "1" ] | |
| then | |
| echo "usage: newscript NAME" 1>&2 | |
| exit 1 | |
| fi | |
| script_name=$1 |
This file contains hidden or 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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| # All Vagrant configuration is done here. The most common configuration | |
| # options are documented and commented below. For a complete reference, | |
| # please see the online documentation at vagrantup.com. |
This file contains hidden or 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/bash | |
| # where to put the mirrored documents | |
| base_dir=~/docs | |
| # the name of the master index file | |
| master_index=${base_dir}/index.html | |
| # download a single compressed archive and extract it to the current | |
| # directory |
This file contains hidden or 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
| ;;;; Tim Stewart's Emacs dotfile | |
| ;;;; focused on Java/Scala development | |
| ;;; All that cool Emacs chrome? Get rid of it... | |
| (menu-bar-mode -1) | |
| (tool-bar-mode -1) | |
| (scroll-bar-mode -1) | |
| ;;; Theme Setup | |
| (add-to-list 'custom-theme-load-path "~/.emacs.d/themes/") |
This file contains hidden or 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/bash | |
| ctags-exuberant -e -o TAGS -R |
This file contains hidden or 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/bash | |
| # | |
| # overview -- searches through all Java, Python, and Scala files in the current | |
| # directory and all subdirectories and lists some basic stats about | |
| # each file | |
| if [ "$1" == "--help" ] | |
| then | |
| cat <<-HERE >&2 | |
| usage: overview [--help] |
This file contains hidden or 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 com.timjstewart | |
| import scala.concurrent._ | |
| import rx.lang.scala._ | |
| object Main extends App { | |
| override def main(args: Array[String]): Unit = { | |
| def observable(n: Int) = Observable[Int] { |