Skip to content

Instantly share code, notes, and snippets.


Vishu vishu17

View GitHub Profile
vishu17 / gruntfile.js
Created Nov 23, 2014
gruntfile config for static sites
View gruntfile.js
module.exports = function (grunt) {
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 / .emacs
Created Nov 16, 2014
Emacs config
View .emacs
;; 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.
[default default default italic underline success warning error])
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 / 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:
/* Inspired by Darcy Clarke's blog post: