Skip to content

Instantly share code, notes, and snippets.

View minhchu's full-sized avatar
🎯
Focusing

Minh Chu minhchu

🎯
Focusing
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Library Website</title>
<!-- CSS only -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
<!-- JavaScript Bundle with Popper -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Library Website</title>
<!-- CSS only -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
<!-- JavaScript Bundle with Popper -->
@minhchu
minhchu / index.html
Created September 17, 2021 03:30
HTML + CSS Homework 2
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Minh's Website</title>
<!-- Google fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;600;700&display=swap" rel="stylesheet">
@minhchu
minhchu / index.html
Created September 14, 2021 03:21
HTML + CSS - Homework 1
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Minh's Website</title>
<style type="text/css">
.avatar {
width: 128px;
height: 128px;
}
@minhchu
minhchu / config.yml
Created May 28, 2021 00:30 — forked from thijskok/config.yml
CircleCI 2.0 Laravel build configuration with PHP 7.1, NodeJS, and MySQL support. Runs both PHPunit as well as Laravel Dusk. Proper GD configuration for image editing purposes. Several linters included (requires including them in composer / package.json).
version: 2
jobs:
build:
working_directory: ~/user/repo
environment:
BASH_ENV: ~/.bashrc
docker:
@minhchu
minhchu / simple-git-branching-model.md
Created July 15, 2020 08:42 — forked from chalasr/simple-git-branching-model.md
a simple git branching model

a simple git branching model

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

@minhchu
minhchu / cmd.sh
Created March 22, 2019 03:25
Resolve conflict on PR
# on feature branch
git fetch origin staging
git merge origin/staging
@minhchu
minhchu / delete.py
Created December 18, 2018 10:32
Mixpanel delete profiles
from mixpanel_api import Mixpanel
if __name__ == '__main__':
# API_Secret and Token of a Beeketing platform project
secret = ''
token = ''
mixpanel = Mixpanel(secret, token, pool_size=4, debug=True)
selector = '(properties["to_delete"] == true)'
parameters = {'selector': selector}
@minhchu
minhchu / usage.jsx
Created November 28, 2018 06:57
React Role Based Authorization
const User = Authorization(['user', 'manager', 'admin'])
const Manager = Authorization(['manager', 'admin'])
const Admin = Authorization(['admin'])
const UserPage = User(Users)
const EditUserPage = Manager(EditUser)
const CreateUserPage = Admin(CreateUser)
<Router history={BrowserHistory}>
<Route path="/" component={App}>
@minhchu
minhchu / webpack-devserver.js
Created November 4, 2018 09:08 — forked from michaelrambeau/webpack-devserver.js
Script to launch webpack dev server (instead of using `webpack-dev-server --content-base www --hot` command).
// node.js server used to serve assets bundled by Webpack
// use `npm start` command to launch the server.
const webpack = require('webpack');
const WebpackDevServer = require('webpack-dev-server');
const config = require('../../config/webpack.local.config');
console.log('Starting the dev web server...');
const port = 8080;
const path = require('path');
const options = {