Skip to content

Instantly share code, notes, and snippets.

View alvaropinot's full-sized avatar
🤘
Metal this

Alvaro Pinot @alvaropinot alvaropinot

🤘
Metal this
View GitHub Profile
@alvaropinot
alvaropinot / resume.json
Last active May 7, 2024 16:03
Resume Alvaro Pinot
{
"basics": {
"name": "Alvaro Pinot",
"label": "Polyglot Coder & Technology Lead",
"image": "https://avatars.githubusercontent.com/u/6654199?v=4",
"email": "[email protected]",
"phone": "+34 649 857 456",
"website": "https://github.com/alvaropinot",
"url": "http://neatnait.com#aboutme",
"summary": "Continuously trying my best to be a culture and game changer as well as a team builder. Eager to learn and ready to share.\n\nI strongly believe that if you are not part of the solution, you are probably part of the problem. \n\nSpeaking of problems, I always enjoy a good challenge. I think the way to go is to use technology to solve challenges without losing sight of human-personal interactions and avoid technology to get on the way. Remember the “if you are not part of...” well you get the point 😅\n\nI do ❤️ using smilies, music 🤘 and motorbikes.\n\nYou can find some of the companies where I’ve been doing this☝️during the last decade+ here👇\n\nWant to have some fun together, a
@alvaropinot
alvaropinot / Floater.cs
Last active September 6, 2020 03:42
Making Objects Float Up & Down in Unity
// Floater v0.0.2
// by Donovan Keith
//
// [MIT License](https://opensource.org/licenses/MIT)
using UnityEngine;
using System.Collections;
// Makes objects float up & down while gently spinning.
public class Floater : MonoBehaviour {
# shortform git commands
alias g='git'
# get a list of all commit messages for a repo
git log --pretty=format:'%s'
# find the nearest parent branch of the current git branch
git show-branch -a | grep '\*' | grep -v `git rev-parse --abbrev-ref HEAD` | head -n1 | sed 's/.*\[\(.*\)\].*/\1/' | sed 's/[\^~].*//'
# push changes to an empty git repository for the first time
@alvaropinot
alvaropinot / .vault
Created May 1, 2018 07:54 — forked from steve-jansen/.vault
HashiCorp Vault Token Helper using the OS X Keychain
token_helper = "/Users/me/.vault-helper"
@alvaropinot
alvaropinot / .vault
Created May 1, 2018 07:54 — forked from steve-jansen/.vault
HashiCorp Vault Token Helper using the OS X Keychain
token_helper = "/Users/me/.vault-helper"
@alvaropinot
alvaropinot / README.markdown
Created April 15, 2018 16:02 — forked from FranklinYu/README.markdown
links for old versions of Docker for Mac (inspired by docker/for-mac#1120)

links for old versions of Docker for Mac

Deprecated

Docker provides download links in release note. They promised that

(we) will also include download links in release notes for future releases.

Note:

@alvaropinot
alvaropinot / map-to-object.js
Created October 3, 2017 17:58
"FUNctional" 😜 Map 🗺 to object 🔑
const obj = { a: 1, c: 3, b: 2 }
// Map from object.
const myMap = new Map(Object.entries(obj))
// Map to Object.
// NOTE: Keys will be cast to strings by `.toString`, so any "complex" key like for example `[1, 2]` will become `1,2`
const newObj = [...myMap.entries()]
.reduce((acc, [key, value]) => (Object.assign(acc, { [key]: value })), {})
@alvaropinot
alvaropinot / groupArrayEach.js
Created June 7, 2017 08:32
group two elements each `n` elements with a nice offset :)
const transformIndex = (index, groupEach, offset) =>
offset + (index - offset - Math.ceil((index - offset) / groupEach))
const transformIndexEachThreeWithOneOffset = (index) => transformIndex(index, 3, 1)
function groupArrayEach(arr, groupEach=3, offset=0) {
return arr.reduce(function(acc, e, index) {
const newIndex = transformIndex(index, groupEach, offset)
acc[newIndex] = acc[newIndex] || []
acc[newIndex].push(e)
return acc
@alvaropinot
alvaropinot / curry.js
Last active May 31, 2017 08:02
curry and pipe playground
const pipe = (...functions) => startingValue => functions.reduce((actualValue, fn) => fn(actualValue), startingValue)
const sumTwo = (a) => a + 2
const mult = (a) => a + 2
const repeat = times => fn => Array(times).fill(fn)
const doTimes = times => fn => x => pipe(...repeat(times)(fn))(x)
const sumTwo4Times = doTimes(4)(sumTwo)
@alvaropinot
alvaropinot / fun-hacks.js
Created September 14, 2016 18:17
fun hacks
const randomColor = '#' + ((1 << 24) * Math.random() | 0).toString(16);