<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
| const Model = require( './model' ) | |
| const createController = '../../helpers/createController' | |
| module.exports = require( createController )( Model )( __dirname ) |
| const colors = { | |
| brown: [{ | |
| 'cornsilk': '#FFF8DC', | |
| 'blanchedalmond': '#FFEBCD', | |
| 'bisque': '#FFE4C4', | |
| 'navajowhite': '#FFDEAD', | |
| 'wheat': '#F5DEB3', | |
| 'burlywood': '#DEB887', | |
| 'tan': '#D2B48C', | |
| 'rosybrown': '#BC8F8F', |
| #!/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 |
| /** | |
| * | |
| * @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} | |
| */ |
| 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(); |