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
// https://aframe.io/docs/0.8.0/introduction/writing-a-component.html | |
AFRAME.registerComponent('box', { | |
schema: { | |
width: { type: 'number', default: 1 }, | |
height: { type: 'number', default: 1 }, | |
depth: { type: 'number', default: 1 }, | |
color: { type: 'color', default: '#AAA' } | |
}, | |
init: function () { |
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
Shader "Unlit/VR220Shader" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
} | |
SubShader | |
{ | |
Tags { "RenderType"="Opaque" } | |
Cull Front |
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
template <class IntegralType> | |
inline size_t idx(IntegralType x, size_t p, size_t d) { | |
// e.g. p=1 d=2 | |
// 101101 -> 11 | |
return ((x >> (p * d))) & ((1 << d) - 1); | |
} | |
template <class BidirectionalIterator> | |
void radix_sort(BidirectionalIterator first, BidirectionalIterator last, | |
int d = 8, int w = 64) { |
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
--- Makefile.orig 2020-08-10 18:42:26.102494400 +0900 | |
+++ Makefile 2020-08-10 18:47:55.182494400 +0900 | |
@@ -6,8 +6,9 @@ CC = gcc | |
LD = ld | |
AS = nasm | |
CFLAGS += -nostdlib -fno-asynchronous-unwind-tables \ | |
- -I$(Z_TOOLS)/i386-elf-gcc/include -g -fno-stack-protector | |
-LDFLAGS += --entry=start --oformat=binary -Ttext 0x7c00 | |
+ -I$(Z_TOOLS)/i386-elf-gcc/include -g -fno-stack-protector \ | |
+ -m32 -march=i386 -fno-pie |
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
// 2020年10月版 | |
function DMMCalenderFromGmail() { | |
// メール本文のパース | |
function parseBody(body) { | |
// 開始時間と先生の名前の取得 | |
var matched = body.match(/様、(.*)の(.*)とのレッスン予約が完了しました./); | |
if (matched.length != 3) { | |
Logger.log("parse error at teacher and start time"); | |
return null; |
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 FindProxyForURL(url, host) { | |
return "SOCKS localhost:10080"; | |
} |
OlderNewer