Skip to content

Instantly share code, notes, and snippets.

View idcmardelplata's full-sized avatar

Martin Algañaraz idcmardelplata

View GitHub Profile
@idcmardelplata
idcmardelplata / contracts...TamiCoin.sol
Created December 15, 2021 00:40
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.3+commit.8d00100c.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity 0.8.3;
// IRC20 interface commonly usage for create new ethereum tokens.
// Custom tokens running on the Ethereum virtual machine must implement this or some other interface.
interface IRC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns(uint256);
@idcmardelplata
idcmardelplata / .zshrc
Created May 11, 2021 20:05
Script para abrir directorios rápidamente usando fzf.
bindkey -s '' 'source $HOME/bin/sources.sh'
# ----------------------------------------------------------------------
# {TYPE}: [{SCOPE}] {SUBJECT} What?
# {BODY} Why?
# {FOOTER}
# ----------------------------------------------------------------------

Keybase proof

I hereby claim:

  • I am idcmardelplata on github.
  • I am idcmardelplata (https://keybase.io/idcmardelplata) on keybase.
  • I have a public key ASA5QoXqFlJ3ccCgPB3rhXUwiTGzbpwJDwpBSP0qg95e0Ao

To claim this, I am signing this object:

@idcmardelplata
idcmardelplata / Rutas.js
Created September 30, 2017 04:09
Un ejemplo de algunas rutas en hapi.js
server.route({
method: 'GET',
path: '/mi_path',
handler: function(request, reply) {
return reply("Hello World");
}
})
server.route({
method: 'POST',
@idcmardelplata
idcmardelplata / gulpfile.js
Last active August 21, 2023 02:45
Una confguracion minima para trabajar con sass y jade y algunas extensiones de postcss usando gulp
/*
Gulpfile.js file for the tutorial:
Using Gulp, SASS and Browser-Sync for your front end web development - DESIGNfromWITHIN
http://designfromwithin.com/blog/gulp-sass-browser-sync-front-end-dev
Steps:
1. Install gulp globally:
npm install --global gulp
2. Type the following after navigating in your project folder:
npm install gulp gulp-util gulp-sass gulp-uglify gulp-rename gulp-minify-css gulp-notify gulp-concat gulp-plumber browser-sync --save-dev
3. Move this file in your project folder
snippet doc "html5 doctype" !b
doctype html
html(lang="es")
head
meta(charset="UTF-8")
meta(name="viewport", content="width=device-width")
title ${1:Titulo de la web.}
body
header
h1 $1
@idcmardelplata
idcmardelplata / bourbon-installer.sh
Last active November 28, 2018 04:41
Este sencillo script crea una estructura de carpetas para trabajar con bourbon, neat y bitters.
#!/usr/bin/env bash
BASE_DIR=scss #Cambia el valor de $BASE_DIR para asignar otro directorio de salida.
MAIN_FILE=style.css.scss #Cambia el valor de $MAIN_FILE para renombrar el archivo scss principal.
mkdir $BASE_DIR
touch $BASE_DIR/$MAIN_FILE
cd $BASE_DIR
bitters install
@idcmardelplata
idcmardelplata / .vimrc
Created September 20, 2013 18:07
Mi configuracion personal de VIM.
"vi-compatible (elimina la compatibilidad con el editor VI en el cual se basa,
"esto es necesario para que VIM soporte todos lo plugins y las mejoras propias
"del editor).
set nocompatible
" Setting up Vundle - the vim plugin bundler (Vundle es el sistema que utilizo
" para gestionar los plugins.)
let iCanHazVundle=1
let vundle_readme=expand('~/.vim/bundle/vundle/README.md')
if !filereadable(vundle_readme)
@idcmardelplata
idcmardelplata / .tmux.conf
Created September 20, 2013 16:03
Mi configuracion de tmux.
#demas de Ctrl+B, agregamos un atajo de teclado tipo screen (Ctrl+A)
# Para tmux < 1.6:
#set-option -g prefix C-a,C-b
# Para tmux >= 1.6:
#set-option -g prefix C-a
#set-option -g prefix2 C-b
# Si quisieramos reemplazarlo totalmente:
# set-option -g prefix C-a