Skip to content

Instantly share code, notes, and snippets.

@mockey
mockey / deploy-hooks share-after.yml
Created April 2, 2017 18:31
Add wp language files on trellis deploy
---
- block:
- name: Install language files
command: wp core language install {{ item }}
args:
chdir: "{{ deploy_helper.new_release_path }}"
# check for existance of po-file, language install should only run once:
creates: "{{ deploy_helper.new_release_path }}/web/app/languages/{{ item }}.po"
with_items: "{{ project.languages }}"
@mockey
mockey / gist:d8f5f3c802ea3557317e
Last active October 13, 2021 13:00
Basic Haxe extern for jQuery UI Dialog
// extern for jQuery UI Dialog (version: 1.8.17)
// docs: http://jqueryui.com/demos/dialog/
package jquery.ui;
extern class Dialog {
inline static function dialog(jq:js.JQuery, opt:OptionsOrString):js.JQuery {
return untyped jq.dialog(opt);
}
}
@mockey
mockey / Main.hx
Created November 1, 2013 02:26
multipart upload test for mod_neko
package;
import haxe.io.Bytes;
import neko.Lib;
import neko.Web;
import sys.io.File;
import sys.io.FileOutput;
using StringTools;
class Main {
@mockey
mockey / IAutoProperty.hx
Created June 26, 2012 23:25
create class property from interface methods
package;
#if macro
import haxe.macro.Expr;
import haxe.macro.Context;
using Lambda;
using StringTools;
#end
#if !macro @:autoBuild(Macro.addProperties()) #end