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
@elrumordelaluz
elrumordelaluz / SassMeister-input.scss
Last active August 29, 2015 14:14
Generated by SassMeister.com.
// ----
// Sass (v3.4.11)
// Compass (v1.0.3)
// ----
$main-color: #2a333c;
$red:#c05b5b;
$green:#3D969A;
$light-grey:#b7b7b7;
$white:white;
@elrumordelaluz
elrumordelaluz / SassMeister-input.scss
Created February 19, 2015 12:25
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
$spacing-unit: 24px;
$spacing-unit-tiny: round(0.25 * $spacing-unit);
$spacing-unit-small: round(0.5 * $spacing-unit);
$spacing-unit-large: round(2 * $spacing-unit);
@elrumordelaluz
elrumordelaluz / featureDetection
Created April 14, 2015 13:51
Browser feature detection
// http://stackoverflow.com/questions/9847580/how-to-detect-safari-chrome-ie-firefox-and-opera-browser
var isOpera = !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0;
// Opera 8.0+ (UA detection to detect Blink/v8-powered Opera)
var isFirefox = typeof InstallTrigger !== 'undefined'; // Firefox 1.0+
var isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0;
// At least Safari 3+: "[object HTMLElementConstructor]"
var isChrome = !!window.chrome && !isOpera; // Chrome 1+
var isIE = /*@cc_on!@*/false || !!document.documentMode; // At least IE6
@elrumordelaluz
elrumordelaluz / SassMeister-input-HTML.html
Last active August 29, 2015 14:24
Generated by SassMeister.com.
<p class="tenue">hola</p>
<div class="overlay"></div>
@elrumordelaluz
elrumordelaluz / installer.sh
Last active September 18, 2015 15:03
Shell script to easily install the Una's `gulp-starter-env` https://github.com/una/gulp-starter-env
#!/bin/bash
# Ask the Project name
def=${PWD##*/}
echo What\'s the name of the Project? \($def\)
read proj
proj=${proj:-$def}
# Ask a description
echo A Project description, please?
@elrumordelaluz
elrumordelaluz / SassMeister-output.css
Last active October 2, 2015 17:06
Generated by SassMeister.com.
.js-calendar-graph-svg rect {
fill: #d6e685;
animation-name: fill;
animation-duration: 1s;
animation-timing-function: linear;
}
@keyframes fill {
to {
fill: #1e6823;
@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 "[email protected]"
git config --global user.name "Your Name"
git config --global core.editor "vi"
git config --global color.ui true
# 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'
{
/***
*
* 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>
@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