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
/*rozhnev commented on Apr 20 | |
I fixed issue for me by change*/ | |
var pathToManifest = path.join(cordovaContext.opts.projectRoot, 'platforms', 'android', 'cordovaLib', 'AndroidManifest.xml'); | |
//to | |
var pathToManifest = path.join( | |
cordovaContext.opts.projectRoot, |
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 | |
$db = new SQLite3("mydb.db"); | |
$perintah = <<<AOD | |
SELECT sql FROM sqlite_master WHERE type="table" | |
AOD; | |
$kerjakan = $db->query($perintah); | |
$table = ""; | |
while($hasil = $kerjakan->fetchArray()){ | |
$table = $hasil; | |
echo "<button>".$table["sql"]."</button><br/> "; |
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 | |
$db = new SQLite3("ayu.db"); | |
$perintah = <<<EOD | |
CREATE TABLE IF NOT EXISTS biodata | |
( | |
id integer PRIMARY KEY, | |
nama text, | |
email text, | |
password text, |
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 | |
$db = new SQLite3("ayu.db"); | |
$perintah = <<<EOD | |
INSERT INTO biodata | |
(nama,email,password,status) | |
VALUES | |
("malik","[email protected]","malik","kawin") | |
EOD; |
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 | |
$db = new SQLite3("ayu.db"); | |
$perintah = <<<EOD | |
SELECT * FROM biodata | |
EOD; | |
$laksanakan = $db->query($perintah); | |
while($raw = $laksanakan->fetchArray()){ | |
echo $raw["id"]."|".$raw["nama"]."|".$raw["email"]."|".$raw["password"]."|".$raw["status"]; |
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 | |
$db = new SQLite3("ayu.db"); | |
$perintah = <<<EOD | |
ALTER TABLE biodata | |
ADD COLUMN umur text NOT NULL | |
EOD; | |
$laksanakan = $db->query($perintah); | |
if(!$laksanakan){ |
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 | |
$db = new SQLite3("mydb.db"); | |
$perintah = <<<AOD | |
SELECT name FROM sqlite_master | |
AOD; | |
$lakukan = $db->query($perintah); | |
while($data = $lakukan->fetchArray()){ | |
//echo $data["name"]." | "; | |
} |
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
let calNum = function(num) { | |
this.num = num; | |
this.add = function(dif, callback) { | |
this.num = this.num + dif; | |
callback(this.num); | |
return this; | |
} | |
this.sub = function(dif, callback) { | |
this.num = this.num - dif; | |
callback(this.num); |
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
File.prototype.base64 = function(callback){ | |
var fr = new FileReader(); | |
fr.onload = function(e){ | |
callback(e.target.result); | |
} | |
fr.readAsDataURL(this); | |
} | |
gambarUpload.onchange = function(){ | |
gambarUpload.files[0].base64(function(e){ | |
console.log(e) |
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
File.prototype.ubah = function(callback){ | |
var fr = new FileReader(); | |
fr.onload = function(e){ | |
callback(e.target.result); | |
} | |
fr.readAsDataURL(this); | |
} | |
var inp = document.getElementById("chooseImage"); | |
inp.onclick = function(){ | |
inp[0].ubah(function(base64){ |