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
<?php | |
//This is a port of Ken Perlin's "Improved Noise" | |
// http://mrl.nyu.edu/~perlin/noise/ | |
// Originally from http://therandomuniverse.blogspot.com/2007/01/perlin-noise-your-new-best-friend.html | |
// but the site appears to be down, so here is a mirror of it | |
class Perlin { | |
var $p, $permutation, $seed; |
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
// Generated by CoffeeScript 1.6.3 | |
(function() { | |
var avatar, blockPosErase, blockPosPlace, container, createGame, createPlayer, currentMaterial, defaults, extend, fly, game, generate, highlight, hl, makeFly, player, texturePath, voxel; | |
generate = function(x, y, z) { | |
if (x % 32 === 0 && z % 32 === 0) { | |
return 3; | |
} | |
if (x % 32 === 0 && y % 32 === 0) { | |
return 5; |
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
select d_year, s_nation, p_category, | |
sum(lo_revenue - lo_supplycost) as profit | |
from lineorder | |
join dim_date | |
on lo_orderdatekey = d_datekey | |
join customer | |
on lo_custkey = c_customerkey | |
join supplier | |
on lo_suppkey = s_suppkey | |
join part |
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
import javax.measure.*; | |
import javax.measure.converter.*; | |
import javax.measure.quantity.*; | |
import javax.measure.unit.*; | |
import javax.realtime.*; | |
import javolution.*; | |
import javolution.context.*; | |
import javolution.io.*; | |
import javolution.lang.*; | |
import javolution.testing.*; |
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
-- in dict.db | |
-- columns are created in partitions of file_max_hwm size | |
create table columns ( | |
column_id integer primary key, | |
rowcount, -- count of | |
extent_size integer, | |
name blob, | |
data_type integer, 0 = int, 1=unsigned int, 2=float, 3=double, 4=string | |
data_extra1, | |
data_extra2, |
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
#include "util.h" | |
extern "C" { | |
my_bool remote_exec_init(UDF_INIT *initid, UDF_ARGS *args, char* message) { | |
if(args->arg_count != 6) { | |
strcpy(message,"usage: remote_exec(host,port,user,pass,db,query)"); | |
return 1; | |
} | |
for(unsigned int i=0;i<args->arg_count;i++) { |
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
#include "mysql/service_my_plugin_user_var.h" | |
SERVICE_VERSION *user_var_service= (void*)VERSION_user_var;; | |
bool get_var(THD* thd, const String name, String* value) { | |
return false; | |
} | |
bool set_var(THD* thd, const String name, const String value) my_plugin_user_var_service->set_var(thd, name, value) { | |
return false; | |
} |
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
root@debian-c-32-64gib-nyc1-01:~/warpsql-server/build# make | |
[ 0%] Built target INFO_SRC | |
[ 0%] Built target INFO_BIN | |
[ 0%] Built target abi_check | |
[ 0%] Built target zlib | |
[ 1%] Built target edit | |
[ 2%] Built target event_extra | |
[ 3%] Built target event | |
[ 4%] Built target event_core | |
[ 10%] Built target icuuc |
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
#include "../../components/mysql_server/my_plugin_shim.h" | |
PSI_memory_key key_memory_shim_iterator; | |
/** | |
Its a dummy initialization function. And it will be called from | |
mysql_component_infrastructure_init(). Else linker, is cutting out (as | |
library optimization) the string service code because libsql code is not | |
calling any functions of it. | |
*/ |
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
package main | |
import ( | |
"database/sql" | |
"fmt" | |
"github.com/greenlion/go-myquery/myquery" | |
"github.com/pborman/getopt/v2" | |
"time" | |
) |