Skip to content

Instantly share code, notes, and snippets.

hkrish hkrish

Block or report user

Report or block hkrish

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@njvack
njvack / catmullrom2bezier.js
Created Oct 10, 2013
A routine to compute the cubic Bézier spline parameters to fit a curve to points, using the Catmull-Rom algorithm.
View catmullrom2bezier.js
//************************************************
//
// Catmull-Rom Spline to Bezier Spline Converter
//
//
// This is an experimental extension of the SVG 'path' element syntax to
// allow Catmull-Rom splines, which differs from Bézier curves in that all
// defined points on a Catmull-Rom spline are on the path itself.
//
// This is intended to serve as a proof-of-concept toward inclusion of a
@nicdaCosta
nicdaCosta / Grep.js
Last active Jul 10, 2019
Basic function that searches / filters any object or function and returns matched properties.
View Grep.js
/*
Grep.js
Author : Nic da Costa ( @nic_daCosta )
Created : 2012/11/14
Version : 0.2
(c) Nic da Costa
License : MIT, GPL licenses
Overview:
Basic function that searches / filters any object or function and returns matched properties.
@alexmcpherson
alexmcpherson / scrape.js
Created Sep 17, 2012
Casper.js vimrc scraper
View scrape.js
var casper = require("casper").create();
var url = "https://github.com/search?langOverride=VimL&language=&q=vimrc&repo=&type=Repositories&start_value=" + casper.cli.get(0);
var repoLinks = [];
var fileLinks = [];
function getRepoLinks() {
var links = [];
$("div.results .result h2 a").each(function(i,el){
links.push(el.href);
});
@nsfmc
nsfmc / doodler.py
Created Apr 3, 2012
a small utility script to rasterize an illustrator file with ghostscript and graphicsmagick
View doodler.py
"""
doodler.py - (c) 2012 Marcos Ojeda <marcos@khanacademy.org>
--"Quis leget haec?"
requires
graphicsmagick - brew install graphicsmagick
ghostscript - brew install ghostscript
"""
You can’t perform that action at this time.