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
{ | |
"draw_white_space": "all", | |
"font": "monospace", | |
"font_size": 11, | |
"translate_tabs_to_spaces": true, | |
"vintage_start_in_command_mode": true, | |
"vintage_ctrl_keys": true, | |
"color_scheme": "Packages/Color Scheme - Default/Pastels on Dark.tmTheme" | |
} |
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
def third(third_css, n): | |
print third_css, n | |
def second(q, third_p, third_css=''): | |
print q | |
third(third_css, **third_p) | |
return q | |
def first(a, b, second_p, d): |
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
Company 123 | |
Sales One | |
Account Two | |
------- | |
Company 456 | |
Sales Er | |
Account zxcv | |
------- | |
Company 33 | |
Sales CVC |
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
(def seq-zip | |
(fn [tree] | |
{:here tree | |
:parents '() | |
:lefts '() | |
:rights '()})) | |
(def zdown | |
(fn [zipper] (if (empty? (:here zipper)) | |
nil |
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
<html> | |
<head> | |
<title>Flickr search demo</title> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<style> | |
.gallery__item { | |
float: left; | |
height: 100; | |
list-style: none; | |
}; |
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
<html> | |
<head> | |
<script type='text/javascript' id='lt_ws' src='http://localhost:51068/socket.io/lighttable/ws.js'></script> | |
<script src='build/JSXTransformer.js'></script> | |
<script src='build/react.js'></script> | |
<style> | |
.bars { | |
width: 400px; | |
height: 200px; |
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
(ns lt.plugins.user | |
(:require [clojure.string :as string] | |
[lt.object :as object] | |
[lt.objs.tabs :as tabs] | |
[lt.objs.command :as cmd]) | |
(:require-macros [lt.macros :refer [defui behavior]])) | |
(defui react-panel [this] | |
[:h1 {:id "app-root"} "React + LightTable!"]) |
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
(ns example | |
(:require [clojure.data.json :as json] | |
[clojure.string :as string])) | |
(defn descriptions [repos] | |
(map (fn [html-repo] (let [ | |
api-repo (string/replace html-repo #"github.com" "api.github.com/repos") | |
json-resp (json/read-str (slurp api-repo) | |
:key-fn keyword) | |
name (:name json-resp) |
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
import Rx from 'rx'; | |
Rx.config.longStackSupport = true; | |
function firstFx(n){ | |
const a = function (stream, bus) { | |
return Rx.Observable | |
.fromPromise( | |
new Promise((resolve) => setTimeout(() => resolve(n + a.label), 1000)) | |
) |