- git blame
- git history
- guide (to show intendent)
- vscodevim
- eslint
- colorpicker
- Quokka (test a piece of code and get instant feedback)
This file contains hidden or 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
<svg height="400px" width="100%"> | |
<rect x="10" width="100" height="100" transform="matrix( 2 0 0 2 50 50)"></rect> | |
<rect x="10" width="100" height="100" fill="red" transform="matrix( 1 0 0 1 50 50)"></rect> | |
</svg> | |
<svg height="400px" width="100%" style="background:blue"> | |
<rect x="10" width="100" height="100" transform="scale(2) translate(50 50)"></rect> | |
<rect x="10" width="100" height="100" fill="red" transform="translate(50 50)"></rect> | |
</svg> | |
<svg height="400px" width="100%" style="background:green"> | |
<rect x="10" width="100" height="100" transform="translate(50 50) scale(2) "></rect> |
This file contains hidden or 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
function rotate_vector(vector, radians) { | |
let c = Math.hypot(vector.x, vector.y); | |
let r1 = Math.atan2(vector.x, vector.y); //vector's radian before | |
let r2 = r1 + radians; //vertor's radian after rotating coordination | |
let x = Math.cos(r2) * c; | |
let y = Math.sin(r2) * c; | |
return {x, y} | |
} | |
function rotate(cx, cy, x, y, angle) { |
This file contains hidden or 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
import java.lang.reflect.InvocationHandler; | |
import java.lang.reflect.Method; | |
import java.lang.reflect.Proxy; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.Modifier; | |
// import sun.misc.ProxyGenerator; | |
// import java.io.*; | |
class DynamicProxyDemo { | |
public static String msg = "hi yo"; |
This file contains hidden or 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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>scroll view bahavior test</title> | |
<style type="text/css"> | |
#container { | |
width: 80%; |
This file contains hidden or 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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>flex test</title> | |
<style> | |
.std_con { | |
height: 300px; |
This file contains hidden or 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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<link href="https://fonts.googleapis.com/css?family=Lato|Open+Sans|Raleway|Roboto" rel="stylesheet"> | |
</head> | |
<body> |
This file contains hidden or 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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>PPI Test</title> | |
<style> | |
html, |
This file contains hidden or 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
// A bookmarklet to enable vue devtools in prod mode. | |
// Only works for nuxt project. | |
javascript:(function() { | |
window.postMessage({devtoolsEnabled: true, vueDetected: true}, '*'); | |
__VUE_DEVTOOLS_GLOBAL_HOOK__.Vue = $nuxt.constructor; | |
$nuxt.constructor.config.devtools = true; | |
})() |
OlderNewer