Skip to content

Instantly share code, notes, and snippets.

@danil
danil / freeportln.go
Last active February 7, 2021 16:03
Free random TCP port listener
package main
import (
"fmt"
"net"
)
func freeportln(s string) *net.TCPListener {
addr, err := net.ResolveTCPAddr("tcp", s)
if err != nil {
@danil
danil / fhirbase-20160711T164029Z.diff
Last active July 11, 2016 16:46
fhirbase-20160711T164029Z-diff
This file has been truncated, but you can view the full file.
diff --git a/fhir/conceptmaps.json b/fhir/conceptmaps.json
index 59085cf..56f2ea1 100644
--- a/fhir/conceptmaps.json
+++ b/fhir/conceptmaps.json
@@ -2,7 +2,7 @@
"resourceType": "Bundle",
"id": "conceptmaps",
"meta": {
- "lastUpdated": "2016-03-15T04:30:42.880+00:00"
+ "lastUpdated": "2016-07-11T01:46:02.607+00:00"
@danil
danil / fhirface.md
Last active August 29, 2015 14:13
Fhirwall

Fhirface with OAuth2

git clone https://github.com/fhirbase/fhirface.git

If node.js is not installed get nvm (node version manager)

@danil
danil / .gitignore
Last active August 29, 2015 14:10
JSON resume
node_modules
npm-debug.log
@danil
danil / ng-digest-and-bind.md
Last active August 29, 2015 14:02
ng-digest-and-bind

Angular digest and bindings

@danil
danil / formstamp-press-release.md
Last active August 29, 2015 13:57
formstamp.github.io press release

FormStamp − AngularJS widgets and form builder library
Live Demo: http://formstamp.github.io

We are developing an AngularJS library that aims to simplify working with forms by providing widgets and form builder, check out the description and the demo.

Write access

############################
### GLOBAL CONFIGURATION ###
############################
# Set CDM theme and dialog options
theme=default
countfrom=1
# List all WM binary names
wmbinlist=(xmonad ion3 twm)
@danil
danil / cml2.rb
Created April 11, 2013 16:05 — forked from kossnocorp/cml2.rb
module CML2
# Includes to ProductCategory model
module ProductCategory
def import node_set
::ProductCategory.delete_all
::ProductCategory.import_categories \
node_set.xpath('/КоммерческаяИнформация/Классификатор/Группы')
end
# encoding: utf-8
module Nanoc3::Filters
class AbsolutizePaths < Nanoc3::Filter
identifier :absolutize_paths
require 'nanoc/helpers/link_to'
include Nanoc::Helpers::LinkTo
@danil
danil / gist:3241742
Created August 2, 2012 23:10
emerge -v1 $(eix -I --only-names --in-overlay unity-gentoo)
Calculating dependencies... done!
[ebuild R ~] unity-base/utouch-evemu-1.0.9::unity-gentoo 487 kB
[ebuild R ~] dev-python/configglue-1.0::unity-gentoo 0 kB
[ebuild R ~] dev-python/lazr-restfulclient-0.12.0::unity-gentoo 0 kB
[ebuild R ~] dev-python/dirspec-3.0.0::unity-gentoo 0 kB
[ebuild R ~] dev-libs/glib-99.2.32.3::unity-gentoo USE="-debug -doc -fam (-selinux) -static-libs -systemtap -test -utils -xattr" 0 kB
[ebuild R ~] x11-themes/unity-asset-pool-0.8.23::unity-gentoo USE="-debug" 90 kB
[ebuild R ~] x11-proto/fixesproto-5.0-r9999::unity-gentoo 0 kB
[ebuild R ~] x11-libs/qt-core-99.4.8.2::unity-gentoo USE="exceptions glib iconv ssl (-aqua) -c++0x -debug -icu -optimized-qmake -pch -qpa -qt3support" 0 kB
[ebuild R ~] dev-libs/libzeitgeist-0.3.18::unity-gentoo USE="-static-libs" 0 kB