Skip to content

Instantly share code, notes, and snippets.

window:
width: 800
height: 240
# This applies the glow shader to our display. You can read more
# about the settings for this effect here:
# http://docs.missionpinball.org/en/dev/displays/widgets/display/effects.html?highlight=glow#settings-for-glow-effect
effects:
- type: glow
blur_size: 5.0
intensity: .6
# This section defines a show called 'left_to_right'. Each step in the
# show sets the 'display_text' variable to a new value. We didn't
# specify a duration for the steps so each step will run for the
# default duration of 1 second.
shows:
left_to_right:
- variables:
display_text:
action: set_machine
string: 'PRESS!START!!!!!'
# This section defines a machine variable called 'display_text'
machine_vars:
display_text:
initial_value: '!!!!!!!!!!!!!!!!'
value_type: str
persist: False
widgets:
display_text:
- type: text
# This section defines a machine variable called 'display_text'
machine_vars:
display_text:
initial_value: '!!!!!!!!!!!!!!!!'
value_type: str
persist: False
widgets:
display_text:
- type: text
#config_version=5
# This defines our display. New slides will automatically be placed
# here since this is the only display.
displays:
window:
width: 800
height: 240
# This section defines some common widget settings so we don't
@seanirby
seanirby / directional_target.yaml
Last active June 11, 2020 12:09
Mission Pinball Framework Config for a Joystick Target
#config_version=5
# This mode detects collisions on our joystick target. It emits these
# 5 events for each of the different collisions that can occur:
# joystick_left_hit
# joystick_diagonal_left_hit
# joystick_up_hit
# joystick_diagonal_right_hit
# joystick_right_hit
class BlinkManager {
constructor(displayObj, changeFunc1, changeFunc2, changeFuncEnd, rate, duration){
this.displayObj = displayObj;
this.changeFuncEnd = changeFuncEnd;
this.duration = duration;
this.rate = rate;
this.blinkCount = 0;
this.totalCount = 0;
this.last = changeFunc2;
this.next = changeFunc1;
;;;; Hydra for quickly switching among the 8 most recent buffers
;;;; by using the home row keys.
;; This is the command that toggles the hydra.
;; Change the keybinding if you like
(global-set-key (kbd "C-c j") 'hydra-bswitch/body)
(defvar bswitch-map (list 1 "a"
2 "s"
3 "d"
@seanirby
seanirby / SassMeister-input-HTML.html
Created November 11, 2013 04:10
Generated by SassMeister.com.
<div>
<p><span>S</span>yntactically</p>
<p><span>A</span>wesome</p>
<p><span>S</span>tyle</p>
<p><span>S</span>heets</p>
</div>
<h1>Use Math Operators Anywhere!</h1>
<div class="row">
<div class="column grid_12"><p>12</p></div>
</div>
<div class="row">
<div class="column grid_6"><p>6</p></div>
<div class="column grid_6"><p>6</p></div>
</div>