Skip to content

Instantly share code, notes, and snippets.

View opeyemidy's full-sized avatar

Abdullahi Ridwan opeyemidy

  • Nigeria
View GitHub Profile
@opeyemidy
opeyemidy / pbpaste-pbcopy-ubuntu.md
Created September 29, 2023 12:53 — forked from diegopacheco/pbpaste-pbcopy-ubuntu.md
pbpaste && pbcopy for Ubuntu Linux 20.04

Install

sudo apt-get install xclip -y

Create Alias

alias pbcopy='xclip -selection clipboard'
alias pbpaste='xclip -selection clipboard -o'

Try out

If you're working with traditional web development and don't have a backend server, you can still use client-side libraries to convert an HTML table to Excel. Here are a couple of options that you can use in such scenarios:

  1. TableExport.js: TableExport.js is a JavaScript library that enables exporting HTML tables to various formats, including Excel. It doesn't require a backend server and works entirely on the client-side.

    <script src="https://unpkg.com/tableexport@5.2.0/dist/js/tableexport.min.js"></script>
    <script>
      var table = document.getElementById('myTable');
      TableExport(table, {

formats: ['xlsx'],

@opeyemidy
opeyemidy / _app.tsx
Last active December 4, 2022 06:27
Swr with Apollo
import '@/styles/index.css';
import '@/styles/chrome-bug.css';
import 'keen-slider/keen-slider.min.css';
import { AppProps, NextWebVitalsMetric } from 'next/app';
import { useRouter } from 'next/router';
import { ApolloProvider } from '@apollo/client';
import { useEffect, FC } from 'react';
import { useApollo } from '@/lib/apollo';
import * as gtag from '@/lib/analytics';