Skip to content

Instantly share code, notes, and snippets.


Manas Bajaj manasb-uoe

View GitHub Profile
manasb-uoe / index.js
Created Oct 18, 2018
Reading a tar.gz file into memfs
View index.js
const tar = require('tar-stream');
const fs = require('fs');
const gzip = require('gunzip-maybe');
const memfs = require('memfs').fs;
const mkdirp = require('mkdirp');
const streamToBuffer = require('stream-to-buffer');
const extract = tar.extract();
manasb-uoe / agGridColChooser.ts
Created Oct 14, 2017
Column chooser angular component for ag-grid
View agGridColChooser.ts
import {Component, Input} from "@angular/core";
import {AgGridNg2} from "ag-grid-angular";
import {Column} from "ag-grid";
selector: "ag-grid-col-chooser",
template: `
<!--<button>Choose columns</button>-->
<div class="cols-container" *ngIf="cols">
<div class="col" *ngFor="let col of cols" (click)="agGrid.columnApi.setColumnVisible(col, !col.isVisible())"
You can’t perform that action at this time.