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
function setUserAgent(window, userAgent) { | |
// Works on Firefox, Chrome, Opera and IE9+ | |
if (navigator.__defineGetter__) { | |
navigator.__defineGetter__('userAgent', function () { | |
return userAgent; | |
}); | |
} else if (Object.defineProperty) { | |
Object.defineProperty(navigator, 'userAgent', { | |
get: function () { | |
return userAgent; |
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
// initialize as soon as the DOM is ready | |
Session.set('CordovaLoaded', false); | |
Meteor.startup(function() { | |
console.log('cordova loading'); | |
// delay loading of cordova until after DOM is ready | |
// determine WHICH cordova to load | |
var cordovajspath = '/cordova-2.6.0.js'; | |
if (navigator.userAgent.match(/(iPad|iPhone|iOS)/) != null) { | |
cordovajspath = '/cordova-2.6.0-ios.js'; | |
} else if (navigator.userAgent.match(/(Android)/) != null) { |
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
sudo rm /usr/local/mysql | |
sudo rm -rf /usr/local/mysql* | |
sudo rm -rf /Library/StartupItems/MySQLCOM | |
sudo rm -rf /Library/PreferencePanes/My* | |
vim /etc/hostconfig and removed the line MYSQLCOM=-YES- | |
rm -rf ~/Library/PreferencePanes/My* | |
sudo rm -rf /Library/Receipts/mysql* | |
sudo rm -rf /Library/Receipts/MySQL* | |
Don't forget this: |