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
const Model = require( './model' ) | |
const createController = '../../helpers/createController' | |
module.exports = require( createController )( Model )( __dirname ) |
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
const colors = { | |
brown: [{ | |
'cornsilk': '#FFF8DC', | |
'blanchedalmond': '#FFEBCD', | |
'bisque': '#FFE4C4', | |
'navajowhite': '#FFDEAD', | |
'wheat': '#F5DEB3', | |
'burlywood': '#DEB887', | |
'tan': '#D2B48C', | |
'rosybrown': '#BC8F8F', |
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
#!/usr/bin/env bash | |
if csrutil status | grep -q "enabled"; then echo "You must disable SIP first."; exit 1; fi | |
KEXT=/System/Library/Extensions/AppleGraphicsPowerManagement.kext | |
sudo plutil -replace IOKitPersonalities.AGPM.Machines.MacBookPro6,2.Vendor10deDevice0a29 -json '{"BoostPState":[2,2,2,2],"BoostTime":[2,2,2,2],"Heuristic":{"Threshold_Low":[0,0,0,200],"IdleInterval":10,"SensorSampleRate":10,"Threshold_High_v":[0,0,98,100],"TargetCount":1,"SensorOption":1,"Threshold_High":[0,0,100,200],"ID":0,"Threshold_Low_v":[0,0,4,200]},"control-id":17}' $KEXT/Contents/Info.plist | |
sudo touch /System/Library/Extensions | |
sudo kextload -v $KEXT |
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
/** | |
* | |
* @var db Base de dados para backup e restauracao | |
*/ | |
var db = window.openDatabase("CAMINHO DO BANCO", "1.0", "NOME DO BANCO", 5 * 2048); | |
/** | |
* Mostra o erro de arquivo | |
* @param {obj} error Recebe o objeto de erro | |
* @returns {void} | |
*/ |
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
document.addEventListener("deviceready", deviceisready, false); | |
function deviceisready(){ | |
alert("Device Ready is called"); | |
document.addEventListener("backbutton", function(e){ | |
if ( $('.ui-page-active').attr('id') == 'mainpage') { | |
//window.location = "#exitDialog"; | |
exitAppPopup(); | |
}else{ | |
history.back(); |
NewerOlder