Skip to content

Instantly share code, notes, and snippets.

View diogenese's full-sized avatar

warrendiogenese diogenese

  • Weaverville, CA USA
View GitHub Profile
@diogenese
diogenese / nopaste
Created September 8, 2017 04:43
clear page javascript
<html>
<head>
<title>XOR Binary Awsomeness</title>
<script language="JavaScript" type="text/javascript">
function go() {
var first = document.getElementById("first").value;
var second = document.getElementById("second").value;
var xord = "";
var result = "";
This process deals only with integers, so the effective decimal point
is shifted by a 100, 2 decimal places, each iteration.
The value subtracted from the remainder is:
sub_remainder = aux * divsor + divisor ^ 2
The auxilary value starts at 0 and after each iteration equals:
next_aux = ( aux + 2 * last_divisor ) * 10
Example: Square root of 2. Start with: aux == 0
DROP TABLE IF EXISTS `hts_modelset`;
CREATE TABLE `hts_modelset` (
`id` INT(10) unsigned NOT NULL AUTO_INCREMENT,
`name` VARCHAR(32) NOT NULL DEFAULT '',
`gender` ENUM('M','F','O') NOT NULL DEFAULT 'M',
`frequency` INT(6) unsigned NOT NULL DEFAULT '48000',
`frame` INT(4) unsigned NOT NULL DEFAULT '240',
`alpha` DECIMAL(5,4) NOT NULL DEFAULT '0.55',
`beta` DECIMAL(5,4) NOT NULL DEFAULT '0.0',
@diogenese
diogenese / backend.php
Created January 17, 2016 02:48
Backend to HTS demo site.
<?php
include( 'htsVoice.php' );
header('Content-type: application/json');
$vc = new htsVoice();
echo json_encode( $vc->data );
@diogenese
diogenese / embedded.variables.dat
Last active January 12, 2016 05:36
Embedded server global variables
aria_block_size = 8192
aria_checkpoint_interval = 30
aria_checkpoint_log_activity = 1048576
aria_force_start_after_recovery_failures = 0
aria_group_commit = none
aria_group_commit_interval = 0
aria_log_file_size = 1073741824
aria_log_purge_type = immediate
aria_max_sort_file_size = 9223372036853727232
aria_page_checksum = ON
@diogenese
diogenese / server.variables.dat
Last active January 12, 2016 05:37
Local MariaDB server global variables
aria_block_size = 8192
aria_checkpoint_interval = 30
aria_checkpoint_log_activity = 1048576
aria_force_start_after_recovery_failures = 0
aria_group_commit = none
aria_group_commit_interval = 0
aria_log_file_size = 1073741824
aria_log_purge_type = immediate
aria_max_sort_file_size = 9223372036853727232
aria_page_checksum = ON
[diohts_SERVER]
language = /usr/share/mysql/english
character_set_server = utf8mb4
collation_server = utf8mb4_unicode_ci
datadir = CLIENTDIR/diohts/data
skip-external-locking
key_buffer_size = 32k
max_allowed_packet = 1M
net_buffer_length = 2k
From fa3d7b8fdaa36c311e451c3077ed33baa7ee77b2 Mon Sep 17 00:00:00 2001
From: William Murphy <warrendiogenese@gmail.com>
Date: Thu, 5 Feb 2015 01:15:22 -0800
Subject: [PATCH] Mark all non-plugin object symbols as hidden
---
src/common/Makefile.am | 2 +-
src/common/hexchat-plugin.h | 86 ++++++++++++++++++++++++---------------------
2 files changed, 46 insertions(+), 42 deletions(-)
From 90cd1fcd8d3a9ea90197ca3ab320dca75fdcbde6 Mon Sep 17 00:00:00 2001
From: William Murphy <warrendiogenese@gmail.com>
Date: Wed, 4 Feb 2015 23:53:55 -0800
Subject: [PATCH] Mark all non-plugin object symbols as hidden
---
configure.ac | 2 +-
src/common/hexchat-plugin.h | 107 ++++++++++++++++++++------------------------
2 files changed, 49 insertions(+), 60 deletions(-)
/**
* Using packages compiled from MariaDB 10.0.15 source.
* Arch: x86_64
* Kernel version: 3.18.1
*
* This code was originally taken from example code in the mysql
* docs on how to set up an embedded server. It's been modified
* to initialize, use, then shut down and free all resources twice.
*
* The first call to mysql_library_end doesn't leave it in a state