Skip to content

Instantly share code, notes, and snippets.

View blvd20's full-sized avatar
🎯
Focusing

Vincent J blvd20

🎯
Focusing
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>stencil-then-cover</title>
</head>
<body>
<script type="module">
@blvd20
blvd20 / globalmaptiles.py
Created December 16, 2021 02:28 — forked from maptiler/globalmaptiles.py
globalmaptiles.py
#!/usr/bin/env python
###############################################################################
# $Id$
#
# Project: GDAL2Tiles, Google Summer of Code 2007 & 2008
# Global Map Tiles Classes
# Purpose: Convert a raster into TMS tiles, create KML SuperOverlay EPSG:4326,
# generate a simple HTML viewers based on Google Maps and OpenLayers
# Author: Klokan Petr Pridal, klokan at klokan dot cz
# Web: http://www.klokan.cz/projects/gdal2tiles/
@blvd20
blvd20 / show-nuxt-vue-devtools.js
Created July 25, 2021 10:17
A bookmarklet to enable vue devtools in prod mode. Only works for nuxt project.
// 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;
})()

About

There is nothing.

<!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,
<!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>
<!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;
@blvd20
blvd20 / scrollTest.html
Created September 29, 2017 03:25
scroll view bahavior test
<!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%;
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";
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) {