- python
python w2v.py server
- go
go run w2v.go
- python client:
diff --git a/run.sh b/run.sh | |
index 46d9020..36e2e98 100755 | |
--- a/run.sh | |
+++ b/run.sh | |
@@ -145,7 +145,7 @@ for pfile in .bashrc .bash_profile; do | |
grep -v nix-profile | | |
grep -v nix-venv-shell | | |
cat > ${HOME}/${pfile} | |
- echo 'function nix-enable() { unset LD_LIBRARY_PATH; . $HOME/.nix-profile/etc/profile.d/nix.sh; $* };' >> ${HOME}/${pfile} | |
+ echo 'function nix-enable() { unset LD_LIBRARY_PATH; . $HOME/.nix-profile/etc/profile.d/nix.sh; $*; };' >> ${HOME}/${pfile} |
with import <nixpkgs> {}; | |
stdenv.mkDerivation rec { | |
name = "dev-env"; | |
env = buildEnv { | |
name = name; | |
paths = buildInputs; | |
}; | |
buildInputs = [ | |
glibcLocales | |
gnome3.gtk |
# see https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/darwin/apple-sdk/frameworks.nix | |
let | |
pkgs = import <nixpkgs> {}; | |
# MONEY LINE 1/2 | |
frameworks = pkgs.darwin.apple_sdk.frameworks; | |
stdenv = pkgs.stdenv; | |
in stdenv.mkDerivation rec { | |
name = "env"; | |
env = pkgs.buildEnv { name = name; paths = buildInputs; }; | |
buildInputs = [ |
# docker build -t perkeep . | |
# make sure the config is like this: | |
# { | |
# "auth": "none", | |
# "listen": ":3179", | |
# "camliNetIP": "", | |
# "identity": "...", | |
# "identitySecretRing": "...", | |
# "blobPath": "/home/perkeep/var/perkeep/blobs", | |
# "packRelated": true, |
ref https://lambdaisland.com/episodes/javascript-libraries-clojurescript
suppose you put the external js in in src-compat
, and the corresponding externs in src-compat/externs
wget -O src-compat/fuse.js https://cdnjs.cloudflare.com/ajax/libs/fuse.js/3.2.0/fuse.js
(defproject my-app "0.1.0-SNAPSHOT" | |
:description "FIXME: write description" | |
:url "http://example.com/FIXME" | |
:license {:name "Eclipse Public License" | |
:url "http://www.eclipse.org/legal/epl-v10.html"} | |
:dependencies [[org.clojure/clojure "1.8.0"] | |
[org.clojure/clojurescript "1.9.473" :exclusions [org.apache.ant/ant]] | |
[org.clojure/core.async "0.2.395"] | |
[reagent "0.6.0"] | |
[ring/ring-core "1.5.1"] |
[all] | |
xenial-host | |
[all:vars] | |
ansible_user=vagrant | |
ansible_python_interpreter=/usr/bin/python3 | |
ansible_port=2222 | |
ansible_ssh_common_args='-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null' |
-- ref https://www.macosxautomation.com/applescript/sbrt/sbrt-06.html | |
on replace_chars(this_text, search_string, replacement_string) | |
set AppleScript's text item delimiters to the search_string | |
set the item_list to every text item of this_text | |
set AppleScript's text item delimiters to the replacement_string | |
set this_text to the item_list as string | |
set AppleScript's text item delimiters to "" | |
return this_text | |
end replace_chars |
// you will need the clojure jar AND the org.clojure.tools.nrepl jar for this | |
import clojure.java.api.Clojure; | |
import clojure.lang.IFn; | |
import clojure.lang.RT; | |
import clojure.lang.Keyword; | |
public class LaunchClojureRepl { | |
public static void main(String[] args) { | |
IFn require = Clojure.var("clojure.core", "require"); | |
require.invoke(Clojure.read("clojure.tools.nrepl.server")); |