This file contains 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
// Facetwp A11Y Pager | |
function fs_a11y_facetwp_pager_html( $output, $params ) { | |
$output = ''; | |
$page = $params['page']; | |
$total_pages = $params['total_pages']; | |
if ( 1 < $total_pages ) { |
This file contains 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
//reference: \wp-content\plugins\facetwp\assets\js\front.js - Generate the user selections | |
wp.hooks.addAction('facetwp/loaded', function () { | |
// add custom code here | |
var selections = ''; | |
jQuery.each(FWP.facets, function (key, val) { | |
if (val.length < 1 || 'undefined' === typeof FWP.settings.labels[key]) { | |
return true; // skip this facet | |
} | |
var choices = val; |
This file contains 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
(function($) { | |
$.fn.fSelect = function(options) { | |
if ('string' === typeof options) { | |
var settings = options; | |
} | |
else { | |
var settings = $.extend({ | |
placeholder: 'Select some options', |
This file contains 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
func tileset_from_scene(scene, library, merge): | |
""" | |
@scene Node - The input scene | |
@library TileSet - The output tileset | |
@merge bool - Preserve old tiles | |
""" | |
if merge: | |
library.clear() | |
for child in scene.get_children(): |
This file contains 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
#..global save func | |
func save_hero(hero): | |
#grab data | |
var data = hero.get_package() | |
#init save file | |
var save = File.new() | |
var path = 'res://data/heroes/'+hero.get_name()+'.zd' | |
save.open(path,File.WRITE) | |
#save data | |
save.store_line(data.to_json()) |
This file contains 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
{ | |
"name": "foo", | |
"version": "1.0.0", | |
"description": "foo project", | |
"main": "index.js", | |
"scripts": { | |
"start": "npm run serve | npm run watch-css", | |
"serve": "./node_modules/.bin/http-server -p 8080", | |
"build-css": "./node_modules/node-sass/bin/node-sass app/sass/style.scss -o app/css/ && ./node_modules/postcss-cli/bin/postcss --use autoprefixer app/css/style.css -d app/css/", | |
"watch-css": "nodemon -e scss -x 'npm run build-css'" |
This file contains 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
/* keep the toolbar in it's position and don't let it float */ | |
#jira #stalker { | |
position: relative !important; | |
top: auto !important; | |
} | |
/* on individual issues: hide the floating toolbar (in favour of keeping it at the top of the page) */ | |
#jira .stalker-placeholder.issue-header.js-stalker { | |
display: none !important; | |
} |
This file contains 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
extends Sprite | |
var grid_size = 32 | |
var speed = 64 # speed in pixels per second | |
var direction = Vector2(1, 0) # move in positive x direction, adapt this in your code for other directions | |
var is_moving = false | |
var moved_dist # keep track of how much we already moved | |
func _fixed_process(delta): | |
if Input.is_action_pressed("myInputAction") and !is_moving: |
This file contains 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
extends Control | |
var game | |
var current_event = 0 | |
var event_object = {-1: null} | |
# EVENT SENSORS |
This file contains 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
extends Node | |
var exit_block = load("res://scenes/exit_confirmation.scn") | |
var open = false | |
var confirmation = null | |
var create = false | |
NewerOlder