- Install VirtualBox
- Install Vagrant
- Install
vagrant-vbguest
plugin for Vagrant:vagrant plugin install vagrant-vbguest
- Init VM with SLES 11 SP3 box:
vagrant init suse/sles11sp3
- Run VM:
vagrant up
- SSH into VM:
vagrant ssh
- Install NVM:
curl https://raw.githubusercontent.com/creationix/nvm/v0.25.0/install.sh | bash
- Create
.bash_profile
inside of the home dir and paste the following lines:
πΊπ¦
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var compose = function() { | |
var funcs = arguments; | |
return function() { | |
var args = arguments; | |
for (var i = funcs.length; i --> 0;) { | |
args = [funcs[i].apply(this, args)]; | |
} | |
return args[0]; | |
}; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <winsock2.h> | |
#pragma comment(lib,"ws2_32.lib") | |
#define PORTNUM 1738 | |
#define BUFMAX 1024 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import MyModule from 'my-module'; // module to test | |
let test = 'test'; // mock data | |
let testMsg = 'Should return message: ' + test; // test message | |
MyModule({ test }, data => { | |
if (data.res !== test) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get :: String -> IO String | |
get url = getResponseBody =<< simpleHTTP (getRequest url) | |
get :: String -> IO String | |
get url = getResponseBody =<< simpleHTTP $ getRequest url | |
get :: String -> IO String | |
get url = getResponseBody . simpleHTTP $ getRequest url |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local current_dir='%{$terminfo[bold]$fg[blue]%} %~%{$reset_color%}' | |
local git_branch='$(git_prompt_info)%{$reset_color%}' | |
local lambda='Ξ»' | |
PROMPT="${current_dir} ${git_branch} | |
%B${lambda}%b " | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$terminfo[bold]$fg[yellow]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
βββ [email protected] | |
βββ [email protected] | |
βββ [email protected] | |
βββ [email protected] | |
βββ [email protected] | |
βββ [email protected] | |
βββ [email protected] | |
βββ [email protected] | |
βββ [email protected] | |
βββ [email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import d from 'dispatcher'; | |
function cb() {} | |
// you can make mistake in any of these | |
// linter will not help here | |
d.listen('OBJ:EVENT_1', cb); | |
d.listen('OBJ:EVENT_2', cb); | |
d.listen('OBJ:EVENT_3', cb); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import _ from 'mori'; | |
import t from 'transit-js'; | |
let v = _.vector(1, 'two', 3, 4, 5); | |
let hm = _.hashMap('key', 'value'); | |
let ms = _.hashMap('key', _.vector( | |
_.hashMap('key', 'value'), | |
_.hashMap('key', 'value') | |
)); |