This file contains 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 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 has been truncated, but you can view the full file.
This file contains 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 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 contains 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
#include <Wire.h> | |
#include <RealTimeClockDS1307.h> | |
#include <EEPROM.h> | |
#include <Keypad.h> | |
//RealTimeClock RTC;//=new RealTimeClock(); | |
#define SET_TIME 't' | |
#define SWITCH_ON '1' | |
#define SWITCH_OFF '0' |
This file contains 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 Yii; | |
use mdm\upload\FileModel; | |
use yii\web\NotFoundHttpException; | |
use yii\imagine\Image; | |
use yii\helpers\FileHelper; | |
use yii\web\UploadedFile; |
This file contains 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 | |
use yii\web\View; | |
use dee\angularjs\NgRoute; | |
//use yii\helpers\Html; | |
/* @var $this View */ | |
?> | |
<div ng-app="test"> |
This file contains 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
<?= | |
GridInput::widget([ | |
'id' => 'detail-grid', | |
'allModels' => $model->items, | |
'model' => OrderItem::className(), | |
'columns' => [ | |
['class' => 'mdm\widgets\SerialColumn'], | |
'product_id', | |
'qty', | |
[ |
This file contains 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
<?= | |
GridInput::widget([ | |
'allModels' => $model->orderItems, | |
'model' => \app\models\OrderItem::className(), | |
'form' => $form, | |
'columns' => [ | |
['class' => 'mdm\widgets\SerialColumn'], | |
[ | |
'attribute' => 'name', | |
'widget' => ['kartik\select2\Select2', [ |
This file contains 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\Console\Commands; | |
use Yii; | |
use Illuminate\Console\Command; | |
use App\models\larva\User as LarvaUser; | |
use app\models\yii\User as YiiUser; | |
class TestORM extends Command |