This file contains hidden or 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
# Intercom | |
Intercom.boot | |
'app_id': INTERCOM_APP_ID | |
'email': auth.profile.email | |
'name': auth.profile.name | |
'created_at': new Date(auth.profile['created_at']).getTime() / 1000 | |
'user_id': auth.profile['user_id'] | |
'widget': | |
'activator': '#intercom-activator' |
This file contains hidden or 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
// Ported from Stefan Gustavson's java implementation | |
// http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf | |
// Read Stefan's excellent paper for details on how this code works. | |
// | |
// Sean McCullough banksean@gmail.com | |
/** | |
* You can pass in a random number generator object if you like. | |
* It is assumed to have a random() method. | |
*/ |
This file contains hidden or 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 | |
namespace path\to\lib; | |
use \lithium\data\entity\Record; | |
/** | |
* This class can extend either \lithium\data\entity\Record or \lithium\data\entity\Document | |
* and takes care of automatically calling getters and setters in the format getProperty and | |
* setProperty. |