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
const accountId = 'PJ0XXXXXXXXX' // Your Account ID | |
const apiKey = 'your_api_key' // Your API Key | |
const passjinni = require('@passjinni/node') | |
const client = new passjinni(accountId, apiKey) | |
client.passes.create({ | |
name: 'Elon Musk', | |
mobile: '+12345678901', | |
platform: 'ios', | |
}).then(pass => console.log(pass.url)) |
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
/** | |
* json2xml - Convert an xml2js JSON object back to XML | |
* @inspired_by Derek Anderson | |
*/ | |
var json2xml = function(json, root, cb){ | |
var recursion = 0; | |
var xml = ''; | |
var isArray = function(obj) { return obj.constructor == Array; }; | |
var parseAttributes = function(node){ |
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
/* Overrides the highlight color shown when the user taps a link */ | |
body | |
{ | |
-webkit-tap-highlight-color: rgba(0,0,0,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
$(selector).click(function(event){ | |
/* click event handler */ | |
}); | |
/* vs. */ | |
$(selector).bind('touchend', function(event){ | |
/* mimic the "native" tapping here... */ | |
}); |
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<templates> | |
<template autoinsert="true" context="php" deleted="false" description="for-each statement wrapper" enabled="true" name="foreachify">foreach (${dollar}${array_expression} as ${dollar}${value}) { | |
${word_selection}${cursor}; | |
} | |
</template> | |
<template autoinsert="true" context="php" deleted="false" description="for statement wrapper" enabled="true" name="forify">for (${dollar}${index} = 0; ${dollar}${index} < ${number_variable}; ${dollar}${index}++) { | |
${word_selection}${cursor}; | |
} | |
</template> |
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
<? | |
// get application location | |
$appLocation = getenv('ZS_APPLICATION_BASE_DIR'); | |
// modify htaccess | |
$htaccess_file = $appLocation . '/web/.htaccess'; | |
$explode = explode ( '/', $appLocation ); | |
$appname = $explode [sizeof ( $explode ) - 2]; | |
$content = file_get_contents ( $htaccess_file ); | |
$content = str_replace ( '<application-name>', $appname, $content ); |
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
<?php | |
class AuthController extends Zend_Controller_Action | |
{ | |
public function init() | |
{ | |
/* Initialize action controller here */ | |
} |
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<package xmlns="http://www.zend.com/server/deployment-descriptor/1.0" version="1.0"> | |
<name>Symfony2Cloud</name> | |
<version> | |
<release>1.0.0</release> | |
</version> | |
<appdir>data</appdir> | |
<docroot>data/web</docroot> | |
<scriptsdir>scripts</scriptsdir> | |
</package> |
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
<? | |
echo "hello world" |
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
<? | |
echo "hello world" |
NewerOlder