Skip to content

Instantly share code, notes, and snippets.

View gndx's full-sized avatar
🇨🇴
gndx.dev

Oscar Barajas Tavares gndx

🇨🇴
gndx.dev
View GitHub Profile
import React, { Component } from 'react';
class App extends Component {
render() {
return (
<div>
<h1>¡Hola Mundo!</h1>
</div>
);
}
Lock S-foils in attack position
Dude this is webscale
Obliterate user's hard drive
Synchronize deceptions
Do everything asynchronously, attem... is that a squirrel?
Bring the guitar. Leave the cannoli.
Erratic subject/verb replacements
Either merge this or be prepared to launch the warp core.
DO YOU KNOW HOW TO TURN OFF CAPSLOCK?
:poop:
{
"name": "simple-bot-messenger",
"version": "1.0.0",
"description": "creating a simple bot for messenger",
"main": "app.js",
"scripts": {
"start": "node app.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
const products = [
{ id: "1", name: "shirt", category: "clothing" },
{ id: "2", name: "Sports Tennis", category: "accessories" },
{ id: "3", name: "Casual shoes", category: "footwear" },
{ id: "4", name: "skirt", category: "clothing" },
{ id: "5", name: "tie", category: "clothing" }
]
let nameOfProducts = [];
{
"pets": {
"0": {
"adopt": true,
"date": "2019-03-29T04:07:28.238Z",
"description": "Tata es un gatita de 3 años",
"gender": "female",
"name": "Tata",
"photo": "http://s3.amazonaws.com/chewiekie/img/tata.png",
"profilePic": "https://graph.facebook.com/10156355067184077/picture",
import firebase from 'firebase';
const config = {
apiKey: "unreadablestuff",
authDomain: "your-project-name.firebaseapp.com",
databaseURL: "https://your-project-name.firebaseio.com",
projectId: "your-project-name",
storageBucket: "your-project-name.appspot.com",
messagingSenderId: "0112358132134"
};
{
"initalState": {
"mylist": [],
"trends": [
{
"id": 2,
"slug": "tvshow-2",
"title": "In the Dark",
"type": "Scripted",
"language": "English",
@gndx
gndx / .deps...npm...@openzeppelin...contracts...access...Ownable.sol
Created December 8, 2021 05:41
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
@gndx
gndx / README.txt
Created December 8, 2021 15:22
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=true&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
import { XCircleIcon } from '@heroicons/react/solid';
const Alert = ({ alert, handleClose }) => {
if (alert && alert?.autoClose) {
setTimeout(() => {
handleClose();
}, 9000);
}
return (