Skip to content

Instantly share code, notes, and snippets.

View philmccarty's full-sized avatar

Phil McC philmccarty

  • Los Angeles, CA
View GitHub Profile
@ttaylor
ttaylor / storekit.js
Last active January 5, 2016 20:15
Working Ti.Storekit example for 3.2.2GA. Has now been approved by Apple. This is for non-consummable on-device IAPs only.
var Storekit = require('ti.storekit'),
DZDynamicType = require('com.dezinezync.dynamictype'),
lang = Ti.App.Properties.getString('language');
Storekit.receiptVerificationSandbox = (Ti.App.deployType !== 'production');
Storekit.bundleVersion = 2.3.1; //TODO set current bundle version here
Storekit.bundleIdentifier = bundle; //TODO set bundle id here
var verifyingReceipts = true;
var win = Ti.UI.createWindow({
@petehouston
petehouston / .env.local.php
Last active February 19, 2024 10:50
[Laravel 4.2] The environment dotfile configuration
<?php
//file: /.env.local.php
// return the configuration for the 'local' environment
return array(
'db_host' => '127.0.0.1',
'db_name' => 'DB_NAME', // specify database name
'db_user' => 'DB_USER', // specify database username
'db_pass' => 'DB_PASS', // specify database password
);