Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / 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 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 September 10, 2014 13:34
Generated by SassMeister.com.
// ----
// Sass (v3.4.3)
// Compass (v1.0.1)
// ----
.teaser {
display: none;
.noscript & { display: block; }
}
# 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 / index.html
Created June 9, 2013 16:45
A CodePen by Vadim Sikora. Dropdown menu - Just a proof of concept no js dropdown menu inspired by http://www.riotindustries.com/
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="css/screen.css" type="text/css" />
</head>
<body>
<div class="menu">
<label class="menu__toggle" for="menu-toggle">
@vxsx
vxsx / dabblet.css
Created April 21, 2012 18:10 — forked from kizu/dabblet.css
Scrolling shadows by @kizmarh
/* Scrolling shadows by @kizmarh */
html {
background: #FFF;
}
.scrollbox {
position: relative;
z-index: 1;
@vxsx
vxsx / gist:2427782
Created April 20, 2012 11:01
Pretty svn
# Highlight STDIN based on PCRE patterns.
function highlight {
local color=33;
local perl_regex='';
while [ $# -gt 0 ]; do
local brightness=1;
local param="$1";
if [ "${param:0:2}" = "--" ]; then
if [[ "${param:2:5}" == "dark-" ]]; then
brightness=0;