Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<script>
// source from https://javascript.info/call-apply-decorators
'use strict';
let name = "global-name";
console.log('LINE 6 this.name:', this.name);
let worker = {
name: "worker-name",
2020-09-17
* Spring Boot 2.3.x working
* Spring Cloud Hoxton SR8 working, can register to Eureka, Zuul is forwarding requests
* Spring Date Rest working, auto exposed REST APIs on reposotories found by springdoc-openapi
* springdoc-openapi working: ui, date-rest, hateoas working, Pageable resolved
[INFO] Scanning for projects...
[INFO]
@rekhubs
rekhubs / gist:15129eee57de7b3a7e7d3f7dd2c83741
Created April 3, 2020 01:22
spring boot mvn plugn - select profile and jvm options and others - 1.x vs 2.x
1.5.x
https://docs.spring.io/spring-boot/docs/1.5.13.RELEASE/maven-plugin/run-mojo.html
options using run.xxx
run.jvmArguments
run.profile
# coding = utf-8
import time
from PIL import Image
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
# using default firefox profile
# selenium looks for user.js rather than prefs.js
# defaultProfileDir = "C:\\Users\\rek\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\dsqsvpe2.default";
# profile = webdriver.FirefoxProfile(defaultProfileDir)
@rekhubs
rekhubs / tmp.css
Last active August 29, 2015 14:11
#report{
width:440px;
height:440px;
font-size:13px;
font-family: Georgia, serif;
text-shadow: white 0px 1px 1px;
background-position:center;
background-size:cover;
background-image: url(http://userserve-ak.last.fm/serve/500/73769974/Beautiful+World.png)
}
@rekhubs
rekhubs / Default (Windows).sublime-keymap
Last active August 29, 2015 14:09
eclipse-like keymap for sublime text
[
{ "keys": ["alt+left"], "command": "jump_back" },
{ "keys": ["alt+right"], "command": "jump_forward" },
{ "keys": ["f3"], "command": "goto_definition" },
{ "keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["alt+up"], "command": "swap_line_up" },
{ "keys": ["alt+down"], "command": "swap_line_down" },
{ "keys": ["ctrl+alt+down"], "command": "duplicate_line" }