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
-- class.lua | |
-- By: Jaezmien Naejara | |
local clone | |
do | |
clone = function (orig) | |
local orig_type = type(orig) | |
local copy | |
if orig_type == 'table' then | |
copy = {} |
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
export default class Pauser { | |
private paused: boolean = false; | |
private resolve: any = undefined; | |
Pause() { | |
if( this.paused ) return; | |
this.paused = true; | |
return new Promise((res) => { this.resolve = res; }); | |
} |
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
V1: | |
BuildAddress: 0x006AED20 | |
Address: 0x00896950 | |
BuildDate: 20161224 | |
Size: 10 | |
V2: | |
BuildAddress: 0x006B7D40 | |
Address: 0x008A0880 | |
BuildDate: 20170405 | |
Size: 10 |
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 exec_js(code) { | |
var _log = console.log; | |
var logs = []; | |
console.log = function(...value) { | |
_log.apply(console, arguments); | |
logs.push( value ); | |
} | |
Function( code )(); | |
console.log = _log; | |
return logs; |
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
const debounce = function(f, t) { | |
let id; | |
return function() { | |
if( id ) clearTimeout(id); | |
id = setTimeout(() => {id = null; f()}, t); | |
} | |
} |
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
using System.Numerics; | |
namespace Minecraft | |
{ | |
class TinyBlockPos | |
{ | |
private static long X_MASK = (1L << 26) - 1L; | |
private static long Y_MASK = (1L << 12) - 1L; | |
private static long Z_MASK = (1L << 26) - 1L; | |
private Vector3 position; |
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
return { | |
-- + Special Characters (1) | |
[' '] = 0, | |
['space'] = 0, | |
['!'] = 1, | |
['"'] = 2, | |
['"'] = 2, | |
['#'] = 3, | |
['$'] = 4, | |
['%'] = 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
# *heavily* based on blender's export_obj.py addon + obvr's obj2ms3dascii | |
# for use with Blender 2.7x and below | |
import bpy | |
import os | |
import shutil | |
import mathutils | |
from bpy_extras import io_utils | |
from bpy_extras.io_utils import ExportHelper, path_reference_mode, axis_conversion, orientation_helper_factory | |
from bpy.props import StringProperty, BoolProperty, FloatProperty |
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 | |
rem ; Set environment to local so that we don't leak variables | |
setlocal | |
set ytid=%1 | |
IF "%ytid:~0,24%"=="https://www.youtube.com/" goto warning-link | |
IF "%ytid:~0,23%"=="http://www.youtube.com/" goto warning-link | |
IF "%ytid:~0,20%"=="https://youtube.com/" goto warning-link |
OlderNewer