Skip to content

Instantly share code, notes, and snippets.

View purwantoid's full-sized avatar
🏠
Working from home

Purwanto purwantoid

🏠
Working from home
  • Tangerang Banten
  • 02:29 (UTC -12:00)
View GitHub Profile
@purwantoid
purwantoid / data-table.tsx
Created June 19, 2025 14:08 — forked from nicostombros/data-table.tsx
Shadcn UI implementation of DataTable and Pagination components working together
// same as your regular shadcn datatable implementation (which uses tanstack table)
// note that the shadcn datatable uses shadcn table for the ui. see https://ui.shadcn.com/docs/components/data-table
import {
ColumnFiltersState,
SortingState,
VisibilityState,
flexRender,
getCoreRowModel,
getFilteredRowModel,
@purwantoid
purwantoid / gist:7a21bbc1c1e775a2d82538c09ae54b20
Created June 1, 2021 08:46 — forked from richardschoen/gist:78ed5bd3b0656ba8eb4adfff9715e811
C# - set directory permissions for Everyone to Full Control. Useful when you need to store settings and other files in your app directory
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Security.Principal;
using System.Security.AccessControl;
using System.IO;
namespace RSSetDirPermissionsCS