Skip to content

Instantly share code, notes, and snippets.

View nidheeshdas's full-sized avatar

Nidheeshdas Thavorath nidheeshdas

View GitHub Profile
@nidheeshdas
nidheeshdas / mui-datatables.d.ts
Created September 7, 2018 13:46
DTS for mui-datatables: makeshift yet usable
declare module "mui-datatables" {
import { ReactNode } from "react";
export interface MUIDataTableColumn {
name: string
options?: MUIDataTableColumnOptions
}
export interface MUIDataTableColumnOptions {

Keybase proof

I hereby claim:

  • I am nidheeshdas on github.
  • I am nidheeshdas (https://keybase.io/nidheeshdas) on keybase.
  • I have a public key whose fingerprint is DDC3 618B 9769 FF45 49C3 03AF AF7C 7704 7D57 D759

To claim this, I am signing this object:

@nidheeshdas
nidheeshdas / package.json
Last active August 29, 2015 14:05
npmd-resolve-greedy.json
{
"axis": {
"name": "axis",
"version": "0.2.0",
"shasum": "57a1ad37a07cb2fcadde2cd369d48b4375429124",
"tarball": "http://registry.npmjs.org/axis/-/axis-0.2.0.tgz",
"dependencies": {}
},
"debug": {
"name": "debug",
@nidheeshdas
nidheeshdas / gist:48ba1fc5774ff4280838
Created July 21, 2014 10:36
change color of imported svg in fabric js
if (shape.isSameColor && shape.isSameColor() || !shape.paths) {
shape.setFill(colorSet);
} else if (shape.paths) {
for (var i = 0; i < shape.paths.length; i++) {
shape.paths[i].setFill(colorSet);
}
}
@nidheeshdas
nidheeshdas / convertAnyChartXMLToJSON.js
Created September 14, 2013 07:24
Convert AnyChart XML to JSON object.
(function(window){
var attrFn = function() {
if(arguments.length === 0) {
if(this.length === 0) {
return null;
}
var obj = {};
$.each(this[0].attributes, function() {
if(this.specified) {