Skip to content

Instantly share code, notes, and snippets.

View zenril's full-sized avatar
🎯
Focusing

Faxwang zenril

🎯
Focusing
View GitHub Profile

Below is a comprehensive Markdown document that explains what the script does, how it works, and the commands/parameters you can use.


Gravity CraftScript Documentation

This CraftScript allows you to move a specified block type one block at a time within your WorldEdit selection. The movement can be performed in various directions—vertical (up, down), cardinal (north, east, south, west), and relative to your position (left, right, forward, back). The script processes the entire region in memory (by building a 3D array of the blocks), performs the movement for a specified number of iterations (or a percentage of the region’s maximum moves), and then updates the world in one pass.


@zenril
zenril / deploy
Created March 4, 2019 04:50
deploy
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )";
NAME="thing"
NODE_BIN_DIR=$(nvm which node | sed 's/\([/][^/]*\)\{1\}$//g')
NODE_PATH="$(nvm which node | sed 's/\([/][^/]*\)\{2\}$//g')/lib/node_modules"
SOURCEDIR="$DIR/app"
APPLICATION_PATH="$SOURCEDIR/bot.js"
@zenril
zenril / generl.list
Last active March 19, 2019 04:00
generl
[sfx]
🚽=https://freesound.org/data/previews/378/378316_7020096-lq.mp3
[textrules]
cheese=noodles
pinch=punch
oooo+=o
\\d\[a-b\]\.\*\\d=tippo
userSettings:
3456789009876 :
language : en-au
voice : en-au
gender : female
pitch : 3000
sfx:
- emoji : last_quarter_moon_face
sound_url : https://soundurl.com/sound.mp3
add a -> b
add c -> e
addRegex .* -> f
@zenril
zenril / deploy
Created February 27, 2019 12:15
deploy
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )";
NAME="thing"
NODE_BIN_DIR=$(nvm which node | sed 's/\([/][^/]*\)\{1\}$//g')
NODE_PATH="$(nvm which node | sed 's/\([/][^/]*\)\{2\}$//g')/lib/node_modules"
SOURCEDIR="$DIR/app"
APPLICATION_PATH="$SOURCEDIR/bot.js"
@zenril
zenril / list.txt
Created February 17, 2019 07:51
textrules for the wangers.
your -> you're
woot -> some-burger-guy
esky -> chullybin
choccy -> choc-ee
chillybin -> esky
brumby -> brumbo
ffs -> for-fucks-sake
☕ -> Ah coffee, the elixir of life
<@!240365702790381568> -> fax is amazing
jam -> 🥖
@zenril
zenril / BotsModel.js
Created April 6, 2017 09:52
mobx sample
import { observable, computed, action, asMap } from 'mobx';
// import slug from 'slug';
let instance = null;
export class BotsModel {
@observable bots = [];
@observable selected = {};
addBots (bots){
@zenril
zenril / Router.class.php
Created July 28, 2015 05:53
Advanced router
<?php
namespace MToolBox\Core;
use Exception;
class Routes {
public $routes;
public $all;
function Routes( ) {
$this->routes = array();
$this->all = array();
class PostType {
public $post_type;
private $name;
private $plural;
private $altArgs;
function PostType( $post_type, $single_name, $plural_name = '', $altArgs = array() ) {
if(isset($post_type) && isset($single_name)){
$this->post_type = $post_type;