-
Indent with two spaces. This is very nearly universally accepted among Rubyists.
-
Never rescue
Exception. (See http://technomancy.us/114 for details.) Don't rescueStandardError(without conditionally re-raising it) unless you have a really good reason. Doing this
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
| ּ_בּ | |
| בּ_בּ | |
| טּ_טּ | |
| כּ‗כּ | |
| לּ_לּ | |
| מּ_מּ | |
| סּ_סּ | |
| תּ_תּ | |
| ٩(×̯×)۶ | |
| ٩(̾●̮̮̃̾•̃̾)۶ |
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 'fog' | |
| compute = Fog::Compute.new(:provider => 'VirtualBox') | |
| server = compute.servers.create(:name => 'lucid', :os => 'Ubuntu') | |
| medium = compute.mediums.create(:device_type => :hard_disk, :location => '/Users/geemus/geemus/virtualbox_poc/lucid.vmdk', :read_only => false) | |
| storage_controller = server.storage_controllers.create(:bus => :sata, :name => 'sata') | |
| storage_controller.attach(medium, 0) |
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 pallet.aether | |
| "Wrapper for aether resolution | |
| See: | |
| https://docs.sonatype.org/display/AETHER/Home" | |
| (:require | |
| [clojure.java.io :as io] | |
| [clojure.contrib.logging :as logging]) | |
| (import | |
| org.apache.maven.repository.internal.MavenRepositorySystemSession |
TODO empty arrays and/or nil values (see apps:info)
- Use full sentences, including punctuation.
- Labels should be provided where needed in the form of 'Labels labels:'.
- Commands should have one newline between the header and body and another after the body.
- Alpha-sort arrays before display and display labeled data in alpha-sorted key order.
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 pom2proj | |
| (:require [clojure.xml :as xml] | |
| [clojure.zip :as zip] | |
| [clojure.java.io :as io] | |
| [clojure.data.zip.xml :as zx]) | |
| (:use [clojure.pprint :only [pprint]])) | |
| (defn- text-attrs | |
| [loc ks] | |
| (map (fn [k] |
NONDISCLAIMER: I am not being paid by any of the establishments below. I am acquainted with the proprietors of Good Karma and Single Barrel but that doesn't make them bad people nor does it decrease the phenomenality of their wares.
Clojure/west is only feeding us lunch on Friday. That leaves us to our own devices for Friday's dinner, after-after-party drinks, Saturday's lunch, dinner, and drinks.
Furthermore, Clojure/west's website lists the official guide from the city of San Jose, which includes a lot of duds and places far away from the conference
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
| ;; It all started here: http://clojure-log.n01se.net/date/2011-04-06.html#19:04 | |
| (#((% (+(*))) %) ;; call arg 1 with all args | |
| [;; data | |
| (+ (*)(*)(*)(*)(*)(*)(*)) | |
| ;; main fn -- simulate 'if' with map lookup and closures | |
| #(({(+) (% (+(*)(*)))} ;; if zero return 'then' clause | |
| (% (+)) ;; dispatch on first arg | |
| (% (+(*)(*)(*)))) ;; call 'else' clause (n not found in map) | |
| %) |
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
| -- $Id: utf8.lua 179 2009-04-03 18:10:03Z pasta $ | |
| -- | |
| -- Provides UTF-8 aware string functions implemented in pure lua: | |
| -- * string.utf8len(s) | |
| -- * string.utf8sub(s, i, j) | |
| -- * string.utf8reverse(s) | |
| -- * string.utf8char(unicode) | |
| -- * string.utf8unicode(s, i, j) | |
| -- * string.utf8gensub(s, sub_len) | |
| -- |
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
| # Parse Erlang Crash Dumps and correlate mailbox size to the currently running | |
| # function. | |
| # | |
| # Once in the procs section of the dump, all processes are displayed with | |
| # =proc:<0.M.N> followed by a list of their attributes, which include the | |
| # message queue length and the program counter (what code is currently | |
| # executing). | |
| BEGIN { | |
| threshold = 10000 # mailbox size | |
| procs = 0 # are we in the =procs entries? |
OlderNewer