Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kewah
kewah / README.md
Last active June 18, 2021 00:44
Roam iA Writer Quattro theme
@kewah
kewah / vimUserSettings.js
Last active March 6, 2022 07:22
Personal User Settings for Vim plugin
{
"vim.surround": true,
"vim.sneak": true,
"vim.easymotion": true,
"vim.easymotionMarkerFontFamily": "Inconsolata",
"vim.easymotionMarkerHeight": 15,
"vim.easymotionMarkerFontSize": "14",
"vim.easymotionMarkerYOffset": 1,
"vim.useSystemClipboard": true,
"vim.leader": "space",
@kewah
kewah / lethargy.js
Last active August 29, 2015 14:26
Module that kills inertia on scroll and returns direction
// From https://github.com/d4nyll/lethargy and lightly modified
module.exports = function(stability, sensitivity, tolerance) {
return new Lethargy(stability, sensitivity, tolerance);
};
function Lethargy(stability, sensitivity, tolerance) {
// Defaults
@kewah
kewah / .vimrc
Created September 25, 2013 19:55
set nocompatible
" change the mapleader from / to ,
let mapleader=","
execute pathogen#infect()
execute pathogen#helptags()
filetype plugin indent on " enable detection, plugins and indenting in one step
syntax on
@kewah
kewah / css-animation.js
Created January 9, 2013 14:49
JavaScript snippet to get CSS Animation event types (animationstart, animationend, animationiteration).
var CSSAnimation = (function(window, document, undefined) {
'use strict';
function camelCaseEventTypes(prefix) {
prefix = prefix || '';
return {
start: prefix + 'AnimationStart',
end: prefix + 'AnimationEnd',
iteration: prefix + 'AnimationIteration'
@kewah
kewah / st-shortcuts-memo.md
Last active December 11, 2017 20:33
Sublime Text 2 - Shortcuts

HTML


  • alt+shift+w: Wrapping content with tag
  • super+shift+a: Select content into tag

Bookmarks


  • super+f2: Toggle bookmark
  • f2: Next bookmark
  • shift+f2: Previous bookmark
@kewah
kewah / _media-queries.scss
Created June 26, 2012 15:07 — forked from anthonyshort/_media-queries.scss
Media Queries in Sass
// Media Queries in Sass 3.2
//
// These mixins make media queries a breeze with Sass.
// The media queries from mobile up until desktop all
// trigger at different points along the way
//
// And important point to remember is that and width
// over the portrait width is considered to be part of the
// landscape width. This allows us to capture widths of devices
// that might not fit the dimensions exactly. This means the break