Skip to content

Instantly share code, notes, and snippets.

# A xterm-256color based TERMINFO that adds the escape sequences for italic.
#
# Install:
#
# tic xterm-256color-italic.terminfo
#
# Usage:
#
# export TERM=xterm-256color-italic
#
@vxsx
vxsx / SassMeister-input.scss
Created September 10, 2014 13:34
Generated by SassMeister.com.
// ----
// Sass (v3.4.3)
// Compass (v1.0.1)
// ----
.teaser {
display: none;
.noscript & { display: block; }
}
@vxsx
vxsx / SassMeister-input.scss
Created October 16, 2014 07:22
Generated by SassMeister.com.
// ----
// Sass (v3.4.5)
// Compass (v1.0.1)
// ----
.button {
width: 100px;
.parent & {
width: 50px;
}
@vxsx
vxsx / SassMeister-input.scss
Created October 31, 2014 11:02
Generated by SassMeister.com.
// ----
// Sass (v3.4.6)
// Compass (v1.0.1)
// ----
$gutters: (4 10 20);
@each $gutter in $gutters {
.row-gutter-#{$gutter} {
&,
.form-horizontal & {
@vxsx
vxsx / SassMeister-input.scss
Created November 17, 2014 06:26
Generated by SassMeister.com.
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
$line-height-computed: 20px !default;
$padding-base-vertical: 6px !default;
$input-height-base: ($line-height-computed + ($padding-base-vertical * 2) + 2) !default; //34px
@vxsx
vxsx / 0_reuse_code.js
Last active August 29, 2015 14:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@vxsx
vxsx / post-merge
Last active August 29, 2015 14:18 — forked from sindresorhus/post-merge
#/usr/bin/env bash
# MIT © Sindre Sorhus - sindresorhus.com
# git hook to run a command after `git pull` if a specified file was changed
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
check_run() {
echo "$changed_files" | grep --quiet "$1" && eval "$2"
@vxsx
vxsx / SassMeister-input.scss
Created June 23, 2015 11:31
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
//##################################################################################################################
// #SETTINGS#
// #COLORS#
$color-white: #fff;
@vxsx
vxsx / what-forces-layout.md
Last active September 20, 2015 19:19 — 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.

Element

Box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
  • elem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeight
  • elem.getClientRects(), elem.getBoundingClientRect()
@vxsx
vxsx / slim-redux.js
Created September 23, 2015 19:00 — forked from gaearon/slim-redux.js
Redux without the sanity checks in a single file. Don't use this, use normal Redux. :-)
function mapValues(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
result[key] = fn(obj[key], key);
return result;
}, {});
}
function pick(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
if (fn(obj[key])) {