Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am mcortesi on github.
  • I am mcortesi (https://keybase.io/mcortesi) on keybase.
  • I have a public key ASCqFiWl-1A-96fkjo5C-tu4ufBDvkmRJ4KqkB9o0gm-FQo

To claim this, I am signing this object:

@mcortesi
mcortesi / Example.sol
Created December 26, 2019 14:33
staticcall assembly vs address
pragma solidity >=0.4.22 <0.6.0;
contract Example {
function returnNumbers() public pure returns (uint256 a, uint256 b) {
a = 0x66;
b = 0x99;
}
}
@mcortesi
mcortesi / celo-stake-off.md
Created November 26, 2019 13:30
Mariano's Proof of Github

CELO_VALIDATOR_GROUP_ADDRESS=3705a8ad6e58fc88d99e3da1451a44df46dfac72 CELO_VALIDATOR_ADDRESS=f5fa293eb479649f3a82543c3f425bfefdb0f6da

@mcortesi
mcortesi / README.md
Created October 22, 2018 21:01
Crypto TP
@mcortesi
mcortesi / ch1.js
Last active July 27, 2017 00:05
Bug on webpack CommonChunkPlugin
require('./commonsB');

Graphics

Check githubs data visualization showcase

Canvas

You can check first http://www.html5canvastutorials.com/ to learn about the canvas API, is pretty straightforward and easy to use. But for more complex things your probably want to use some library on top of it

GitHub forks Paper.js - Paper.js is an open source vector graphics scripting framework that runs on top of the HTML5 Canvas. It offers a clean Scene Graph / Document Object Model and a lot of powerful functionality to create and work with vector graphics and bezier curves, all neatly wrapped up in a well designed, consistent and clean programming interface. Support import/export to SVG

@mcortesi
mcortesi / 0_reuse_code.js
Last active August 29, 2015 14:20
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#! /app/vendor/node/bin/node
'use strict';
var bb = require('bluebird');
var mongoose = require('mongoose');
var nodemailer = require('nodemailer');
var sendgrid = require('nodemailer-sendgrid-transport');
var createEmailTasker = require('../server/services/mailer').createEmailTasker;