This file contains hidden or 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 Router { | |
public $routes; | |
function Router( $map ) { | |
$this->routes = $map; | |
add_filter( 'parse_request' , array( &$this , 'request_parser' ) ); | |
} | |
function request_parser($params) { |
This file contains hidden or 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 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; |
This file contains hidden or 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 | |
namespace MToolBox\Core; | |
use Exception; | |
class Routes { | |
public $routes; | |
public $all; | |
function Routes( ) { | |
$this->routes = array(); | |
$this->all = array(); |
This file contains hidden or 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 { observable, computed, action, asMap } from 'mobx'; | |
// import slug from 'slug'; | |
let instance = null; | |
export class BotsModel { | |
@observable bots = []; | |
@observable selected = {}; | |
addBots (bots){ |
This file contains hidden or 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
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 -> 🥖 |
This file contains hidden or 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
#!/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" |
This file contains hidden or 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
add a -> b | |
add c -> e | |
addRegex .* -> f |
This file contains hidden or 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
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 |
This file contains hidden or 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
[sfx] | |
🚽=https://freesound.org/data/previews/378/378316_7020096-lq.mp3 | |
[textrules] | |
cheese=noodles | |
pinch=punch | |
oooo+=o | |
\\d\[a-b\]\.\*\\d=tippo |
This file contains hidden or 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
#!/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" |
OlderNewer