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. Open up your adjust app settings | |
2. Select events | |
3. Paste & run in console | |
4. Copy your map EVENT_NAME->EVENT_TOKEN | |
*/ | |
var tokens = {}; | |
var lis = document.querySelectorAll("[scroll='event-types'] li[event='event']"); | |
lis.forEach(function (li) { |
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
; AutoIt script to position window by name (will position Flash Player window by default). | |
; Useful while working on flash projects with FlashDevelop for example, to position the debug window in the same position every launch. | |
; PositionWindow.exe <title> <mode> <x> <y> <interval> | |
; title: string to search in window title. Default is "Adobe Flash Player" | |
; mode: possible values. Default is "loop" | |
; - loop: will reposition every <interval> milliseconds | |
; - wait: will poll every <interval>ms until window appears then positions it once | |
; - once: just positions the window on execution | |
; x/y: pixels value or center. Defaults are 0 |
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
package tests.reboot { | |
import flash.display.Bitmap; | |
import flash.display.Sprite; | |
import flash.ui.Multitouch; | |
import flash.ui.MultitouchInputMode; | |
import flash.utils.setTimeout; | |
import starling.core.Starling; | |
import starling.display.Image; | |
import starling.display.Sprite; | |
import starling.textures.Texture; |
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
package starling.extensions | |
{ | |
import fl.text.TLFTextField; | |
import flash.geom.Matrix; | |
import flash.text.AntiAliasType; | |
import flash.text.Font; | |
import flash.text.FontStyle; | |
import flash.text.TextFormat; | |
import flash.text.engine.FontLookup; | |
import starling.display.MeshBatch; |
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
; Adds a "Open CMD here" option to context menu (right click in a folder) than runs cmd with the current folder location | |
; Ex. in C:\Users\Peter\MyFolder, right click & select "Open cmd here" will open cmd with C:\Users\Peter\MyFolder> | |
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\Open CMD here] | |
@="Open &CMD here" | |
"Icon"="cmd.exe,0" | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\Open CMD here\command] |
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
# Author: @cameron_vdb | |
# | |
# Renames anonymous functions in AS3 files with following pattern: _anonymous_myPackage_MyClass_l<line number> (...) | |
# Allows easy debugging of anonymous functions in release builds at runtime. | |
# You should run the script in name mode before the build and run it in unname mode after the build to remove function names from your code. | |
# The script currently only runs on your current project files and does not process referenced projects. | |
# | |
# Usage: python names.py <name|unname> <ProjectRootFolder> [<buildType>] | |
# name to add function names, unname to remove them. | |
# buildType is optional, if defined, script will only run if buildType == "release" |
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
:: Creating iOS certificates on windows for Adobe AIR | |
:: Install OpenSSL: https://www.openssl.org/source/ | |
:: 1. Use cmd to get to openssl bin folder | |
:: 2. run openssl | |
:: 3. in openssl console: genrsa -out ios_distribution.key 2048 | |
:: 4. in openssl console: req -new -key ios_distribution.key -out CertificateSigningRequest_distribution.certSigningRequest -subj "/emailAddress=<[email protected]>, CN=<YourCompany>, C=<CountryCode:FR>" | |
:: 5. repeat 4. with "_development" instead of "_distribution" | |
:: 6. Use both CSR requests on itunes portal to generate the certificate files (.cer) | |
:: 7. Use this .bat to generate the .p12 files | |
:: Bonus. Same process to generate push certificates |
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
// Handy function to render dynamic parameters in a dust.js helper | |
function renderParameter(name, chunk, context, bodies, params) { | |
if (params && params[name]) { | |
if (typeof params[name] === "function") { | |
var output = ""; | |
chunk.tap(function (data) { | |
output += data; | |
return ""; | |
}).render(params[name], context).untap(); | |
return output; |