Skip to content

Instantly share code, notes, and snippets.

@snipsnipsnip
snipsnipsnip / chrome-i18n.js
Last active January 11, 2020 11:37 — forked from eligrey/chrome-i18n.js
Easy i18n for your Chrome extensions and apps' DOM.
/*
* A cut-down i18n utility. @snipsnipsnip
* Based on Chrome DOM i18n By Eli Grey, http://eligrey.com
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/
"use strict";
for (let e of document.querySelectorAll("[data-i18n]")) {
@snipsnipsnip
snipsnipsnip / build.xml
Created August 7, 2012 10:46
ant build.xml for netbeans with ivy integration
<?xml version="1.0" encoding="UTF-8"?>
<project name="JavaApplication2" default="default" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant">
<description>Builds, tests, and runs the project JavaApplication2.</description>
<import file="nbproject/build-impl.xml"/>
<property name="ivy.install.version" value="2.3.0-rc1" />
<property name="ivy.jar.dir" value="${basedir}/ivy" />
<property name="ivy.cache.dir" value="${basedir}/ivy" />
<property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar" />
<property name="ivy.lib" value="${basedir}/lib" />
@snipsnipsnip
snipsnipsnip / synthesizer.rb
Last active August 24, 2019 16:10 — forked from koguro/scheme_baton.scm
ruby に移植 (第1回 Scheme コードバトンの成果のsynthesizer)
# https://gist.github.com/297312 から
# rubyで遊んでみたかったので勝手に移植させていただきました
module Synthesizer
module_function
# RIFFフォーマットのwavデータを生成します。
# sampling_rate: サンプリングレート
# wave_data: 波形データ。振幅の値(-1から1の値)のリストになります。
# 戻り値: wavデータの不完全文字列
@snipsnipsnip
snipsnipsnip / debug.h
Last active August 24, 2019 15:34 — forked from takuma104/spherical_panorama_sample.rb
spherical_panorama_sample.c
#ifndef DEBUG_H_
#define DEBUG_H_
#ifdef _MSC_VER
# define DEBUG_H_FUNCTION_NAME __FUNCTION__
#else
# define DEBUG_H_FUNCTION_NAME __func__
#endif
#define PrintInfoFormatIntlIntl(p,line) \