Skip to content

Instantly share code, notes, and snippets.

Avatar

Manas Bajaj manasb-uoe

View GitHub Profile
@manasb-uoe
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');
console.time('timer');
const extract = tar.extract();
@manasb-uoe
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";
@Component({
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.