Skip to content

Instantly share code, notes, and snippets.

View lavaldi's full-sized avatar
💛
Diving into JavaScript

Claudia Valdivieso lavaldi

💛
Diving into JavaScript
View GitHub Profile
@JamieMason
JamieMason / group-objects-by-property.md
Created September 14, 2018 07:38
Group Array of JavaScript Objects by Key or Property Value

Group Array of JavaScript Objects by Key or Property Value

Implementation

const groupBy = key => array =>
  array.reduce((objectsByKeyValue, obj) => {
    const value = obj[key];
    objectsByKeyValue[value] = (objectsByKeyValue[value] || []).concat(obj);
    return objectsByKeyValue;

For Mac

brew install youtube-dl
brew install ffmpeg
youtube-dl https://egghead.io/courses/course_name
@tunguskha
tunguskha / Gradient shadow in pure CSS.md
Last active May 4, 2023 06:40
Gradient shadow in pure CSS

Gradient shadow in pure CSS

alt text

HTML
<button>Let's Go !</button>
@hallettj
hallettj / Makefile
Last active December 10, 2023 13:32
Makefile for transpiling with Babel & Flow in a Node app, or in a client- or server-side shared library
# Makefile for transpiling with Babel in a Node app, or in a client- or
# server-side shared library.
.PHONY: all clean
# Install `babel-cli` in a project to get the transpiler.
babel := node_modules/.bin/babel
# Identify modules to be transpiled by recursively searching the `src/`
# directory.

IMPORTANT NOTE: Tested in macOS

For use this bash it needs run in the $HOME folder and execute this command:

~ sudo chmod +x install_vim.sh

Then:

~ ./install_vim.sh

@frontend-3
frontend-3 / gist:360d9f15657139adba00
Created July 6, 2015 16:26
Bash para git pull y push en branch actual
function current_branch() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo ${ref#refs/heads/}
}
function gpull() {
git pull origin $(current_branch)
}
function gpush() {
@andru255
andru255 / Readme.md
Last active February 5, 2018 04:09
Single bash to install/uninstall a specific version of emacs editor (24.5)

IMPORTANT NOTE: Only tested under linux/debian 7.0

For use this bash it needs run in the $HOME folder and execute this command:

~ sudo chmod +x install_emacs_24.5.sh

Then:

~ ./install_emacs_26.sh

@anareyna
anareyna / english-links.md
Last active October 23, 2023 10:55
English