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
/** | |
* myBrainfuck; Javascript Brainfuck Interpreter | |
* http://actinium.org/ <Lianol> | |
* Usage: | |
* var interpreter = new MyBrainfuck(); | |
* var result = interpreter.execute(source); | |
* alert(result.stdout); | |
*/ | |
(function () { | |
var myBrainfuck = function (option) { |
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
/** | |
* myidenticon.js; 3x3 Grid icon generator template for JavaScript + Canvas | |
* (C) Lianol <actinium.org> | |
*/ | |
(function (w, d, undefined) { | |
/** | |
* Constructor | |
* @param {object} option Override Defaults | |
*/ |
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
detect_method=198 | |
min_show_segment_length=125 | |
max_volume=15 | |
min_silence=20 | |
subtitles=0 | |
logo_threshold=0.22 | |
logo_filter=4 | |
volume_slip=30 | |
output_vdr=1 |
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
#define F_CPU 1000000UL | |
#include <stdio.h> | |
#include <avr/io.h> | |
#include <util/delay.h> | |
#include <avr/interrupt.h> | |
#define DIGITS 6 | |
#define REFRESH_RATE 60 |
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
@echo off | |
:argsloop | |
rem no more arguments | |
if "%~1" == "" goto end | |
rem todo | |
rem end of todo | |
shift | |
goto argsloop |
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
/** | |
* recpt1 http serverをtvtest BonDriver_HTTP.dllをつかって起動/停止する | |
* 目的:少ないチューナーをtvtestで見るときだけ占有するようにして精神的安定感を得る | |
* | |
* $ nohup node recpt1-http-manager.js > /dev/null 2>&1 & | |
* | |
* などでこのスクリプトを起動しておき、BonDriver_HTTP.iniに | |
* | |
* NAME_n="起動" | |
* HOST_n="[server IP address]" |
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
/* | |
* how to use: | |
* fn: filterEventHandler(selector, callback) | |
* selector: selector for querySelectorAll, filtering event source, like jQuery.on(event, selector, callback) | |
* callback: event handler function | |
* returns: filtering function which contains reference of your callback | |
* | |
* code: | |
* element.addEventListener('eventname', filterEventHandler('.filter[selector*="for querySelectorAll"]', function (e) { | |
* // this code will be called only when element matched to selector |
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 () { | |
// interface | |
var ajax = function (args) { | |
return new ajaxObject(args); | |
}; | |
// object | |
var ajaxObject = function (args) { | |
// init | |
this.request = new XMLHttpRequest(); |
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 () { | |
// escape function | |
var escape = function (s) { | |
return (s || '').toString() | |
.replace(/&/g, '&') | |
.replace(/</g, '<') | |
.replace(/>/g, '>') | |
.replace(/"/g, '"') | |
.replace(/'/g, '''); | |
}; |
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
// polyfill/alternative method for iteration | |
// - breakable when callback 'return false;', quit iteration immediately. | |
// - capable only depends on numerical 'length' property, or iterate with keys. | |
// - flexible third argument 'thisArg' and return value | |
// make you possible to write efficient code with this method. | |
// - | |
var each = function (obj, callback, thisArg) { | |
// check object, callback function | |
if (!obj || typeof callback !== 'function') { | |
return; |
OlderNewer