Skip to content

Instantly share code, notes, and snippets.

@Cyken-Zeraux
Cyken-Zeraux / gist:08b87fcf564858bf280b
Last active August 29, 2015 14:12
m64py registry
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\m64py]
[HKEY_CURRENT_USER\Software\m64py\m64py]
"size"=hex:40,00,56,00,61,00,72,00,69,00,61,00,6e,00,74,00,28,00,00,00,00,00,\
00,00,7f,00,00,00,00,00,00,00,0e,00,50,00,79,00,51,00,74,00,5f,00,50,00,79,\
00,4f,00,62,00,6a,00,65,00,63,00,74,00,00,00,00,00,00,00,00,00,0c,00,80,00,\
03,00,4d,00,80,00,07,00,4d,00,d3,00,03,00,86,00,71,00,00,00,2e,00,29,00
"keep_aspect"=dword:00000000
[XInput Controller]
plugged = True
plugin = 2
mouse = False
AnalogDeadzone = 4096,4096
AnalogPeak = 32768,32768
DPad R = hat(0 Right)
DPad L = hat(0 Left)
DPad D = hat(0 Down)
DPad U = hat(0 Up)
function supamicrotime() {
list($usec, $sec) = explode(' ', microtime());
return (float)$usec;
}
for ($y=0; $y<100; $y++) {
$beforex = supamicrotime();
for ($z=0; $z<10; $z++) {
test_function();
{
"Dataset":[
[
"Rank",
"1",
"2",
"Rank"
],
[
"Name",
{
"Dataset":[
{
"Rank":[
"1",
"2",
"3",
"4",
"5",
"6",
@Cyken-Zeraux
Cyken-Zeraux / gist:dd7577d284c5977f3c50
Last active August 29, 2015 14:13
example data naming
function afunction($array) {
//does some processing
return $array;
}
//Data to be trimmed
$dataarray0 = array("foobar", "This\n");
$dataarray1 = array("Cybran", "is\n\n\n\n");
$dataarray2 = array("UEF", "an");
[{"foobar":"This\n"},{"cybran":"is\n\n\n\n"},{"uef":"an"},{"seraphim":"example"},{"honkeys":" "}]
char x;
int z = 0;
for (int i=0; i < word.length(); i++) {
x = word.toLowerCase().charAt(i);
if (x=='a' || x=='e' || x=='i' || x=='o' || x=='u') {
z++;
}
}
return z;
<?php
//Downloads a file with file_get_contents or cURL without locking up GUI.
//Has error where program will randomly crash on processing thread, no error outputted to console.
//This can be reproduced by clicking the button multiple times, sometimes it happens more than others.
//This is an odd error, and this is the best I've gotten to work.
//Sources from: https://github.com/krakjoe/pthreads/issues/155
//https://github.com/wxphp/wxphp/blob/master/examples/thread.php
{
"lang": {
"Language": "English",
"TF_LessThan": "<",
"TF_GreaterThan": ">",
"TF_Select": "SELECT"
"TF_AutoAssign": "&1 AUTO ASSIGN",
"TF_BlueTeam": "&3 BLU",
"TF_RedTeam": "&4 RED"
"TF_Observer": "OBSERVER",