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
| editor.addKeyMap({ | |
| // bold | |
| 'Ctrl-B': function(cm) { | |
| var s = cm.getSelection(), | |
| t = s.slice(0, 2) === '**' && s.slice(-2) === '**'; | |
| cm.replaceSelection(t ? s.slice(2, -2) : '**' + s + '**', 'around'); | |
| }, | |
| // italic | |
| 'Ctrl-I': function(cm) { | |
| var s = cm.getSelection(), |
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 | |
| // Based on <https://github.com/mecha-cms/x.minify> | |
| namespace x\minify\_ { // start namespace | |
| $n = __NAMESPACE__; | |
| \define($n . "\\token_boolean", '\b(?:true|false)\b'); | |
| \define($n . "\\token_number", '-?(?:(?:\d+)?\.)?\d+'); |
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
| server { | |
| listen 443 ssl; | |
| root /path/to/www; | |
| index index.php index.html; | |
| server_name your-site-domain.tld; |
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 | |
| /*! | |
| * ======================================================= | |
| * Author : Taufik Nurrohman | |
| * URL : https://github.com/taufik-nurrohman | |
| * License : MIT | |
| * ======================================================= | |
| * | |
| * -- CODE: ---------------------------------------------- |
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 | |
| function do_slug($text, $lower = true, $strip_underscores_and_dots = true, $connector = '-') { | |
| $text_accents = array( | |
| // Numeric characters | |
| '¹' => 1, | |
| '²' => 2, | |
| '³' => 3, | |
| // Latin | |
| '°' => 0, |
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 | |
| /*! Based on <https://github.com/mecha-cms/cms/blob/master/system/kernel/converter.php> */ | |
| function extract_html_attributes($input) { | |
| if( ! preg_match('#^(<)([a-z0-9\-._:]+)((\s)+(.*?))?((>)([\s\S]*?)((<)\/\2(>))|(\s)*\/?(>))$#im', $input, $matches)) return false; | |
| $matches[5] = preg_replace('#(^|(\s)+)([a-z0-9\-]+)(=)(")(")#i', '$1$2$3$4$5<attr:value>$6', $matches[5]); | |
| $results = array( | |
| 'element' => $matches[2], | |
| 'attributes' => null, | |
| 'content' => isset($matches[8]) && $matches[9] == '</' . $matches[2] . '>' ? $matches[8] : null |
We will tackle this process in 10 steps listed below.
I didn't want to repeat some sections well explained in the UEFI Process. You can refer there and follow due process.
Namely;
- Connecting to WiFi.
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
| /** | |
| * This code is based on <https://github.com/pourquoi/ckeditor5-simple-upload> | |
| * and will be implemented by <https://github.com/mecha-cms/extend.c-k-editor> in the future! | |
| */ | |
| // The upload adapter | |
| var Adapter = function(loader, urlOrObject, t) { | |
| var $ = this; |
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
| -- Tabel Daftar Transaksi | |
| CREATE TABLE "inventory" ( | |
| "product" INTEGER, -- `product.id` | |
| "price" INTEGER, -- Harga satuan produk | |
| "quantity" INTEGER, | |
| "store" INTEGER, -- `store.id` | |
| "time" TEXT, -- Waktu terjadi transaksi | |
| "type" INTEGER, -- Tipe transaksi | |
| "user" INTEGER | |
| ); |
NewerOlder