Skip to content

Instantly share code, notes, and snippets.

View php1301's full-sized avatar
๐Ÿ™
Almost there....

php1301

๐Ÿ™
Almost there....
  • Brisbane
  • 21:03 (UTC +10:00)
View GitHub Profile
@php1301
php1301 / .aliases.kubectl.sh
Created July 22, 2023 15:08 — forked from zephinzer/.aliases.kubectl.sh
Dotfile for Kubectl aliases based on abbreviations
#!/bin/sh
# canonical url: https://github.com/zephinzer/config-nix-shell/blob/master/.aliases.kubectl
# a set of useful aliases for kubectl usage by @zephinzer
#
# usage: source ./.aliases.kubectl.sh
#
# main features:
# - use kcsetns to set your current namespace
# - use kcgetns to get your current namespace
# - simple intuitive shortcuts for everything else
@php1301
php1301 / 55-bytes-of-css.md
Created September 26, 2022 10:40 — forked from JoeyBurzynski/55-bytes-of-css.md
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@php1301
php1301 / taro.txt
Created April 19, 2022 14:33
taro data
0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0
1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0
0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0
0 0 1 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0
0 0 0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 1 0 1 0 1 0 0 0 0 0 0 0 1 0 0 1 0 0 0
0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 1 0 1 0 0 1 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0
@php1301
php1301 / ExampleComponent.tsx
Created January 3, 2022 04:12 — forked from ladifire/ExampleComponent.tsx
Demonstrate how to use Error boundary component in Reactjs
import React from 'react';
import { withErrorBoundary } from 'components/common/MartyErrorBoundary';
export const ExampleComponent = () => {
return (
<div>
Component
</div>
);
@php1301
php1301 / shimmer.ts
Created October 1, 2021 11:02
shimmer nextjs 11+
export const shimmer = (w, h) => `
<svg width="${w}" height="${h}" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<linearGradient id="g">
<stop stop-color="#cfcfcf" offset="20%" />
<stop stop-color="#fff" offset="50%" />
<stop stop-color="#fff" offset="70%" />
</linearGradient>
</defs>
<rect width="${w}" height="${h}" fill="#cfcfcf" />
@php1301
php1301 / README-Template.md
Created April 11, 2020 09:41 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

### Keybase proof
I hereby claim:
* I am php1301 on github.
* I am phucpham1301 (https://keybase.io/phucpham1301) on keybase.
* I have a public key ASDuJRWEeMytB1rbjtVyh-OPDyWcBRCOe04vUZ5GbfcC4go
To claim this, I am signing this object: