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
| #define TDS_SOURCE_1 2 | |
| #define TDS_SOURCE_2 3 | |
| float getTds() { | |
| // konstanta diperoleh dari percobaan. Hasil dari fungsi ini dibandingkan dengan tds meter standar. Hasilnya diregresikan | |
| // Baca README.md | |
| float C1 = 27.0, C2 = 61.4; // <- dari regresi linier, mungkin berbeda tergantung nilai R yg dipakai. R=1K8 ohm | |
| float x1, x2, ec; | |
| int i; |
This file has been truncated, but you can view the full file.
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(modules) { // webpackBootstrap | |
| /******/ // The module cache | |
| /******/ var installedModules = {}; | |
| /******/ | |
| /******/ // The require function | |
| /******/ function __webpack_require__(moduleId) { | |
| /******/ | |
| /******/ // Check if module is in cache | |
| /******/ if(installedModules[moduleId]) { | |
| /******/ return installedModules[moduleId].exports; |
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 prependRow($e) { | |
| var settings = $e.data('mdmTabularInput').settings; | |
| var counter = settings.counter++; | |
| var template = replace(settings.template, settings.replaces, counter); | |
| var $row = $(template); | |
| var $element = settings.container ? $e.find(settings.container) : $e; | |
| var event = $.Event('beforeAdd'); | |
| $e.trigger(event, [$row]); | |
| if (event.result !== false) { |
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
| /* | |
| SD card read/write | |
| This example shows how to read and write data to and from an SD card file | |
| The circuit: | |
| * SD card attached to SPI bus as follows: | |
| ** MOSI - pin 11 | |
| ** MISO - pin 12 | |
| ** CLK - pin 13 | |
| ** CS - pin 4 (for MKRZero SD: SDCARD_SS_PIN) |
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
| void setup(void){ | |
| } | |
| long t1=0,t2=0; | |
| void loop(void){ | |
| if(t1 < millis()){ | |
| // kode di sini yang mau di delay | |
| t1 = millis() + 3000; // delay tiap 3 detik | |
| } |
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 | |
| namespace console\controllers; | |
| /** | |
| * Description of AlmanakController | |
| * | |
| * @author Misbahul D Munir <[email protected]> | |
| * @since 1.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/extend.minify> | |
| define('MINIFY_STRING', '"(?:[^"\\\]|\\\.)*"|\'(?:[^\'\\\]|\\\.)*\'|`(?:[^`\\\]|\\\.)*`'); | |
| define('MINIFY_COMMENT_CSS', '/\*[\s\S]*?\*/'); | |
| define('MINIFY_COMMENT_HTML', '<!\-{2}[\s\S]*?\-{2}>'); | |
| define('MINIFY_COMMENT_JS', '//[^\n]*'); | |
| define('MINIFY_PATTERN_JS', '/[^\n]+?/[gimuy]*'); | |
| define('MINIFY_HTML', '<[!/]?[a-zA-Z\d:.-]+[\s\S]*?>'); |
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 laramix/main.less */ | |
| @import '../node_modules/bootstrap/dist/css/bootstrap.css'; | |
| @import '../node_modules/admin-lte/dist/css/AdminLTE.css'; | |
| @import '../node_modules/admin-lte/dist/css/skins/_all-skins.css'; | |
| @import '../node_modules/font-awesome/css/font-awesome.css'; | |
| @import '../node_modules/admin-lte/plugins/iCheck/all.css'; | |
| @import 'css/app.less'; |
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 | |
| namespace app\controllers; | |
| use app\classes\SSE; | |
| use app\helpers\Notification; | |
| use Yii; | |
| use yii\web\Controller; | |
| /** |