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
#!/bin/bash | |
# settings | |
# Login information of freenom.com | |
freenom_email="main@address" | |
freenom_passwd="pswd" | |
# Open DNS management page in your browser. | |
# URL vs settings: | |
# https://my.freenom.com/clientarea.php?managedns={freenom_domain_name}&domainid={freenom_domain_id} | |
freenom_domain_name="domain.name" |
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 () { | |
// 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
(function () { | |
// interface | |
var ajax = function (args) { | |
return new ajaxObject(args); | |
}; | |
// object | |
var ajaxObject = function (args) { | |
// init | |
this.request = new XMLHttpRequest(); |
OlderNewer