Skip to content

Instantly share code, notes, and snippets.

View xnt's full-sized avatar
Code. Learn. Help. Joke. Repeat.

Vicente Plata xnt

Code. Learn. Help. Joke. Repeat.
View GitHub Profile
@a7madgamal
a7madgamal / dark.md
Last active July 14, 2023 04:00
Dark mode for Slack on MacOS
@orther
orther / index.js
Created January 27, 2017 17:34
A few simple examples of sorting with Ramda's sortBy function.
import R from 'ramda';
const items = [
{id: 1, name: 'Al', country: 'AA'},
{id: 2, name: 'Connie', country: 'BB'},
{id: 3, name: 'Doug', country: 'CC'},
{id: 4, name: 'Zen', country: 'BB'},
{id: 5, name: 'DatGGboi', country: 'AA'},
{id: 6, name: 'Connie', country: 'AA'},
];
@parmentf
parmentf / GitCommitEmoji.md
Last active May 23, 2024 09:32
Git Commit message Emoji
@lfender6445
lfender6445 / gist:9919357
Last active May 12, 2024 19:09
Pry Cheat Sheet

Pry Cheat Sheet

Command Line

  • pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)
  • pry -r ./config/environment.rb - load your rails into a pry session

Debugger

@xnt
xnt / copiar_sinembargo.user.js
Created May 15, 2012 07:13
Copiar texto de SinEmbargo.mx, en vez de su mensaje de copyright
// ==UserScript==
// @name Copiar texto de SinEmbargo.mx
// @author Vicente Plata
// @description Permite copiar texto de SinEmbargo.mx
// @match http://www.sinembargo.mx/*
// ==/UserScript==
addLink=undefined;
document.oncopy=undefined;
@xnt
xnt / seleccionar_eluniversal.user.js
Created April 2, 2012 05:13
Seleccionar texto de ElUniversal.mx y similares...
// ==UserScript==
// @name Seleccionar texto de El Universal MX
// @author Vicente Plata
// @description Permite seleccionar y copiar texto de El Universal
// @match http://www.eluniversalmas.com.mx/*
// @match http://www.eluniversal.com.mx/*
// @include http://www.eluniversalmas.com.mx/*
// @include http://www.eluniversal.com.mx/*
// ==/UserScript==
GM_addStyle(
@coldnebo
coldnebo / Default (Linux).sublime-keymap
Created August 10, 2011 23:20
simple scripts to prettify your xml and json in sublime text 2
[
{ "keys": ["ctrl+shift+x"], "command": "tidy_xml" },
{ "keys": ["ctrl+shift+j"], "command": "prettify_json" }
]