Skip to content

Instantly share code, notes, and snippets.

Trabajando desde casa

Luis Romero luiscobits

Trabajando desde casa
Block or report user

Report or block luiscobits

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View attributes.css
Seven different types of CSS attribute selectors
// This attribute exists on the element
// This attribute has a specific value of cool
// This attribute value contains the word cool somewhere in it
rauchg / index.html
Created Nov 27, 2019
Next level Phone UX
View index.html
<!DOCTYPE html>
<title>Next level UX</title>
<meta charset="UTF-8" />
mjackson /
Last active Sep 24, 2019
Quickly show/hide desktop icons on macos
# To install: just copy this script to your machine and name it whatever you want.
# Let's say you named it, then all you need to do is make
# the script executable, like this:
# chmod +x
# Now you can execute the script directly in the terminal any time you want to
# show/hide the desktop icons, like this:
View css-layout-hack.js
// create a bookmark and use this code as the URL, you can now toggle the css on/off
// thanks+credit:
javascript: (function() {
var elements = document.body.getElementsByTagName('*');
var items = [];
for (var i = 0; i < elements.length; i++) {
if (elements[i].innerHTML.indexOf('* { background:#000!important;color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }') != -1) {
mikowl / oneliners.js
Last active Mar 17, 2020
👑 Awesome one-liners you might find useful while coding.
View oneliners.js
// By @coderitual
// Remove any duplicates from an array of primitives.
const unique = [ Set(arr)]
// Sleep in async functions. Use: await sleep(2000).
const sleep = (ms) => (new Promise(resolve => setTimeout(resolve, ms)));
// or
const sleep = util.promisify(setTimeout);
malarkey /
Last active Feb 18, 2020
(Data) Protection Racket
View color-log.js
function logColor(color, args) {
console.log(`%c ${args.join(' ')}`, `color: ${color}`);
const log = {
aliceblue: (...args) => { logColor('aliceblue', args)},
antiquewhite: (...args) => { logColor('antiquewhite', args)},
aqua: (...args) => { logColor('aqua', args)},
aquamarine: (...args) => { logColor('aquamarine', args)},
azure: (...args) => { logColor('azure', args)},
ooflorent / canvas.js
Last active Jun 23, 2018
Canvas helpers & noise generator
View canvas.js
* @param {number} width
* @param {number} height
* @param {!CanvasPattern} pattern
* @constructor
function Texture(width, height, pattern) {
this.width = width
this.height = height
this.pattern = pattern
bendc / simulate-typing.js
Created Sep 1, 2017
Fake typing animation
View simulate-typing.js
const trackTime = timing => {
const now =;
if (!timing.startTime) timing.startTime = now;
const elapsed = now - timing.startTime;
const {duration} = timing;
if (duration != null && duration <= elapsed) timing.startTime = null;
return elapsed;
const delay = (callback, duration) => {
notwaldorf / 👀.md
Last active Mar 3, 2020
Advice for new developers
View 👀.md

Someone sent me an email asking me what advice I had for new developers. I get this question a bunch, so I wanted to put all my thoughts in one place, that I can update as I get more ideas!

I answered this a bunch on my AMA repo, so here's some initial general answers, before I get to some of the specific questions:

You can’t perform that action at this time.