Skip to content

Instantly share code, notes, and snippets.

View logger.js
/**
* @module utils/logger
*/
/**
* Object from Sentry SDK
* @see {@link https://docs.sentry.io/clients/javascript/}
*
* Raven (Sentry SDK) is expected to be loaded directly from their CDN.
* Or you can instead use npm pkg: [raven-js]{@link https://github.com/getsentry/raven-js}
@eloypnd
eloypnd / Button.jsx
Last active Mar 2, 2017
Theme defaults with styled components
View Button.jsx
import styled from 'styled-components'
import themeVars from 'theme.variables'
const Button = styled.button`
background-color: ${({theme}) => theme.button.backgroundColor};
border: none;
border-radius: ${({theme}) => theme.button.radius}px;
color: white;
cursor: pointer;
padding: ${({theme}) => theme.button.padding}rem;
@eloypnd
eloypnd / chrometabs2markdown.scpt
Last active Oct 25, 2016
useful AppleScripts
View chrometabs2markdown.scpt
(* Copy all open tabs from the Google Chrome windows that have focus
*
* version: 0.1
* author: Eloy Pineda <me@eloy.codes>
* license: MIT
*)
set urlList to {}
tell application "Google Chrome"
activate
@eloypnd
eloypnd / dnsmasq_setup_osx.md
Last active Dec 17, 2021
wildcard DNS record on OS X in localhost development with dnsmasq
View dnsmasq_setup_osx.md

wildcard DNS in localhost development

$ brew install dnsmasq
   ...
$ cp /usr/local/opt/dnsmasq/dnsmasq.conf.example /usr/local/etc/dnsmasq.conf
  • edit /usr/local/etc/dnsmasq.conf
address=/local/127.0.0.1
@eloypnd
eloypnd / .eslintrc
Created Nov 12, 2015
eslint base configuration file
View .eslintrc
{
"rules": {
"indent": [
2,
2,
{ "SwitchCase": 1 }
],
"quotes": [
2,
"single"
@eloypnd
eloypnd / MacSetup.md
Last active Nov 30, 2021
Instalación "limpia" de Mac OS X y entorno de desarrollo
View MacSetup.md

Instalación "limpia" de Mac OS X y entorno de desarrollo

Este manual explica el proceso para hacer una instalación "limpia" de Mac OS X y los programas y aplicaciones básicas para tener el ordenador listo para empezar en el menor tiempo posible.

En el momento en que estoy escribiendo esto asumimos que el SO a instalar es Mac OS X 10.10 Yosemite. Algunas rutas de archivos pueden variar un poco si la version que quieres instalar es más antigua, pero en general los pasos a seguir son los mismos.

Utilizamos algunas herramientas como dotfiles, homebrew (y sus Brewfiles) o cask para agilizar ciertas tareas repetitivas como instalar aplicaciones.

Necesitaremos:

  • Memoria USB de 8GB mínimo
View keybase.md

Keybase proof

I hereby claim:

  • I am eloypnd on github.
  • I am eloypnd (https://keybase.io/eloypnd) on keybase.
  • I have a public key whose fingerprint is 9B24 E0B9 4E6A C706 BBFE 9F17 4CD9 F303 E61C 96AC

To claim this, I am signing this object: