Skip to content

Instantly share code, notes, and snippets.

View sveggiani's full-sized avatar
🌻
brand new day

Sebastián Veggiani sveggiani

🌻
brand new day
View GitHub Profile
@sveggiani
sveggiani / example.js
Last active November 3, 2022 02:59
[Double destructuring with rename] #javascript #masscode
const source = {
data: {
bottomBanner: {
title: "The title",
link: {
text: "Link title",
url: "http://google.com/example"
}
}
}
@sveggiani
sveggiani / djying.md
Last active August 12, 2024 07:25
[DJ / Music mixing] #dj #study-notes #masscode

DJ

1. Concepts

1.1. Cue

Differences between Hot Cues and Memory Cues

  • Memory Cues: cannot be set on the fly and are always sequential. Requires the track to be paused and to mark it with the Cue button. Can be saved with an active loop (rekordbox). Useful when the exit in a song is very short, you could set a Memory Cue with an active loop and keep the track looping.
  • Hot Cues: can be set on the fly and in any order (non sequential). They allow to keep the song playing after jumping to them (depending on the configuration)
@sveggiani
sveggiani / notes.md
Last active November 3, 2022 02:59
[Configure Stylelint + Prettier for SASS/SCSS] #javascript #prettier #stylelint #sass #scss #masscode
@sveggiani
sveggiani / instructions.md
Last active July 15, 2023 21:52
[Configure XDebug, Visual Studio Code for a Vagrant VM] #debug #vm #vscode #masscode

Configure XDebug, Visual Studio Code for a Vagrant VM

1. Assumptions

  • Project (Drupal) is served on /var/www/html in the Vagrant box
  • Local project files location: c:\Users\username\Work\projects\my-project\repo\html
  • Guest machine IP is 10.0.2.2 (if this doesn't work, run route -nee in the VM and look for the gateway address)

2. Configuration

@sveggiani
sveggiani / javascript_study_notes.md
Last active December 10, 2021 15:58
[Javascript - Study notes] #study-notes #javascript

Javascript - Study notes

1. Concepts

1.1. Event Delegation

An event listener is added to a parent element instead of on its descendants. As child events bubbles up DOM the event is triggered. This allows less memory usage and having to handle events after removing or adding descendants.

1.1.1. Event Bubbling

@sveggiani
sveggiani / webpack.config.dev.js
Last active September 5, 2017 14:34 — forked from matyax/webpack.config.dev.js
Webpack development config file #code-fragments #webpack #building
var path = require('path'),
webpack = require('webpack'),
HtmlWebpackPlugin = require('html-webpack-plugin'),
OpenBrowserPlugin = require('open-browser-webpack-plugin'),
ExtractTextPlugin = require('extract-text-webpack-plugin'),
precss = require('precss'),
autoprefixer = require('autoprefixer'),
DashboardPlugin = require('webpack-dashboard/plugin');
mockMode = false;
@sveggiani
sveggiani / Drupal - RESTful Webservices API.md
Last active September 5, 2017 14:40
Drupal - RESTful Webservices API #drupal #restful #webservices #cms

Drupal RESTful Webservices API

Características

Implementación

@sveggiani
sveggiani / Default (OSX).sublime-keymap
Created April 14, 2016 03:22
My Sublime Text 3 keyboard shortcut customizations for spanish keyboards
[
/* Default fixes and customizations
-----------------------------------------------------------------------------
use "sublime.log_input(True)" in console to inspect key codes
use "sublime.log_commands(True)" in console to inspect triggered commands
*/
// Alternative to open ST console
{ "keys": ["f8"], "command": "show_panel", "args": {"panel": "console"} },
// Fixes for spanish keyboards
@sveggiani
sveggiani / file.sh
Last active September 7, 2016 03:10
list all files in a commit #git #code-fragments
git diff-tree --no-commit-id --name-only -r [commit hash]
#or
git show --pretty="format:" --name-only [commit hash]