Skip to content

Instantly share code, notes, and snippets.

View emilis's full-sized avatar
👾
your code needs more spaces

Emilis Dambauskas emilis

👾
your code needs more spaces
View GitHub Profile
const getDayOfWeek = dayNumber =>
dayNumber === 0
? "Sunday"
: dayNumber === 1
? "Monday"
: dayNumber === 2
? "Tuesday"
: dayNumber === 3
? "Wednesday"
: dayNumber === 4
@emilis
emilis / gist:4391513
Created December 27, 2012 20:06 — forked from jen20/gist:3737939
ouro@ouroboros:~/src/EventStoreDocs$ curl -i http://127.0.0.1:2113/streams/newstream/event/1?format=json
HTTP/1.1 200 OK
Access-Control-Allow-Methods: GET
Content-Type: application/json
Server: Mono-HTTPAPI/1.0
Date: Thu, 13 Sep 2012 10:57:26 GMT
Content-Length: 208
Keep-Alive: timeout=15,max=100
{
@emilis
emilis / gist:4391488
Last active December 10, 2015 05:58 — forked from jen20/gist:3737930
ouro@ouroboros$ curl -i http://127.0.0.1:2113/streams/newstream/event/1 -H "Accept: text/xml"
HTTP/1.1 200 OK
Access-Control-Allow-Methods: GET
Content-Type: text/xml
Server: Mono-HTTPAPI/1.0
Date: Thu, 13 Sep 2012 10:55:13 GMT
Content-Length: 312
Keep-Alive: timeout=15,max=100
<?xml version="1.0" encoding="UTF-8"?>
@emilis
emilis / with-inkscape-layers.js
Created May 31, 2012 11:38
Shows only specified Inkscape layers in a file and then runs Inkscape on it
/// Requirements: -------------------------------------------------------------
/// npm install node-expat temp
var child_process = require("child_process");
var expat = require("node-expat");
var fs = require("fs");
var path = require("path");
var temp = require("temp");
@emilis
emilis / test-index.json
Created April 4, 2012 13:58
Hunspell_lt for ElasticSearch
{
"index": {
"mappings": {
"item": {
"properties": {
"name": {
"type": "string",
"analyzer": "text_lt"
}
}