I hereby claim:
- I am jxa on github.
- I am xandrews (https://keybase.io/xandrews) on keybase.
- I have a public key whose fingerprint is 1C77 913C 93DC 9D55 0730 D7C5 E0D2 D073 C529 1572
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
(ns digits.core | |
(:require | |
[clojure.string :as str] | |
[clojure.java.io :refer [resource reader]] | |
[clojure.core.reducers :as r])) | |
(defn train [reader] | |
(map (fn [line] | |
(map #(Integer/parseInt %) (str/split line #","))) |
(use 'clojure.repl) | |
(use 'clojure.java.javadoc) | |
(use '[clojure.reflect :only [reflect]]) | |
(use '[clojure.string :only [join]]) | |
(defn inspect [obj] | |
"nicer output for reflecting on an object's methods" | |
(let [reflection (reflect obj) | |
members (sort-by :name (:members reflection))] | |
(println "Class:" (.getClass obj)) |
$ node ./test.js | |
> setContext('sup', 'yo') | |
> sup | |
'yo' | |
> setContext('sup', 'what?') | |
> sup | |
'yo' | |
> |
CmdUtils.makeSearchCommand( | |
{ name: "Pollstar", | |
synonyms: ["concert", "music", "pst"], | |
url: "http://www.pollstar.com/eventSearch.aspx?SearchBy={QUERY}", | |
icon: "http://www.pollstar.com/favicon.ico", | |
description: "Searches Pollstar for shows near you, or artists on tour."}); |
(require 'anything) | |
(require 'anything-config) | |
(setq anything-sources | |
(list anything-c-source-buffers | |
anything-c-source-file-name-history | |
anything-c-source-man-pages | |
anything-c-source-emacs-commands)) | |
sudo apt-get install mysql-server | |
# drop anonymous user | |
shell> mysql -u root | |
mysql> DROP USER ''; | |
# set root passwd | |
mysql> UPDATE mysql.user SET Password = PASSWORD('newpwd') | |
-> WHERE User = 'root'; | |
mysql> FLUSH PRIVILEGES; | |
CREATE_DATABASE my_super_db DEFAULT CHARSET utf8; |