Install Minikube
MacOS
sysctl -a | grep -E --color 'machdep.cpu.features|VMX'
should 'VMX' display
minikube start
Install Minikube
MacOS
sysctl -a | grep -E --color 'machdep.cpu.features|VMX'
should 'VMX' display
minikube start
this.httpClient.get('https://angular.io/assets/images/logos/angular/angular.svg', { responseType: 'blob'}) | |
.subscribe(data => { | |
console.log("data", data); | |
var url = window.URL.createObjectURL(data); | |
let downloadLink = document.createElement('a'); | |
downloadLink.href = url | |
downloadLink.setAttribute('download', "file"); | |
downloadLink.click(); | |
}); |
-- Get All the unique name from employee | |
select name from employees group by name having count(name) = 1; | |
select name, count(name) from employees group by name having count(name) = 1; | |
-- Get All the unique name from employee | |
select name, count(name) from employees group by name having count(name) > 1; |
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Python: Current File (Integrated Terminal)", | |
"type": "python", | |
"request": "launch", |
package demo; | |
import java.io.Serializable; | |
import java.security.Principal; | |
import java.util.Collection; | |
import java.util.Collections; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.UUID; |
const test = [1, 2, 3]; | |
for(const t of test){ | |
t | |
} | |
console.log(test); | |
const iterator = test[Symbol.iterator]() | |
iterator | |
console.log(iterator.next()); | |
console.log(iterator.next()); |
private String getLast4DigitMasking1(String str) { | |
final char[] chars = str.toCharArray(); | |
for(int i = 0; i < chars.length - 4; i++){ | |
chars[i] = '*'; | |
} | |
return String.valueOf(chars); | |
} |
mysql> use test; | |
mysql> create table sample_json(id INT, data JSON); | |
Query OK, 0 rows affected (0.03 sec) | |
mysql> describe sample_json; | |
+-------+---------+------+-----+---------+-------+ | |
| Field | Type | Null | Key | Default | Extra | | |
+-------+---------+------+-----+---------+-------+ | |
| id | int(11) | YES | | NULL | | | |
| data | json | YES | | NULL | | |
{ | |
"black": "#2b2b2b", | |
"dark_blue": "#6d9cbe", | |
"dark_green": "#a5c261", | |
"dark_cyan": "#519f50", | |
"dark_red": "#da4939", | |
"dark_magenta": "#b6b3eb", | |
"dark_yellow": "#ffc66d", | |
"gray": "#42DF01", | |
"dark_gray": "#afff81", |
<?xml version="1.0" encoding="UTF-8"?> | |
<persistence xmlns="http://java.sun.com/xml/ns/persistence" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence | |
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" | |
version="1.0"> | |
<!-- derby --> |