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
tiapp.xml (condensed to relevant bits): | |
<ios> | |
<plist> | |
<dict> | |
<key>CFBundleURLTypes</key> | |
<array> | |
<dict> | |
<key>CFBundleURLName</key> |
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
//http://stackoverflow.com/questions/35190920/wrapping-objects-in-js-best-pratices | |
// later in the code: | |
obj.addListener('click', function(){ | |
//Here I would prefer having access to wrapper's other children/functions | |
console.log(wrapper.anotherProperty); | |
console.log(wrapper.anotherFunction()); | |
}); |
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
.include "xc.inc" | |
.bss | |
sz_1: .space 16 | |
sz_2: .space 16 | |
mplab_x_bug: .space 2 | |
.section .const, psv |
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
//index.js: | |
Ti.API.info("Creating activity..."); | |
var activity = Ti.App.iOS.createUserActivity({ | |
activityType:'com.foo.message', | |
title:'Handoff Messenger', | |
userInfo:{ | |
msg: 'Tag! You\'re it!' | |
} | |
}); |
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
//INSERT WITH THE OTHER METHODS: | |
- name: setLoginBehavior | |
summary: | | |
Sets the behaviour that the module will attempt to use for authorize(). | |
description: | | |
Be sure to set this before calling authorize if this is needed. It is | |
recommended to follow Facebook's [guidelines](https://developers.facebook.com/blog/post/2015/10/29/Facebook-Login-iOS9) | |
for ideal login behavior | |
type: Number |
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
1) Add ezp in index.html: | |
- For whatever reason, not including both copies of jquery causes a moduleerr(?) | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.js"></script> | |
<script src='https://cdn.rawgit.com/igorlino/elevatezoom-plus/1.1.18/src/jquery.ez-plus.js'></script> | |
<script src='https://cdn.rawgit.com/igorlino/angular-elevatezoom-plus/1.1.18b/js/angular-ezplus.js'></script> | |
1b) Add in ezplus to angular dependecies in app.js: | |
angular.module('custom', [..., 'ezplus'])... |
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
//Please consult Instructions on usage and setup here: https://www.reddit.com/r/arma/comments/5l6g9n/record_yourself_from_a_different_perspective/dbul78j/ | |
//Code for Zeus GameMaster module's init field: | |
this addEventHandler ["CuratorObjectPlaced",{ | |
_arg1 = _this select 1; | |
if(_arg1 isKindOf "Helicopter") then{remoteVehicle = vehicle _arg1}; | |
}]; |
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
// ==UserScript== | |
// @name GitHubHeaderFixer | |
// @namespace GitHubHeaderFixer | |
// @version 1.0 | |
// @description Removes GitHub's Dark Header | |
// @include https://github.com/* | |
// @include https://*.github.com/* | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== |
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
import dateutil.parser | |
from ruletypes import RuleType | |
# elastalert.util includes useful utility functions | |
# such as converting from timestamp to datetime obj | |
from util import ts_to_dt | |
# Modified version of http://elastalert.readthedocs.io/en/latest/recipes/adding_rules.html#tutorial | |
# to catch events happening outside a certain time range |
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
<template> | |
<v-data-table | |
:items="items" | |
:headers="itemHeaders" | |
:multi-sort="true" | |
:sort-by="sort" | |
:sort-desc="true" | |
> | |
<template v-slot:header.action> | |
<slot /> |
OlderNewer