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
package main | |
import ( | |
"context" | |
"errors" | |
"fmt" | |
"time" | |
) | |
func main() { |
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
import { ethers } from "hardhat"; | |
import { use, expect } from "chai"; | |
import { solidity } from "ethereum-waffle"; | |
import { TransactionKind, TransactionStatus } from "../scripts/types"; | |
use(solidity); | |
describe("Bridge Contract", () => { | |
let tokenContract, ownerBridgeContract, walletBridgeContract; | |
let wallet, walletTo; |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.2; | |
import "@openzeppelin/contracts/access/Ownable.sol"; | |
import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | |
import "hardhat/console.sol"; | |
interface IERC20WithMintAndBurn is IERC20 { | |
function mint(address to, uint256 amount) external; |
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
import React from 'react' | |
import PropTypes from 'prop-types' | |
import { | |
Animated, | |
View, | |
Image, | |
StyleSheet | |
} from 'react-native' | |
// import AutoHeightImage from 'react-native-auto-height-image' |
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
<article id="ContainerOne" class="StackedListWrapper StackedListWrapper--sizeLarge StackedListWrapper--axisHorizontal Container"> | |
<header class="StackedListHeader"> | |
<h3 class="Heading Heading--size3 Heading--colorWhite">Container one</h3> | |
</header> | |
<ul class="StackedList"> | |
<li class="StackedListItem StackedListItem--isDraggable StackedListItem--item1" tabindex="1"> | |
<div class="StackedListContent"> | |
<h4 class="Heading Heading--size4 text-no-select">zebra</h4> | |
<div class="DragHandle"></div> | |
<div class="Pattern Pattern--typeHalftone"></div> |
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
// #include <PID_v1.h> | |
// include motor | |
//general status | |
const String IDLE_STATUS = "idle"; | |
//irrigation status | |
const String IRRIGATION_STATUS = "irrigation"; | |
const String IRRIGATION_ERROR_STATUS = "irrigation_error"; |
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
// #include <PID_v1.h> | |
// include motor | |
//general status | |
const String IDLE_STATUS = "idle"; | |
//irrigation status | |
const String IRRIGATION_STATUS = "irrigation"; | |
const String IRRIGATION_ERROR_STATUS = "irrigation_error"; | |
const String IRRIGATED_STATUS = "irrigated"; |
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
// Example | |
// pubsub := NewPubSub() | |
// go func() { | |
// for { | |
// pubsub.eventListener <- "PING " + string(time.Now().UnixNano()) | |
// time.Sleep(time.Second * 3) | |
// } | |
// }() |
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
export default class MQTTAPI { | |
constructor (options) { | |
if (options && options.timeout) { | |
this.timeout = options.timeout | |
} else { | |
this.timeout = 3000 | |
} | |
} | |
get (client, topic) { |
NewerOlder