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
ZG_Ctr_AssignAddr | |
ZG_Ctr_ClearKeys | |
ZG_Ctr_ControlDevices | |
ZG_Ctr_DecodeEcEvent | |
ZG_Ctr_DecodeFireEvent | |
ZG_Ctr_DecodeModeEvent | |
ZG_Ctr_DecodePassEvent | |
ZG_Ctr_DecodeSecurEvent | |
ZG_Ctr_DecodeUnkKeyEvent | |
ZG_Ctr_EnableEmergencyUnlocking |
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 lang="en"> | |
<head> | |
<title>Textarea autoresize</title> | |
<style> | |
textarea { | |
resize: none; | |
width: 15rem; | |
height: 3rem; | |
margin: 10% 45%; |
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
function addFile(fileInput, event) { | |
const dt = new DataTransfer(); | |
Array.from(fileInput.files).forEach(file => { | |
dt.items.add(file); | |
}); | |
Array.from(event.dataTransfer.files).forEach(file => { | |
dt.items.add(file); | |
}); | |
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
# -*- coding: utf-8 -*- | |
from gevent import monkey | |
monkey.patch_all() | |
from gevent.pywsgi import WSGIServer | |
from flask_compress import Compress | |
from flask import Flask, render_template | |
app = Flask(__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
$('a.page-scroll').on('click', event => { | |
event.preventDefault(); | |
$('html, body').stop().animate({ | |
scrollTop: $($(event.target).attr('href')).offset().top - 100 | |
}, 1000, 'easeInOutExpo'); | |
}); |
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
.outer { | |
position: relative; | |
} | |
.outer:before { | |
content: ""; | |
display: block; | |
padding-top: 100%; | |
} |
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
import L from 'leaflet'; | |
const leafletMap = (mapContainer, center) => { | |
const osm = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { | |
attribution: '© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors' | |
}); | |
const googleSatellite = L.tileLayer('https://{s}.google.com/vt/lyrs=s&x={x}&y={y}&z={z}', { | |
subdomains: ['mt0', 'mt1', 'mt2', 'mt3'], | |
attribution: '<a http="https://google.com" target="_blank">Google</a>' |
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
Show hidden characters
{ | |
"presets": [ | |
"@babel/preset-env" | |
], | |
"plugins": [ | |
[ | |
"@babel/plugin-transform-react-jsx", | |
{ | |
"pragma": "h", | |
"pragmaFrag": "Fragment", |