Skip to content

Instantly share code, notes, and snippets.

View davila7's full-sized avatar
🤖
Building IA tools with LLMs

Daniel Avila davila7

🤖
Building IA tools with LLMs
View GitHub Profile
var http = require('http');
function onRequest(request, response){
response.writeHead(200, {'Content-type': 'text/plain'});
response.write('Estoy dentro de Docker');
response.end();
}
http.createServer(onRequest).listen(8000);
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"iam:GetInstanceProfile",
"iam:GetRole",
"iam:GetRolePolicy",
"iam:ListAttachedRolePolicies",
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action": [
"cloudwatch:*",
"datapipeline:*",
"dynamodb:*",
"ec2:Describe*",
"elasticmapreduce:AddJobFlowSteps",
const { expect } = require("chai");
const { ethers } = require("hardhat");
describe("ERC20 DemoToken", function () {
let demoToken;
let owner;
let addr1;
let addr2;
// We require the Hardhat Runtime Environment explicitly here. This is optional
// but useful for running the script in a standalone fashion through `node <script>`.
//
// When running the script with `npx hardhat run <script>` you'll find the Hardhat
// Runtime Environment's members available in the global scope.
const hre = require("hardhat");
async function main() {
// Hardhat always runs the compile task when running scripts with its command
// line interface.
@davila7
davila7 / ERC20.sol
Last active December 2, 2021 07:04
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract DemoToken is ERC20 {
constructor() ERC20("DEMOTOKEN", "DMT") public {
_mint(msg.sender, 1000000 * (10 ** decimals()));
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.3;
contract HolaMundo {
string public holaMundo = "Hola Mundo!";
}