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 FindProxyForURL(url, host) { | |
return "SOCKS localhost:10080"; | |
} |
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
// 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 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
--- 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 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
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 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
Shader "Unlit/VR220Shader" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
} | |
SubShader | |
{ | |
Tags { "RenderType"="Opaque" } | |
Cull Front |
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
// 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 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 requests | |
from requests.adapters import HTTPAdapter | |
from requests.packages.urllib3.poolmanager import PoolManager | |
class SourceAddressAdapter(HTTPAdapter): | |
def __init__(self, source_address, **kwargs): | |
self.source_address = source_address | |
super(SourceAddressAdapter, self).__init__(**kwargs) |
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
#! | |
#include-once | |
#include | |
#cloud-config | |
#cloud-boothook | |
sudo apt-get update | |
sudo apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 DMMCalenderFromGmail() { | |
// prefixとsuffixに挟まれた文字列の取得 | |
function findLine(body, prefix, suffix) { | |
var istart, iend; | |
istart = body.indexOf(prefix) + prefix.length; | |
iend = istart + body.slice(istart).indexOf(suffix); | |
return body.slice(istart, iend); | |
} | |
NewerOlder