Skip to content

Instantly share code, notes, and snippets.

Avatar

Vishu vishu17

View GitHub Profile
@vishu17
vishu17 / gruntfile.js
Created Nov 23, 2014
gruntfile config for static sites
View gruntfile.js
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 Nov 16, 2014
Emacs config
View .emacs
(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 Aug 29, 2015
A less mixin that can be used to calculate the (x, y) co-ordinates on a curve whose equation is known
View curve-plotter.less
// @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 — forked from bentruyman/Custom.css
IR_Black Theme for Chrome Developer Tools
View Custom.css
/**********************************************/
/*
/* 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/
/*