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
{ | |
"title": "My Rules", | |
"rules": [ | |
{ | |
"description": "Change grave to esc / fn+grave to backslash / backslash to grave", | |
"manipulators": [ | |
{ "_comment": "graveをescにする" }, | |
{ | |
"type": "basic", | |
"from": { |
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
precision mediump float; | |
varying vec2 vTextureCoord; | |
uniform sampler2D uSampler; | |
uniform vec2 uResolution; // app.screen | |
uniform vec2 uMouse; // -1.0 ~ 1.0 | |
uniform vec2 uRed; | |
uniform vec2 uGreen; | |
uniform vec2 uBlue; |
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
/* | |
This is the c configuration file for the keymap | |
Copyright 2012 Jun Wako <[email protected]> | |
Copyright 2015 Jack Humbert | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 2 of the License, or | |
(at your option) any later version. |
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 gid_to_wid(gid) { | |
const xorval = gid > 31578 ? 474 : 31578 | |
const letter = gid > 31578 ? 'o' : '' | |
const wid = letter + parseInt((gid ^ xorval)).toString(36) | |
console.log('gid', gid) | |
console.log('xorval', xorval) | |
console.log('letter', letter) | |
console.log('worksheetid', wid) | |
} |
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 * as PIXI from 'pixi.js' | |
import QRious from 'qrious' | |
export default class QRCode { | |
constructor() {} | |
// URLからQRコードを生成 | |
generateQrCode(url) { | |
return new Promise((resolve) => { | |
const qrCode = new QRious({ |
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="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<script src="dist/main.js"></script> | |
<style> | |
.target { | |
width: 200px; | |
height: 500px; | |
margin: 1000px 0; |
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
version: '3' | |
services: | |
wordpress: | |
image: wordpress:latest | |
ports: | |
- 9000:80 | |
environment: | |
WORDPRESS_DB_PASSWORD: hoge | |
depends_on: |
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
{ | |
"title": "Spotlight起動時にIMEを英数にする", | |
"rules": [ | |
{ | |
"description": "Spotlight起動時にIMEを英数にする", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "spacebar", |
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="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Payment Request API Test</title> | |
<style> | |
body { | |
color: #333; | |
padding: 20px; |
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
<?php | |
if (!function_exists('getallheaders')) { | |
function getallheaders() { | |
$headers = array(); | |
foreach ($_SERVER as $name => $value) { | |
if (substr($name, 0, 5) == 'HTTP_') { | |
$headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value; | |
} | |
} |