Skip to content

Instantly share code, notes, and snippets.

View sandeshdamkondwar's full-sized avatar
🏠
Working from home

Sandesh Damkondwar sandeshdamkondwar

🏠
Working from home
View GitHub Profile

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

Toggle switch with checkbox:checked

Round switch button in css with animation cleaned up. Inspired on the design of Paul Flavius, see:

http://psd.tutsplus.com/tutorials/interface-tutorials/round-switch-button/

It is pure CSS, and animated so don't forget to click this very special checkbox. And in case you wonder: yes, this checkbox can be used in forms just as if it was a normal checkbox!

PS: can anyone confirm the animation with :checked state in safari?

@sandeshdamkondwar
sandeshdamkondwar / javascript_resources.md
Last active August 29, 2015 14:06 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@sandeshdamkondwar
sandeshdamkondwar / css_resources.md
Last active August 29, 2015 14:06 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

NERDTree

o.......Open files, directories and bookmarks....................|NERDTree-o|
go......Open selected file, but leave cursor in the NERDTree.....|NERDTree-go|
t.......Open selected node/bookmark in a new tab.................|NERDTree-t|
T.......Same as 't' but keep the focus on the current tab........|NERDTree-T|
i.......Open selected file in a split window.....................|NERDTree-i|
gi......Same as i, but leave the cursor on the NERDTree..........|NERDTree-gi|
s.......Open selected file in a new vsplit.......................|NERDTree-s|
gs......Same as s, but leave the cursor on the NERDTree..........|NERDTree-gs|

O.......Recursively open the selected directory..................|NERDTree-O|

#!/bin/bash
# Get the absolute path of the folder where this script exists.
curr_dir=`pwd`
dir=`dirname $0`
FILE_PATH=`cd $dir;pwd`
# Install node
apt-get install python-software-properties curl -y
add-apt-repository ppa:chris-lea/node.js-devel
@sandeshdamkondwar
sandeshdamkondwar / bitbucket.css
Created October 2, 2014 05:04
Custom extended stylesheets for different websites. Apply these styles using StyleBot chrome extension.
#fulfill-pullrequest {
color: #FFF;
font-weight: 400;
}
#readme {
border: 1px solid #CCC;
padding: 20px;
}
@sandeshdamkondwar
sandeshdamkondwar / custom_marker.js
Last active August 29, 2015 14:07
Creating custom icon for markers In Google Maps.
$("#map_extended").gMap({
controls: false,
scrollwheel: true,
maptype: 'TERRAIN',
markers: [
{
latitude: 47.670553,
longitude: 9.588479,
icon: {
image: "images/gmap_pin_orange.png",
#!/usr/bin/env bash
# script: watch
# author: Mike Smullin <mike@smullindesign.com>
# license: GPLv3
# description:
# watches the given path for changes
# and executes a given command when changes occur
# usage:
# watch <path> <cmd...>
#
module Jekyll
class GooglePlusEmbedTag < Liquid::Tag
@post = nil
@height = ''
@width = ''
def initialize(tag_name, markup, tokens)
if markup =~ /(https:\/\/plus.google.com\/\d+\/posts\/\w+)/i
@url = $1