Skip to content

Instantly share code, notes, and snippets.

View AlbertoElias's full-sized avatar

Alberto Elias AlbertoElias

View GitHub Profile
Verifying my Blockstack ID is secured with the address 1BTWa1gHNF5FHJfvxdC9nGvU28W5CQ8PkF https://explorer.blockstack.org/address/1BTWa1gHNF5FHJfvxdC9nGvU28W5CQ8PkF
@AlbertoElias
AlbertoElias / Simbol-CLA
Created March 5, 2019 18:54
Simbol-CLA
### Simbol Individual Contributor License Agreement
Thank you for your interest in contributing to open source software projects (“Projects”) made available by Alberto Elias de Ayala, Simbol or its affiliates (“Simbol”). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to SAP in respect of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact hi@simbol.io.
You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.
**Copyright License.** You hereby grant, and agree to grant, to Simbol a non-exclusive, perp

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@AlbertoElias
AlbertoElias / payments.js
Created October 11, 2015 11:40
Calculate group payments and debts
const Payments = {
init: function(people) {
this.people = people;
},
calc: function() {
const total = this.people.reduce((payments, person) => {
return payments + person.paid;
}, 0);
@AlbertoElias
AlbertoElias / .travis.yml
Last active September 22, 2015 14:55 — forked from samgiles/.travis.yml
sudo: false
language: node_js
node_js:
- "4"
before_install:
- npm install -g Financial-Times/origami-build-tools#node4
- obt install
script:
- obt test
- obt verify
@AlbertoElias
AlbertoElias / SassMeister-input.scss
Created May 8, 2015 11:51
Generated by SassMeister.com.
// ----
// libsass (v3.2.0-beta.6)
// ----
$colors: (
#{transparent}: #000000, // Output is fine (black)
transparent: #000000
);
@each $name, $csscolor in $colors {
@AlbertoElias
AlbertoElias / SassMeister-input.scss
Created May 7, 2015 10:11
Generated by SassMeister.com.
// ----
// libsass (v3.2.0-beta.6)
// ----
$colors: (
"transparent": #000000, // Output is fine (black)
// transparent: #000000
);
@each $name, $csscolor in $colors {
@AlbertoElias
AlbertoElias / SassMeister-input.scss
Created May 7, 2015 09:35
Generated by SassMeister.com.
// ----
// libsass (v3.2.0-beta.6)
// ----
$colors: (
"transparent": #000000, // Output is fine (black)
rgba(0,0,0,0): #000000
);
@each $name, $csscolor in $colors {
@AlbertoElias
AlbertoElias / LongestSubstring.java
Created April 28, 2014 22:37
Gets longest substrings formed by two unique characters
import java.util.Arrays.*;
public class LongestSubstring {
public String getLongestSubstring(String s) {
String[] charArray = s.split("(?!^)");
int resStart = 0, resEnd = 0;
String firstChar = charArray[0], secondChar = null;
for (int i = 0, j = 0;i < charArray.length; i++) {
@AlbertoElias
AlbertoElias / anim.js
Created April 28, 2014 22:35
Simple JS animation
// Create a set of dot divs and animate each one
function init(dots) {
var body = document.body;
var container = document.createDocumentFragment();
for (var i=0;i<dots;i++) {
var dot = document.createElement('div');
dot.className = 'dot';
dot.id = i+1;
animElem(dot, 300, i);
container.appendChild(dot);