Monday, December 31, 2018
Sunday, December 30, 2018
Thursday, December 27, 2018
Linux: Prevent SSH timeout
https://bjornjohansen.no/ssh-timeout
In ~/.ssh/config add the following line:
ServerAliveInterval 30
This will send a “null packet” every 30 seconds on your SSH connections to keep them alive.
Wednesday, December 26, 2018
Friday, December 21, 2018
Thursday, December 20, 2018
Wednesday, December 19, 2018
Monday, December 17, 2018
Friday, December 14, 2018
Javascript - this, bind, call
// this , bind, call
var msg = "global";
function f(x){
console.log(this.msg + "," + x);
}
var obj1 = {
msg: "obj1",
f: f
}
var obj2 = {
msg: "obj2"
}
f(10);
obj1.f(10);
f.call(obj2, 10);
// f.call(window, 10);
// f.call(obj1, 10);
// f.call(obj2, 10);
// f.bind(obj1)(10)
// f.bind(obj2)(10)
// f.bind(window)(10)
var msg = "global";
function f(x){
console.log(this.msg + "," + x);
}
var obj1 = {
msg: "obj1",
f: f
}
var obj2 = {
msg: "obj2"
}
f(10);
obj1.f(10);
f.call(obj2, 10);
// f.call(window, 10);
// f.call(obj1, 10);
// f.call(obj2, 10);
// f.bind(obj1)(10)
// f.bind(obj2)(10)
// f.bind(window)(10)
Thursday, December 13, 2018
Wednesday, December 12, 2018
Tuesday, December 11, 2018
Monday, December 10, 2018
Sunday, December 9, 2018
Config in Elixir projects
Excerpt from Elixir Cookbook -
The configuration from the imported files will override any existing configuration (with the same key) in the config.exs file. In fact, Configuration values are merged recursively. See the example at https://github.com/alco/mix-config-example.
To access configuration values, we use Application.get_env(:app, :key).
Friday, December 7, 2018
Thursday, December 6, 2018
Tuesday, December 4, 2018
Saturday, December 1, 2018
AWS Cloud Development Kit
AWS re:Invent 2018: Infrastructure Is Code with the AWS Cloud Development Kit (DEV372)
https://www.reddit.com/r/programming/comments/a22fay/aws_infrastructure_as_code_using_aws_cdk/
Subscribe to:
Posts (Atom)
Followers
Blog Archive
-
▼
2018
(194)
-
▼
December
(30)
- Debounce function with args
- Rails related - ActionView helpers in Assets Pipeline
- Linux: Prevent SSH timeout
- Write code that is easy to delete, not easy to ext...
- Realtime Market-Data Updates with Elixir Share this
- Elixir - how to kill a process or make it exit
- Blazor
- Advent of Code - Elixir
- Accessing view helpers in a Rails Console session
- Phoenix LiveView discussion on elixirforum.com
- Morphling - Similar to Phoenix LiveView, Drab
- Difference between MultiCore Programming in Erlang...
- argument solely by appeal to authority
- ES6 - list of some of the new things
- Javascript - this, bind, call
- Elixir - OptionParser
- Phoenix LiveView
- OpenAPI, Postman
- Build a Simple Persistent Key-Value Store in Elixi...
- BEAM
- Elixir Case Studies
- Erlang and Elixir coming to AWS Lambda
- Scoping of html classes (similar to React) in Phoe...
- Config in Elixir projects
- Redux - calling APIs
- About Elixir
- LMAX Disruptor concurrent framework
- React related: API calls when using Redux
- AWS Cloud Development Kit
- Distributed Databases related - Citus & PostgreSQL
-
▼
December
(30)