Skip to content

Instantly share code, notes, and snippets.

View kahboom's full-sized avatar
🍕
pizza

Rachel Yordán kahboom

🍕
pizza
View GitHub Profile
@kahboom
kahboom / media-query.css
Created December 8, 2020 17:08 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */
@kahboom
kahboom / 👀.md
Created November 20, 2020 12:19 — forked from notwaldorf/👀.md
Advice for new developers

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:

@kahboom
kahboom / what-forces-layout.md
Created October 29, 2020 12:17 — forked from paulirish/what-forces-layout.md
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@kahboom
kahboom / typescript-web-components.md
Created September 26, 2020 11:15 — forked from aelbore/typescript-web-components.md
Step by Step creating web components in typescript using rollup

Getting Started

  • Install Dependencies
    npm init
    npm install --save-dev ts-node typescript tslib express @types/express
    

Create your web server

  • Create server.ts in root folder of your app.
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Created: 2010/12/05
// Updated: 2018/09/12
// License: MIT
//
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it)
//
@kahboom
kahboom / linebreak.md
Created November 19, 2018 12:37
Line breaks in markdown
Hello  (<-- two spaces)
World

Hello
World


@kahboom
kahboom / script.sh
Created November 14, 2018 11:59 — forked from cheungnj/script.sh
Convert asciidoc to Github Flavored Markdown
# Adapted from https://tinyapps.org/blog/nix/201701240700_convert_asciidoc_to_markdown.html
# Using asciidoctor 1.5.6.1 and pandoc 2.0.0.1
# Install pandoc and asciidoctor
$ sudo apt install asciidoctor
$ sudo wget https://github.com/jgm/pandoc/releases/download/2.0.0.1/pandoc-2.0.0.1-1-amd64.deb
$ sudo dpkg -i pandoc-2.0.0.1-1-amd64.deb
# Convert asciidoc to docbook using asciidoctor
@kahboom
kahboom / irc.md
Created August 1, 2018 15:21 — forked from xero/irc.md
irc cheat sheet

#IRC Reference

Not intended as a guide for newbies, more like a "cheat sheet" for the somewhat experienced IRC user, especially one who wields some power over a channel.

##The Basics

  • /join #channel
    • Joins the specified channel.
  • /part #channel
    • Leaves the specified channel.
echo $(oc exec $(pod=$(oc get pod -o=name -l component=syndesis-rest); echo ${pod#pods/}) -- unzip -c runtime.jar META-INF/MANIFEST.MF|grep '^Git-Commit-Id:')
git rev-parse HEAD
export COOKIE='' # the value of _oauth_proxy cookie from browser
curl -k -H "Cookie: _oauth_proxy=$COOKIE" -H 'Accept: application/json' -H 'Content-Type: application/json' -XPOST -d @new-petstore-api-connector.json https://syndesis.$(minishift ip).nip.io/api/v1/connectors/custom