Skip to content

Instantly share code, notes, and snippets.

@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
############################
### GLOBAL CONFIGURATION ###
############################
# Set CDM theme and dialog options
theme=default
countfrom=1
# List all WM binary names
wmbinlist=(xmonad ion3 twm)
@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

@danil
danil / ng-digest-and-bind.md
Last active August 29, 2015 14:02
ng-digest-and-bind

Angular digest and bindings

@danil
danil / .gitignore
Last active August 29, 2015 14:10
JSON resume
node_modules
npm-debug.log
@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 / 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 / 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 {