Skip to content

Instantly share code, notes, and snippets.

@korczis
korczis / save_load.json
Created Nov 11, 2015
Example file with serialized map - mapoffacts.com
View save_load.json
{
"_version": 1,
"_timestamp": "2015-11-11T07:54:43.441Z",
"props": {
"layers": [
{
"name": "Layer (0)",
"id": 0,
"data": null,
"dirty": false,
@korczis
korczis / Screenshot.png
Last active Nov 1, 2015
React Redux Universal Hot Example Error
@korczis
korczis / inject-immutable.js
Created Nov 1, 2015
Short snippet for injecting immutable.js from CDN to page
View inject-immutable.js
var s = document.createElement('script');
s.src = 'https://cdnjs.cloudflare.com/ajax/libs/immutable/3.7.5/immutable.js'
s.onload = function() {
this.parentNode.removeChild(this);
};
(document.head || document.documentElement).appendChild(s);
@korczis
korczis / layout-full.txt
Last active Sep 23, 2015
The Scratch Layout
View layout-full.txt
.
├── IDEAS.md
├── LICENSE
├── README.md
├── TODO.md
├── api
│   ├── README.md
│   ├── actions
│   │   ├── index.js
│   │   ├── layer
@korczis
korczis / output.txt
Last active Sep 2, 2015
Handcrafted piece of artwork for finding metrics containing specific word in their expression
View output.txt
/Users/tomaskorcak/.rvm/rubies/jruby-1.7.22/bin/jruby --1.9 -X+O -J-Djruby.compile.mode=OFF -J-Djruby.debug.fullTrace=true -e at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/tomaskorcak/.rvm/gems/jruby-1.7.22/gems/ruby-debug-ide-0.4.32/bin/rdebug-ide --disable-int-handler --evaluation-timeout 10 --rubymine-protocol-extensions --port 54255 --dispatcher-port 54256 -- /Users/tomaskorcak/dev/gooddata-ruby/.scripts/services/vlada_list_metrics.rb
Fast Debugger (ruby-debug-ide 0.4.32, ruby-debug-base 0.10.5.rc10) listens on 127.0.0.1:54255
I, [2015-09-02T16:24:14.178000 #80312] INFO -- : Connected using username "tomas.korcak@gooddata.com" to server https://secure.gooddata.com
I, [2015-09-02T16:24:17.830000 #80312] INFO -- : Connection successful
I, [2015-09-02T16:24:18.712000 #80312] INFO -- : Connected to server with webdav path https://secure-di.gooddata.com/uploads/
{
"metric": {
"content": {
"folders": [
"/gdc/md/la84vcyhrq8jwbu4wpipw66q2sqeb923/obj/1513"
View Gemfile
source 'https://rubygems.org'
gem 'gooddata'
gem 'json'
gem 'pmap'
View .travis.yml
language: node_js
node_js:
- '0.10'
install: npm run dev_install
env:
global:
secure: CODECLIMATE_TOKEN
@korczis
korczis / Gemfile
Last active Aug 29, 2015
Encrypted hash
View Gemfile
source 'https://rubygems.org'
gem 'encrypted_strings'
@korczis
korczis / nginx.lethe.conf
Created Jan 11, 2015
Nginx lethe.it conf - cache, sockets, gzip
View nginx.lethe.conf
roxy_cache_path /var/cache/nginx/cache levels=1:2 keys_zone=cache:8m max_size=3000m inactive=600m;
proxy_temp_path /var/tmp;
log_format rt_cache '$remote_addr - $upstream_cache_status [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"';
server {
listen 80;
server_name lethe.it;
View gulpfile.js
#! /usr/bin/env node
// Copyright, 2013-2014, by Tomas Korcak. <korczis@gmail.com>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions: