Skip to content

Instantly share code, notes, and snippets.

// ==========================================================================
// Welcome
// ==========================================================================
Welcome = SC.Object.create({
// This will create the server for your application. Add any namespaces
// your model objects are defined in to the prefix array.
server: SC.Server.create({ prefix: ['Welcome'] }),
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css">
<script src="http://cmx.io/v/0.1/cmx.js" charset="utf-8"></script>
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style>
<body>
<div style="max-width:2000px; -webkit-transform:rotate(4deg)">
<scene id="scene1">
<label t="translate(0,346)">
NSURL* url = previewItemURL(node);
if (!url) {
LOG(@"unable to obtain URL for node %p", node);
return nil;
}
NSError* err = nil;
NSColor* color = nil;
if (![url getResourceValue:&color forKey:NSURLLabelColorKey error:&err]) {
LOG(@"unable to obtain NSURLLabelColorKey for url %@ (error: %@)", url, err);
return nil;
> 1. Introduce yourself
I'm a developer from BinaryAge[1]. I specialise in building software
tools. I started selling some of my apps for Macintosh and
built a business around it. The most popular apps are TotalFinder[2] and
TotalTerminal[3]. We also sell TotalSpaces[4] which is a product of
my friend and business partner Stephen Sykes. Other than programming
I'm interested in startups, entrepreneurship and Bitcoin.
> 2. From where do you work from now?
tell application "Finder"
set selected_items to selection
count of selected_items
end tell

Keybase proof

I hereby claim:

  • I am darwin on github.
  • I am darwin (https://keybase.io/darwin) on keybase.
  • I have a public key whose fingerprint is 3F6B 170D 46E7 A1A0 D670 23E6 32A8 9AA9 DDD8 C87F

To claim this, I am signing this object:

@darwin
darwin / 00-react-is-present-in-local-maven-repo
Last active August 29, 2015 14:14
I'm sorry I was confused. cljsjs/react is present (version 0.12.2-4) - HACK: https://github.com/darwin/weasel/commit/c2b5b963bcf10a7c341a4cbc8f21121d3adef6b0
~/.m2/repository/cljsjs ➔ tree .
.
└── react
├── 0.12.2-4
│   ├── _maven.repositories
│   ├── react-0.12.2-4.jar
│   ├── react-0.12.2-4.jar.sha1
│   ├── react-0.12.2-4.pom
│   └── react-0.12.2-4.pom.sha1
└── cljsjs.react
(ns cljs-devtools-sample.core
(:require [clojure.browser.repl :as repl]
[devtools.core :as dev]))
(repl/connect "http://localhost:9000/repl")
(enable-console-print!)
(println "cljs-devtools-sample")
(.log js/console "****** enable ******")
(ns devtools.core)
(defn build-header [value]
#js ["span" #js {"style" "background-color: #cfc"}, (pr-str value)])
; dirty
(defn cljs-value? [value]
(exists? (aget value "meta")))
(defn js-value? [value]
~/farm ➔ mkdir new-cljs-test
~/farm ➔ cd new-cljs-test/
~/farm/new-cljs-test ➔ git clone git@github.com:clojure/clojurescript.git
Cloning into 'clojurescript'...
remote: Counting objects: 19007, done.
remote: Compressing objects: 100% (24/24), done.
remote: Total 19007 (delta 8), reused 0 (delta 0)
Receiving objects: 100% (19007/19007), 5.56 MiB | 106.00 KiB/s, done.
Resolving deltas: 100% (8656/8656), done.
Checking connectivity... done.