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
{ | |
"0":{ | |
"day":{ | |
"description":"Sunny", | |
"image":"http://openweathermap.org/img/wn/[email protected]" | |
}, | |
"night":{ | |
"description":"Clear", | |
"image":"http://openweathermap.org/img/wn/[email protected]" | |
} |
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
#/usr/bin/perl | |
use strict; | |
foreach my $line (<DATA>) { | |
my ($name, $hex) = split(/\s+/,$line); | |
print qq~<div style="background-color:$hex; display:inline; padding: 3em; float:left">$name</div>~; | |
} | |
__DATA__ | |
red #ff0000 |
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 { PrismaClient, Prisma } from '@prisma/client'; | |
const prisma = new PrismaClient(); | |
async function main() { | |
const user = await prisma.user.findMany({ | |
where: { | |
createdAt: { | |
gte: '2020-07-20T22:17:24.915Z' | |
} |
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
## CRONTAB HINTS AND TIPS | |
## | |
## | |
## Entry Description Equivalent To | |
## @yearly (or @annually) Run once a year at midnight in the morning of January 1 0 0 1 1 * | |
## @monthly Run once a month at midnight in the morning of the first of the month 0 0 1 * * | |
## @weekly Run once a week at midnight in the morning of Sunday 0 0 * * 0 | |
## @daily Run once a day at midnight 0 0 * * * | |
## @hourly Run once an hour at the beginning of the hour 0 * * * * | |
## @reboot Run at startup @reboot |
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
pragma solidity 0.6.4; | |
import "./Context.sol"; | |
import "./IERC20.sol"; | |
import "./SafeMath.sol"; | |
import "./Ownable.sol"; | |
/** | |
* @dev Implementation of the {IERC20} interface. | |
* |
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
<div id="container" class="borderimg"></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
pragma solidity ^0.5.0; | |
import "./FDIC_Coin.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/crowdsale/Crowdsale.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/crowdsale/emission/MintedCrowdsale.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/crowdsale/validation/CappedCrowdsale.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/crowdsale/validation/TimedCrowdsale.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/crowdsale/distribution/RefundablePostDeliveryCrowdsale.sol"; | |
// @TODO: Inherit the crowdsale contracts |
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
pragma solidity ^0.5.0; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20Detailed.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20Mintable.sol"; | |
contract MyToken is ERC20, ERC20Detailed, ERC20Mintable { | |
constructor( | |
string memory name, | |
string memory symbol |
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
#!/usr/bin/env bash | |
conda deactivate | |
conda update conda | |
conda create -n mlenv python=3.7 anaconda | |
conda activate mlenv | |
conda install -c conda-forge nodejs | |
conda install -c pyviz hvplot | |
conda install -c plotly plotly | |
conda install -c plotly plotly_express==0.4.1 |
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
pragma solidity ^0.5.10; | |
contract Lassie { | |
// STATE VARIABLES | |
uint8 public contractState; // 1 = OK 2 = WARNING 3 = CRITICAL | |
uint8 public responderState; // 1 = OK 2 = PREPPED 3 = RESPOND | |
// RESPONDER Payment Amounts | |
uint256 public responderPrepAmount = 1 wei; | |
uint256 public responderRespondAmount = 2 wei; |
NewerOlder