Skip to content

Instantly share code, notes, and snippets.

@vishu17
vishu17 / gruntfile.js
Created November 23, 2014 11:46
gruntfile config for static sites
module.exports = function (grunt) {
grunt.initConfig({
connect: {
server: {
options: {
directory: '.', //Local dir that the gruntfile resides in
livereload: true,
port: 9001, // Your server will run on http://localhost:9001/
base: '.'
}
@vishu17
vishu17 / .emacs
Created November 16, 2014 19:29
Emacs config
(package-initialize)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(ansi-color-faces-vector
[default default default italic underline success warning error])
'(ansi-color-names-vector
@vishu17
vishu17 / curve-plotter.less
Last active August 29, 2015 13:59
A less mixin that can be used to calculate the (x, y) co-ordinates on a curve whose equation is known
// @baseX: co-ord on x to start plotting from and also the x interval between the points plotted
// @index: a natural number used to specify the co-ords to retrieve
// Returns the co-ordinates plotted on a curve defined by the equation used which
// is a parabola in the following example
.calculate-co-ords(@index: 1, @baseX: 0) {
@x: @baseX * @index;
// Following is the equation of the parabola we plot our co-ords on
@y: ceil(sqrt(19.2 * (@x - 4.8)));
@vishu17
vishu17 / Custom.css
Created May 22, 2012 07:07 — forked from bentruyman/Custom.css
IR_Black Theme for Chrome Developer Tools
/**********************************************/
/*
/* IR_Black Skin by Ben Truyman - 2011
/*
/* Based on Todd Werth's IR_Black:
/* http://blog.toddwerth.com/entries/2
/*
/* Inspired by Darcy Clarke's blog post:
/* http://darcyclarke.me/design/skin-your-chrome-inspector/
/*