Skip to content

Instantly share code, notes, and snippets.

View inakiarroyo's full-sized avatar
🤪

Iñaki Arroyo inakiarroyo

🤪
View GitHub Profile
@inakiarroyo
inakiarroyo / git.css
Last active June 23, 2016 21:21 — forked from neilgee/git.css
Git Command Line Reference - Notes and reminders on set up and commands
/*
* Set up your Git configuration
*/
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
git config --global core.editor "nano"
@inakiarroyo
inakiarroyo / protips.js
Created September 25, 2016 10:11 — forked from nolanlawson/protips.js
Promise protips - stuff I wish I had known when I started with Promises
// Promise.all is good for executing many promises at once
Promise.all([
promise1,
promise2
]);
// Promise.resolve is good for wrapping synchronous code
Promise.resolve().then(function () {
if (somethingIsNotRight()) {
throw new Error("I will be rejected asynchronously!");
.text-shadow (@string: 0 1px 3px rgba(0, 0, 0, 0.25)) {
text-shadow: @string;
}
.box-shadow (@string) {
-webkit-box-shadow: @string;
-moz-box-shadow: @string;
box-shadow: @string;
}
.drop-shadow (@x: 0, @y: 1px, @blur: 2px, @spread: 0, @alpha: 0.25) {
-webkit-box-shadow: @x @y @blur @spread rgba(0, 0, 0, @alpha);
@inakiarroyo
inakiarroyo / multiple_ssh_setting.md
Last active April 23, 2024 14:01
Working with multiples SSH keys

Working with multiple SSH keys

Step 1. Ensure you have an SSH client installed

ssh -V
ls -a ~/.ssh 

Step 2. Set up your identity

You can create a default identity

$ ssh-keygen 
@inakiarroyo
inakiarroyo / aliases.sh
Last active November 2, 2017 15:25
Git aliases
# Remove local branches no longer on remote, also keeping master and not pushed local branches
alias cleanupgit="git checkout master && git fetch -p && git branch -vv | awk '/: gone]/{print }' | xargs git branch -d"
# Opens the browser on the specific associate Jira ticket with the current git branch
alias jira="git rev-parse --abbrev-ref HEAD | sed -E 's/.*(futrli|FUTRLI|Futrli)(-)([0-9]+).*/\1\2\3/g' | xargs -I{} open https://crunchboards.atlassian.net/browse/{} "
@inakiarroyo
inakiarroyo / Useful-Links.md
Last active March 15, 2018 13:18
Redux React Tips
@inakiarroyo
inakiarroyo / builder-pattern.dart
Last active October 16, 2022 01:13
Dart Builder pattern
class Pizza {
final String sauce;
final List<String> toppings;
final bool hasExtraCheese;
Pizza._builder(PizzaBuilder builder) :
sauce = builder.sauce,
toppings = builder.toppings,
hasExtraCheese = builder.hasExtraCheese;
}