Skip to content

Instantly share code, notes, and snippets.

View rishabh-ink's full-sized avatar

Rishabh rishabh-ink

View GitHub Profile
@rishabh-ink
rishabh-ink / javaee6-useful-links
Created March 15, 2012 04:32
Java EE 6 - Useful links
@rishabh-ink
rishabh-ink / New Javascript RequireJS Module.sublime-snippet
Created July 14, 2012 04:32
Sublime Text 2: Snippet for new Javascript RequireJS module
<snippet>
<content><![CDATA[
"use strict";
/**
* ${TM_FILENAME/.js//g}
* ${1:The ${TM_FILENAME/.js//g} module.}
* @author ${2:$TM_FULLNAME}
*/
define(["${3:jquery}"], function(${4}) {
@rishabh-ink
rishabh-ink / Sublime Text User Prefs
Last active October 10, 2015 12:18
Just my Sublime Text User Prefs
{
"auto_complete_commit_on_tab": false,
"bold_folder_labels": true,
"color_scheme": "Packages/Theme - Aqua/Color Schemes/Tomorrow Night Aqua.tmTheme",
"detect_slow_plugins": false,
"drag_text": false,
"draw_minimap_border": true,
"folder_exclude_patterns":
[
".sass-cache",
@rishabh-ink
rishabh-ink / jquery-ajax-method-stub.js
Created September 14, 2012 06:16
jQuery AJAX method stub
jQuery.ajax({
url: "http://",
type: "GET",
dataType: "json",
async: true,
cache: true,
data: {},
beforeSend: function(jqXHR, settings) {
},
complete: function(jqXHR, settings) {
<div class="container">
<div id="robot">
<img src="http://www.iconfinder.com/ajax/download/png/?id=47303&s=128" alt=""/>
</div>
</div>
@rishabh-ink
rishabh-ink / prompt-string
Last active December 12, 2015 09:09
A preposition-style prompt string.
# Paste the following in your ~/.bashrc or ~/.bash_profile or whichever file you prefer. If it doesn't exist, copy over the examples from /etc/skel/.
# Courtesy: https://wiki.archlinux.org/index.php/Color_Bash_Prompt#List_of_colors_for_prompt_and_Bash
txtblk='\e[0;30m' # Black - Regular
txtred='\e[0;31m' # Red
txtgrn='\e[0;32m' # Green
txtylw='\e[0;33m' # Yellow
txtblu='\e[0;34m' # Blue
txtpur='\e[0;35m' # Purple
txtcyn='\e[0;36m' # Cyan
@rishabh-ink
rishabh-ink / dabblet.css
Created May 5, 2013 17:40
CSS font property example
/**
* CSS font property example
* docs.webplatform.org/wiki/css/properties/font
*/
/*
See http://css-tricks.com/snippets/css/better-helvetica
and http://css-tricks.com/sans-serif
*/
.example-one {
@rishabh-ink
rishabh-ink / dabblet.css
Created May 7, 2013 06:46
CSS border-top-color example
/**
* CSS border-top-color example
* http://docs.webplatform.org/wiki/css/properties/border-top-color
*/
body {
margin: 0 auto;
width: 80%;
}
@rishabh-ink
rishabh-ink / dabblet.css
Created May 7, 2013 07:20
CSS border-top-color example
/**
* CSS border-top-color example
* http://docs.webplatform.org/wiki/css/properties/border-top-color
*/
body {
margin: 0 auto;
width: 80%;
}
@rishabh-ink
rishabh-ink / dabblet.css
Created May 7, 2013 07:29
CSS border-bottom-color example
/**
* CSS border-bottom-color example
* http://docs.webplatform.org/wiki/css/properties/border-bottom-color
*/
body {
margin: 0 auto;
width: 80%;
}