This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Table row click</title> | |
<style media="screen"> | |
.ui-selectable-row-disable-text-selection { | |
-webkit-touch-callout: none; /* iOS Safari */ | |
-webkit-user-select: none; /* Safari */ |
This file contains 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
Server Version: <%= application.getServerInfo() %><br /><br /> | |
Servlet Version: <%= application.getMajorVersion() %>.<%= application.getMinorVersion() %><br /> | |
JSP Version: <%= JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion() %><br /> |
This file contains 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
-- Truncate tables | |
DROP table staging_members; | |
DROP table members; | |
-- Create members | |
CREATE TABLE members( | |
id number primary key, | |
first_name varchar(50) not null, | |
last_name varchar(50), | |
rank varchar(20) |
This file contains 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
// Ref: https://2ality.com/2014/04/call-stack-size.html | |
function computeMaxCallStackSize() { | |
try { | |
return 1 + computeMaxCallStackSize(); | |
} catch (e) { | |
// Call stack overflow | |
return 1; | |
} | |
} |
This file contains 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
public class Main { | |
public static void main(String[] args) { | |
String name = "foo"; | |
System.out.println(name); // foo | |
System.out.println(name.getClass()); // class java.lang.String | |
System.out.println(name.getClass().getName()); // java.lang.String | |
System.out.println(name.getClass().getSimpleName()); // String | |
} | |
} |
This file contains 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
// enum is private class with static final members | |
enum PersonType { | |
Men, | |
Women, | |
Transgender | |
} | |
class Person { | |
Person(String name, PersonType gender) { | |
this.name = name; |
This file contains 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
// https://leetcode.com/playground/otdz2h93 | |
/* | |
Why? | |
- Readability | |
- Grouping of constants under one roof | |
- Compile Type Check | |
- Enumertion of values | |
- Unlike constants, we can store multiple values against a single enum type |
This file contains 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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: my-multi-container-pod | |
labels: | |
app: myapp | |
type: front-end | |
spec: | |
containers: | |
- name: nginx-container |
This file contains 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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: my-first-app-pod | |
labels: | |
app: myapp | |
type: front-end | |
spec: | |
containers: | |
- name: nginx-container |
This file contains 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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: myapp-rs | |
labels: | |
app: myapp | |
spec: | |
template: | |
metadata: | |
name: myapp-pod |
OlderNewer