Organize resources into sections
- The Toolbox
- JSFiddle
- Field Guide to Web Applications - by Google
- GitHub Buttons
- FormBakery: create forms by drag and drop
- Zurb Foundation
- Twitter Bootstrap
(defn message-map [msg1] | |
(reify | |
clojure.lang.IDeref | |
(deref [] msg1) | |
clojure.lang.IKeywordLookup | |
(getLookupThunk [k] | |
(let [getter (->> (name k) | |
(replace-by #"(?:^|-)(.)" #(.toUpperCase (nth % 1))) | |
(str "get") | |
symbol) |
(defmacro with-ssh-tunnel-> | |
"Execute the body with an ssh-tunnel available for the ports given in the | |
tunnels map. tunnels should be a map from local ports (integers) to either | |
1) An integer remote port. Remote host is assumed to be 'localhost'. | |
2) A vector of remote host and remote port. eg, [\"yahoo.com\" 80]. | |
Automatically closes the connection (and port forwards) on completion." | |
[request tunnels & body] | |
`(clj-ssh/with-ssh-agent [(execute/default-agent)] | |
(let [user# (:user ~request) | |
node-address# (compute/node-address (:target-node ~request)) |
typedef JsonObj = { | |
glossary:Glossary, | |
} | |
typedef Glossary = { | |
title:String, | |
GlossDiv:GlossDiv, | |
} | |
typedef GlossDiv = { |
; Copyright (c) Daniel Kwiecinski. All rights reserved. | |
; The use and distribution terms for this software are covered by the | |
; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) | |
; which can be found in the file epl-v10.html at the root of this distribution. | |
; By using this software in any fashion, you are agreeing to be bound by | |
; the terms of this license. | |
; You must not remove this notice, or any other, from this software. | |
; | |
; Example of extending native Java array types to Clojure protocols |
MongoDB upstart scripts for Ubuntu. | |
Run following commands after installing upstart scripts: | |
ln -s /lib/init/upstart-job /etc/init.d/mongoconf | |
ln -s /lib/init/upstart-job /etc/init.d/mongodb | |
ln -s /lib/init/upstart-job /etc/init.d/mongos | |
To start services use: |
[ | |
{name: 'Afghanistan', code: 'AF'}, | |
{name: 'Åland Islands', code: 'AX'}, | |
{name: 'Albania', code: 'AL'}, | |
{name: 'Algeria', code: 'DZ'}, | |
{name: 'American Samoa', code: 'AS'}, | |
{name: 'AndorrA', code: 'AD'}, | |
{name: 'Angola', code: 'AO'}, | |
{name: 'Anguilla', code: 'AI'}, | |
{name: 'Antarctica', code: 'AQ'}, |
// ©2012 Viktor Klang | |
package akka.klang | |
import akka.dispatch.{ DispatcherPrerequisites, ExecutorServiceFactory, ExecutorServiceConfigurator } | |
import com.typesafe.config.Config | |
import java.util.concurrent.{ ExecutorService, AbstractExecutorService, ThreadFactory, TimeUnit } | |
import java.util.Collections | |
import javax.swing.SwingUtilities |
Organize resources into sections
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
class Main { | |
static function main() { | |
MyMacro.testReify(); | |
} | |
} |