Skip to content

Instantly share code, notes, and snippets.

View partial_config.yaml
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
View partial_config.yaml
# 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!!!!!'
View partial_config.yaml
# 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
View partial_config.yaml
# 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
View config.yaml
#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 Jun 11, 2020
Mission Pinball Framework Config for a Joystick Target
View directional_target.yaml
#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
View gist:50ccf8c32fe1b1dcf1e88495342962ce
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;
View bswitch.el
;;;; 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 Nov 11, 2013
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<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>
View SassMeister-input-HTML.html
<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>