Skip to content

Instantly share code, notes, and snippets.

View mlapshin's full-sized avatar
🦖
I'm too old for this shit

Mike Lapshin mlapshin

🦖
I'm too old for this shit
  • Health Samurai
  • Manhattan Beach, CA
View GitHub Profile
@mlapshin
mlapshin / run_tags.rb
Last active December 18, 2015 07:49
run ctags git hook
#!/usr/bin/env ruby
#-*-ruby-*-
# A script to run ctags on all .rb files in a project. Can be run on
# the current dir, called from a git callback, or install itself as a
# git post-merge and post-commit callback.
CTAGS = '/usr/bin/ctags.emacs24'
HOOKS = %w{ post-merge post-commit post-checkout }
HOOKS_DIR = '.'
(defun extract-translation (start end)
(interactive "r")
(if (region-active-p)
(let* ((text (buffer-substring start end))
(keyname (read-string "Key name: " (extract-translation-default-key-name text)))
(short-keyname (car (last (split-string keyname "\\.") 1)))
(rails-root (if (fboundp 'ffip-project-root)
(ffip-project-root)
(projectile-project-root)))
sudo apt-get install -y git build-essential gettext libreadline6 libreadline6-dev zlib1g-dev flex bison libxml2-dev libxslt-dev
test -d postgresql || git clone --depth=1 git://git.postgresql.org/git/postgresql.git postgresql
PROJECT_PATH=`pwd`
PG_PATH=`pwd`/build
cd postgresql
(ns clojure-async-example.core
(:require [clojure.core.async :as async :refer [chan dropping-buffer sliding-buffer
go go-loop thread
<! >! >!! <!! take!
alts! alts!!
timeout
close!]]))
(ns clojure-async-example.core
(:require [clojure.core.async :as async :refer [chan dropping-buffer sliding-buffer
go go-loop thread
<! >! >!! <!! take!
alts! alts!!
timeout
close!]]))
;; core.async:
(ns clojure-async-example.
(:require [clojure.core.async :as async :refer [chan
go go-loop
<! >! >!! <!!
alts! alts!!
timeout
tap mult pub sub
close!]]))
(def max-n 100)
D3 Talk:
https://docs.google.com/presentation/d/1nlQJsesT9H5x3VlUKeABSW0MHs4U2Z1z4mPwhQdV3Tc/edit?usp=sharing
Foodtaster:
https://docs.google.com/presentation/d/1GJLjgm6QgEU4gyKU1smBY2zhKMPPIjV_mENXvaQvQyo/edit?usp=sharing
Vagrant:
https://docs.google.com/presentation/d/1H_X7EDuEJv6AlVezAQaPbiFCWVVgrxWjxj7hiSM1ldE/edit?usp=sharing
Foodtaster & Chef workshop:
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
propertize(nil font-lock-face cider-stacktrace-error-class-face)
cider-stacktrace-render-cause(#<buffer *cider-error*> (dict "class" "java.lang.ArithmeticException" "id" "38" "message" "Divide by zero" "session" "71e53872-14df-4677-ba0d-a264d746a786" "stacktrace" ((dict "class" "clojure.lang.Numbers" "file" "Numbers.java" "flags" ("java") "line" 156 "method" "divide" "name" "clojure.lang.Numbers/divide" "type" "java") (dict "class" "clojure.lang.Numbers" "file" "Numbers.java" "flags" ("dup" "java") "line" 3691 "method" "divide" "name" "clojure.lang.Numbers/divide" "type" "java") (dict "class" "user$eval21369" "file" "form-init1386004177264683667.clj" "flags" ("repl" "clj") "fn" "eval21369" "line" 1 "method" "invoke" "name" "user$eval21369/invoke" "ns" "user" "type" "clj" "var" "user/eval21369") (dict "class" "clojure.lang.Compiler" "file" "Compiler.java" "flags" ("tooling" "java") "line" 6619 "method" "eval" "name" "clojure.lang.Compiler/eval
#!/bin/ruby
require 'rubygems'
require 'bundler/setup'
require 'json'
require 'pg'
require 'benchmark'
$obs_tables = ['observation',
@mlapshin
mlapshin / gist:dd755c1dd2556a615841
Last active August 29, 2015 14:13
Terminology Service translation notes

1.15.6

Тут ты перевела в полном соответствии с оригиналом, но понять с первого раза, о чем идет речь, довольно трудно. Мне кажется, отклонение от оригинала в пользу понимабельности русского перевода вполне допустимо. Я бы перевел примерно так:

Спецификация включает поддержку Терминологического Сервиса - сервиса, который упрощает медицинским
приложениям работу с Кодами и Наборами Значений (ValueSet), снимая необходимость разбираться в тонкостях
ресурса ValueSet и лежащих за ним кодовых систем.