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
const { | |
createBot, | |
createProvider, | |
createFlow, | |
addKeyword, | |
addChild, | |
} = require('@bot-whatsapp/bot') | |
const WebWhatsappProvider = require('@bot-whatsapp/provider/baileys') | |
const MockAdapter = require('@bot-whatsapp/database/mock') |
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.9; | |
// Objetivo: Smart contract que permita a la gente adivnar el equipo que ganará el mundial. | |
// Fijar sistema de lock de apuestas, no tiene mucho sentido restrinjirlo solo para la final. | |
// * emitir eventos necesarios para indexar datos y mostrar en frontend: | |
contract WorldCupBet { | |
address owner; | |
uint256 constant START_WORLDCUP_FINALMATCH = 1671379200; |
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
{ | |
"workbench.colorTheme": "One Dark Pro", | |
"editor.fontSize": 16, | |
"workbench.colorCustomizations": { | |
"tab.activeBorder": "#348cff", | |
"tab.unfocusedActiveBorder": "#000000", | |
"tab.activeBackground": "#348cff", | |
"tab.hoverBackground": "#348cff" | |
}, | |
"highlight.regexes": { |
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
curl -X POST -H "Content-Type: application/json" \ | |
-d '{"content":null, "attachments": [],"color": 5814783, "embeds":[{"title":"Nueva version desplegada!","description":"El trabajo de todo el equipo ya esta publicado pasen a ver https://app.codigoencasa.com"}]}' \ | |
https://discord.com/api/webhooks/972106385724686347/tWx33Q6F-uI3MFrbKIgIPlZN-AeXk-8NVA4gwLP49V8k3wmHqOGwRp2NQK1FxjmBM1zH |
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
-- MySQL dump 10.13 Distrib 8.0.27, for Win64 (x86_64) | |
-- | |
-- Host: 127.0.0.1 Database: cursonode | |
-- ------------------------------------------------------ | |
-- Server version 5.7.33 | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
/*!50503 SET NAMES utf8 */; |
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
dataURItoBlob(dataURI) { | |
let byteString; | |
if (dataURI.split(",")[0].indexOf("base64") >= 0) | |
byteString = atob(dataURI.split(",")[1]); | |
else byteString = unescape(dataURI.split(",")[1]); | |
const mimeString = dataURI.split(",")[0].split(":")[1].split(";")[0]; | |
const ia = new Uint8Array(byteString.length); | |
for (let i = 0; i < byteString.length; i++) { | |
ia[i] = byteString.charCodeAt(i); | |
} |
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
{ | |
"name":"Eminem - Without Me (Official Music Video)", | |
"album":"Eminem", | |
"cover":"https://cdns-images.dzcdn.net/images/cover/ec3c8ed67427064c70f67e5815b74cef/350x350.jpg", | |
"artist":{ | |
"name":"Eminem", | |
"nickname":"Eminem", | |
"nationality":"US" | |
}, | |
"duration":{ |
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
FROM php:7.4-fpm | |
# Arguments defined in docker-compose.yml | |
ARG user | |
ARG uid | |
# Install system dependencies | |
RUN apt-get update && apt-get install -y \ | |
git \ | |
curl \ |
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 { isPlatformBrowser } from '@angular/common'; | |
import { Inject, Injectable, PLATFORM_ID } from '@angular/core'; | |
interface Scripts { | |
name: string; | |
src: string; | |
} | |
export const ScriptStore: Scripts[] = [ | |
{ name: 'google_analytics', src: 'https://www.googletagmanager.com/gtag/js?id=' }, |
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
files: | |
"/etc/nginx/conf.d/proxy.conf": | |
mode: "000755" | |
owner: root | |
group: root | |
content: | | |
client_max_body_size 100M; |