Skip to content

Instantly share code, notes, and snippets.

View huuyafwww's full-sized avatar

huuya huuyafwww

  • Tokyo, Japan
  • 14:26 (UTC +09:00)
View GitHub Profile
@huuyafwww
huuyafwww / my_vs_code_key_bindings.json
Created August 16, 2021 13:57
This is a Visual Studio Code configuration file for keyboard binding for me.
[
{
"key": "ctrl+cmd+a",
"command": "extension.codicTranslate"
},
{
"key": "ctrl+cmd+c 2",
"command": "extension.changeCase.camel"
},
{
@huuyafwww
huuyafwww / centos7_initialize_setup.sh
Last active June 26, 2021 15:15
This is a centos7 initialize setup script for my home server
yum update -y \
&& echo "[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/7/\$basearch/
gpgcheck=0
enabled=1" > /etc/yum.repos.d/nginx.repo \
&& curl -sL https://rpm.nodesource.com/setup_14.x | bash - \
&& curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | tee /etc/yum.repos.d/yarn.repo \
&& rpm --import https://dl.yarnpkg.com/rpm/pubkey.gpg \
&& yum groupinstall -y "Development Tools" \
@huuyafwww
huuyafwww / Material_Customized.json
Created May 23, 2021 02:35
This is mine default iterm profile
{
"Use Non-ASCII Font" : false,
"Tags" : [
],
"Ansi 12 Color" : {
"Green Component" : 0.81066548824310303,
"Blue Component" : 0.99898606538772583,
"Red Component" : 0.43880558013916016
},
{"lastUpload":"2020-12-06T12:11:53.897Z","extensionVersion":"v3.4.3"}
<pre>
<?php
/**
* All of the Arguments do Sanitize
*
* @param string|array $__stringer
* @return string|array
*/
function __h(
<pre>
<?php
$define_names = [
"A" => "a",
"B" => "b",
"C" => "c",
"D" => "d",
"E" => "e",
];
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>StackTrace</title>
</head>
<body>
<script>
window.onerror = function(msg, file, line, col, err) {
google.maps.event.addListener(marker, 'mouseover', function(){
//ここにホバー時の処理を記述する
});
google.maps.event.addListener(marker, 'mouseout', function(){
//ここにホバー解除時の処理を記述する
});
marker.addListener('click',function(){
//マーカーをクリックしたときの処理を記述する
infobox.open(map_canvas, marker); //infoboxを開く
infobox.close(); //infoboxを閉じる
var infoboxDom = 'DOM要素';
var infoboxOption = {
content: infoboxDom, //生成したDOMを割り当て
position: "経度緯度情報",
boxClass: "infobox-out", //生成したDOMをラップするdivのclass名
};
var infobox = new InfoBox(infoboxOption); //infoboxの生成