Skip to content

Instantly share code, notes, and snippets.

Focusing on wain project

Linda_pp rhysd

Focusing on wain project
View GitHub Profile
View intersection-observer.d.ts
callback IntersectionObserverCallback = void (sequence<IntersectionObserverEntry> entries, IntersectionObserver observer)
[Constructor(IntersectionObserverCallback callback, optional IntersectionObserverInit options),
interface IntersectionObserver {
readonly attribute Element? root;
readonly attribute DOMString rootMargin;

NES emulator development guide

Overview of document

rhysd / js_run.js
Last active Nov 27, 2019
benchmark JSON vs JS Object
View js_run.js
const d = {
lastUpdate: 1574785732173,
entries: {
'Rust Benchmark': [
commit: {
author: {
email: '',
name: 'rhysd',
username: 'rhysd',
View foo.ll
; ModuleID = 'foo.c'
source_filename = "foo.c"
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-macosx10.12.0"
; Function Attrs: noinline nounwind ssp uwtable
define i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, i32* %1, align 4
rhysd / pre-push
Created Dec 1, 2018
pre-push check script in .git/hooks for Go project
View pre-push
# An example hook script to verify what is about to be pushed. Called by "git
# push" after it has checked the remote status, but before anything has been
# pushed. If this script exits with a non-zero status nothing will be pushed.
# This hook is called with the following parameters:
# $1 -- Name of the remote to which the push is being done
# $2 -- URL to which the push is being done
rhysd / cmd
Created Aug 11, 2018
setjmp/longjmp test
View cmd
emcc main.c --js-library main.js -o hello.html -s "EXTRA_EXPORTED_RUNTIME_METHODS=['ccall']"
View vim.wast
This file has been truncated, but you can view the full file.
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
(type $FUNCSIG$vii (func (param i32 i32)))
(type $FUNCSIG$vi (func (param i32)))
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(type $FUNCSIG$iiiii (func (param i32 i32 i32 i32) (result i32)))
(type $FUNCSIG$iiiiiiii (func (param i32 i32 i32 i32 i32 i32 i32) (result i32)))
(type $FUNCSIG$ii (func (param i32) (result i32)))
(type $FUNCSIG$i (func (result i32)))
View git-pull-pr.bash
#! /bin/bash
set -e
if [[ "$1" == "" ]]; then
echo "Usage: git pull-pr {PR number}" 1>&2
exit 1
git fetch origin "pull/$1/head:pr-$1"
rhysd /
Last active Jan 7, 2018
歌舞伎座 tech #2 LT 資料


13 Nov 2013 歌舞伎座 tech#2



View bench.rb
#!/usr/bin/env ruby
require 'benchmark'
puts Benchmark.measure {
s = ""
5000000.times do
s << "hey, hey, "
You can’t perform that action at this time.