Skip to content

Instantly share code, notes, and snippets.

@gifnksm
gifnksm / ldrnail.ks.js
Last active August 29, 2015 14:00 — forked from 958/ldrnail.ks.js
// Info
let PLUGIN_INFO =
<KeySnailPlugin>
<name>LDRnail</name>
<description>LDRize clone with KeySnail</description>
<description lang="ja">LDRize を KeySnail で</description>
<iconURL>https://sites.google.com/site/958site/Home/files/ldrnail.png</iconURL>
<updateURL>https://gist.github.com/958/1369730/raw/ldrnail.ks.js</updateURL>
<author>958</author>
struct Doc;
#[cfg(not(phantom))]
struct Node<'a> {
doc: &'a Doc
}
#[cfg(phantom)]
struct Node<'a>;
// ==UserScript==
// @name gunosy redirect
// @namespace gifnksm.hatenablog.jp
// @include https://gunosy.com/articles/*
// @version 1.0.2
// @grant none
// @downloadURL https://gist.github.com/gifnksm/cc0ae271dab4b31036d1/raw/gunosy_redirect.user.js
// @author NAKASHIMA, Makoto <makoto.nksm+github@gmail.com>
// ==/UserScript==
@gifnksm
gifnksm / hello.lto.js
Created March 8, 2016 12:48
hello.rs を JS へコンパイルした結果
This file has been truncated, but you can view the full file.
// The Module object: Our interface to the outside world. We import
// and export values on it, and do the work to get that through
// closure compiler if necessary. There are various ways Module can be used:
// 1. Not defined. We create it here
// 2. A function parameter, function(Module) { ..generated code.. }
// 3. pre-run appended it, var Module = {}; ..generated code..
// 4. External script tag defines var Module.
// We need to do an eval in order to handle the closure compiler
// case, where this code here is minified but Module was defined
// elsewhere (e.g. case 4 above). We also need to check if Module
@gifnksm
gifnksm / .gitignore
Last active October 25, 2019 05:12
Rust array index bounds check benchmark
target
@gifnksm
gifnksm / Makefile
Last active August 19, 2023 10:01
Makefile Template
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
MAKEFLAGS += --no-builtin-variables
SHELL := bash
.SHELLFLAGS := -eu -o pipefail -c
.DELETE_ON_ERROR:
.SECONDARY: # don't remove intermediate files
.SECONDEXPANSION: