A collection of links to the "Master the JavaScript Interview" series of medium stories by Eric Elliott.
// Given a string, find the length of the longest substring without repeating characters. | |
// Examples: | |
// Given "abcabcbb", the answer is "abc", which the length is 3. | |
// Given "bbbbb", the answer is "b", with the length of 1. | |
// Given "pwwkew", the answer is "wke", with the length of 3. Note that the answer must be a substring, "pwke" is a subsequence and not a substring. |
This guide shows how to set up a bidirectional client/server authentication for plain TLS sockets.
Newer versions of openssl are stricter about certificate purposes. Use extensions accordingly.
Generate a Certificate Authority:
/** | |
* @param {string} s | |
* @return {number} | |
*/ | |
var lengthOfLongestSubstring = function(s) { | |
var max = 0; | |
var str = ''; | |
var i = 0; | |
var cache = []; | |
The purpose of this gist is to know more about the software developing principles in general. This intention is to explore and know more about software development from industry leaders like Martin Flowers, Robrt Martin(aka UncleBob ) and many .
In addition to that , learning and practising programming and desing skill with emphasis on necessary programming styles like OOP and FP needs to be encouraged.
This guide is started as rough draft and will serve to contain information about resources , leaders to follow, topics under software development.
# remap C-b to C-a | |
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
# reload the conf file on the fly | |
bind r source-file ~/.tmux.conf | |
# who knows what this does, but I can now scroll in a tmux pane | |
set -g terminal-overrides 'xterm*:smcup@:rmcup@' |
version: "2" | |
services: | |
openvpn: | |
image: dperson/openvpn-client:latest | |
command: -f | |
restart: always | |
dns: 10.0.0.2 | |
cap_add: | |
- NET_ADMIN | |
devices: |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
,elem.offsetTop
,elem.offsetWidth
,elem.offsetHeight
,elem.offsetParent