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
| runtime: nodejs | |
| api_version: 1 | |
| vm: true | |
| env_variables: | |
| PORT: 8080 | |
| MEMCACHE_URL: memcache:11211 |
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
| (defn upload! [owner] | |
| (let [form (om/get-node owner "upload-form") | |
| io (goog.net.IframeIo.)] | |
| (goog.events.listen | |
| io goog.net.EventType.COMPLETE #(js/console.log "COMPLETE")) | |
| (goog.events.listen | |
| io goog.net.EventType.SUCCESS (fn [_] | |
| (put! | |
| (om/get-state owner :reset-file-drop) | |
| true) |
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
| <link rel="import" href="../polymer/polymer.html"> | |
| <link rel="import" href="../core-ajax/core-ajax.html"> | |
| <dom-module id="x-ajax-text"> | |
| <!-- We bind the core-ajax `lastResponse` to the `content` property. This | |
| property is not actually published by `x-ajax-text`, but because it is | |
| specified in the template it will be bindable elsewhere in the template --> | |
| <core-ajax id="ajax" url="./content.txt" last-response="{{content}}" auto></core-ajax> | |
| <!-- Here we bind `content` in another place, which will be effectively | |
| equivalent to binding `this.$.ajax.lastResponse`. --> |
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
| diff --git a/plugin/fireplace.vim b/plugin/fireplace.vim | |
| index 6c32caa..a415bf8 100644 | |
| --- a/plugin/fireplace.vim | |
| +++ b/plugin/fireplace.vim | |
| @@ -232,7 +232,9 @@ function! s:repl.piggieback(arg, ...) abort | |
| else | |
| let arg = ' :repl-env ' . a:arg | |
| endif | |
| - let response = connection.eval('(cemerick.piggieback/cljs-repl'.arg.')') | |
| + "let response = connection.eval('(cemerick.piggieback/cljs-repl'.arg.')') |
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
| (ns todo-server.core | |
| (:require | |
| [cljs.nodejs :as nodejs] | |
| [figwheel.client :as fw])) | |
| (nodejs/enable-util-print!) | |
| (defonce express (nodejs/require "express")) | |
| (defonce serve-static (nodejs/require "serve-static")) | |
| (defonce http (nodejs/require "http")) |
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 main | |
| import ( | |
| "fmt" | |
| "github.com/codegangsta/negroni" | |
| "github.com/gorilla/mux" | |
| "log" | |
| "net/http" | |
| ) |
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 main | |
| import ( | |
| "log" | |
| r "github.com/dancannon/gorethink" | |
| "github.com/davecgh/go-spew/spew" | |
| ) | |
| type Blah struct { |
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 main | |
| import ( | |
| "log" | |
| "strings" | |
| r "github.com/dancannon/gorethink" | |
| ) | |
| func CreateDatabaseIfNotExists(sess *r.Session, dName string) error { |
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 main | |
| import ( | |
| "github.com/codegangsta/negroni" | |
| "github.com/gorilla/mux" | |
| ) | |
| func main() { | |
| router := mux.NewRouter() | |
| apiV1 := router.PathPrefix("/api/v1").Subrouter() |
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
| require 'open-uri' | |
| require 'zlib' | |
| require 'yajl' | |
| # References | |
| # - https://developers.google.com/bigquery/preparing-data-for-bigquery#dataformats | |
| # - https://developers.google.com/bigquery/docs/data#nested | |
| # | |
| def type(t) |