There are two types of pattern registered:
-
Fixed named pattern (without trailing slash e.g.
/about
,/home
) -
Rooted path or subtree (with trailing slash e.g.
/
,/about/
)
import java.util.*; | |
public class MyClass { | |
public static List<String> list = new ArrayList(); | |
public static void main(String args[]) { | |
MyClass.list.add("Item1"); | |
MyClass.list.add("Item2"); | |
MyClass.list.add("Item3"); |
package main | |
func increment(x *int) { | |
*x = *x + 1 | |
} | |
func main() { | |
x := 0 | |
// Execution order of Post Increment operator |
In GoLang
, the evaluation order of assignment operator is straight forward.
The order is:
lvalues
to Memory Location
from left to right.rvalues
to constant
values from left to right.rvalues
to lvalues
from left to right.The POC:
class Stack { | |
constructor() { | |
this._queue = new Queue(); | |
this._size = 0; | |
} | |
push(val) { | |
this._queue.enqueue(val) | |
} | |
~/.aws/config | |
[default] | |
output = json | |
region = us-west-2 |
document.addEventListener("keypress", (evt) => { | |
if (evt.ctrlKey && evt.keyCode === 19) { | |
const btn = document.querySelector(".button-nfplayerSubtitles"); | |
const parent = btn.parentElement; | |
btn.click(); | |
const allTracks = [...parent.querySelectorAll(".track-list-subtitles li.track")]; | |
const englishTrack = allTracks.find(track => track.textContent.toLowerCase().includes("english")); | |
if (!englishTrack) { |
pip install mixpanel-api
This script will delete any profile that hasn't been seen since January 1st, 2019.
<!DOCTYPE html | |
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:o="urn:schemas-microsoft-com:office:office" | |
xmlns:v="urn:schemas-microsoft-com:vml"> | |
<head> | |
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> | |
<meta content="width=device-width" name="viewport" /> | |
<meta content="IE=edge" http-equiv="X-UA-Compatible" /> |