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
{
"resourceType": "Bundle",
"type": "transaction",
"entry": [
{
"request": {
"method": "PUT",
"url": "/Patient/1e467a741586a1f60097be9a9d4304fd"
},
"resource": {
@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)))
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
const Input = props => {
return <input {...props} />;
}
const FormRow = props => {
return <div className="formRow">{props.children}</div>;
}
const makeBindFn = (formId, formComp) => {
return inputName => {
SELECT 2+2 FROM patient;
(setq js-indent-level 2)
(setq js2-basic-offset 2)
(use-package web-mode
:init
(add-to-list 'auto-mode-alist '("work/narus/narus-web/.*?\\.js\\'" . web-mode))
:config
(setq web-mode-attr-indent-offset 4)
(setq web-mode-enable-auto-pairing nil)
[WTF Node?] open handles:
- File descriptors: (note: stdio always exists)
- fd 1 (tty) (stdio)
- fd 2 (tty) (stdio)
- Servers:
- :::46568 (HTTP)
- Listeners:
- request: app @ /var/jenkins_home/workspace/Narus_narus-web_stable-P5U42K5RDW5AN4K3GCTG4BCJ6MTTTEEUWK5ZF64POBLM75ADVL6Q/backend/node_modules/supertest/index.js:20
- Timers:
Unable to determine callsite for "Function". Did you require `wtfnode` at the top of your entry point?
(ns aidbox-ui.components.code-editor
(:require [reagent.core :as r]
[re-frame.core :as rf]
[clojure.string :as str]
[vendor.codemirror]))
(defn- get-code-block-type [token-info]
(try
(-> token-info
(aget "state")
<?xml version="1.0" encoding="UTF-8"?>
<a:Bundle
xmlns:a="http://hl7.org/fhir">
<a:type value="history"/>
<a:total value="3"/>
<a:entry>
<a:resource>
<a:Device>
<a:id value="bab099e8-e164-462e-a732-7cbab339d082"/>
<a:meta>