Skip to content

Instantly share code, notes, and snippets.

View elrumordelaluz's full-sized avatar
🚲
--css-bikeriables

Lionel Tzatzkin elrumordelaluz

🚲
--css-bikeriables
View GitHub Profile
#!/bin/bash
# source https://github.com/feathericons/feather/pull/608/commits/bc3040710dfdbff3d0a849ae0ac6990d7884b9d4
# This script uses:
# - Inkscape to convert every icon from strokes to paths
# - Fontcustom to convert all svg icons to TTF font
# - GNU Parallel to speedup process
# - Xvfb (X11 virtual frame buffer) to prevent show Inkscape window for
# every icon. Its not necessary, but highly recommended
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import React from 'react'
import { CodepenIcon } from '../icons'
const CodepenButton = ({ code, className }) => {
const codepenObject = {
title: 'Title',
description: 'Some description',
editors: '100',
...code,
}
@elrumordelaluz
elrumordelaluz / vendor-prefixes.md
Last active August 15, 2016 09:19
Excerpt From: Lea Verou. “CSS Secrets: Better Solutions to Everyday Web Design Problems” http://shop.oreilly.com/product/0636920031123.do

A story of ice, fire, and vendor prefixes

In standards development, there is always a big catch-22: standards groups need input from developers to create specifications that address real development needs. However, developers are generally not interested in trying out things they can’t use in production. When experimental technologies get widely used in production, the WG is forced to stick with the early, experimental version of the technology, to avoid breaking several existing websites if they change it. Obviously, this completely negates the benefits of getting developers to try out early standards.

Over the years, many solutions have been proposed to address this conundrum, none of them perfect. The universally despised vendor prefixes were one of them. The idea was that every browser would be able to implement experimental (or even proprietary) features with their own prefix prepended to its name. The most common prefixes are -moz- for Firefox, -ms- for IE, -o- for Opera, and -webkit- for Sa

@elrumordelaluz
elrumordelaluz / apply.css
Last active April 18, 2016 10:11
Alternatives for @apply proposal
@define --my-theme {
color: var(--main-color, #bada55);
font-size: 1em;
/* ... */
};
.hero {
apply: var(--my-theme);
width: 100vw;
/* ... */
@elrumordelaluz
elrumordelaluz / SassMeister-input-HTML.html
Last active April 7, 2016 20:47
Generated by SassMeister.com.
<h3 class="item my-shake shake-constant">Shake</h3>
@elrumordelaluz
elrumordelaluz / README.md
Last active April 4, 2016 07:10
React ST3 snippets

React ST3 snippets

st3-snippet

  1. Goto Tools > New Plugin...
  2. Paste the snippets
  3. Remember to save it with .sublime-snippet extension
/***
*
* Is it ok to declare and use both `mapStateToChildListProps` and `mapStateToParentListProps`
* or there is a way to unify. I 'am thinkin if need more `connect()`ed comps will add more `mapStateTo__Props`.
*
***/
const Child = ({ ...props }) => (
<li>
<h3>{ props.foo }</h3>
# Using JSON.sh as a JSON parser
# Download https://github.com/dominictarr/JSON.sh
function jsonGetValue {
./JSON.sh | grep -F -e $1 | cut -f2 | tr -d '"'
}
# Usage
read -r -d '' JSON_DATA <<'EOF'
{
@elrumordelaluz
elrumordelaluz / git.sh
Last active October 21, 2015 10:27 — forked from neilgee/git.css
Git Command Line Reference - Notes and reminders on set up and commands
/* Set up Git Configuration */
git config --global user.email "you@yourdomain.com"
git config --global user.name "Your Name"
git config --global core.editor "vi"
git config --global color.ui true