Skip to content

Instantly share code, notes, and snippets.

Avatar

Roger Saner BurningDog

View GitHub Profile
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)
@BurningDog
BurningDog / Hi.jpg
Last active Jul 13, 2020 — forked from ryanlucas/Hi.jpg
Image Prototype Demo
View SketchSystems.spec
Cruises
View 1 available dates -> Cruise booking
Current -> Traveller
Cruise booking&
Itinerary
Hide full itinerary
Itinerary details -> Show full itinerary
Show full itinerary
Itinerary details -> Hide full itinerary
View SketchSystems.spec
Cruises
View 1 available dates -> API call Get available pricing
Current -> Pick your cabin experience
API
API call Get available pricing
Success -> Cruise booking
API call POST set pricing
Success -> Traveller
API call calculate cabin price
View machine.js
const fetchMachine = Machine({
id: "root",
states: {
"Say Thanks": {
id: "Say Thanks",
states: {
"View message": {
id: "View message",
states: {},
on: {
@BurningDog
BurningDog / config.yaml
Last active May 17, 2018 — forked from pkuczynski/parse_yaml.sh
Replace local Wordpress database (running inside Homestead) with production database
View config.yaml
prod:
# ssh authentication details
ssh: user@example.com
# path to wordpress on the server
wordpress: path/to/wordpress
# path to backups folder on the server (must exist)
backups: backups
# production url
url: www.example.com
View wordpress.patch
diff --git a/web/wp/wp-includes/load.php b/web/wp/wp-includes/load.php
index c7a46de..f52539e 100644
--- a/web/wp/wp-includes/load.php
+++ b/web/wp/wp-includes/load.php
@@ -318,7 +318,7 @@ function wp_debug_mode() {
}
if ( WP_DEBUG ) {
- error_reporting( E_ALL );
+ error_reporting( E_ALL & ~E_DEPRECATED);
@BurningDog
BurningDog / CountourFinder.cpp
Created Aug 15, 2013
Kinect returning invalid depth values for the centre of a blob when the x,y co-ordinates are outside of a very small range
View CountourFinder.cpp
//--------------------------------------------------------------------------------
int ContourFinder::findContours( ofxCvGrayscaleImage& input, ofxDepthGenerator& depth,
int camWidth,int camHeight,
int nearThreshold, int farThreshold,
int minArea,
int maxArea,
int nConsidered,
double hullPress,
bool bFindHoles,
bool bUseApproximation) {
You can’t perform that action at this time.