Skip to content

Instantly share code, notes, and snippets.

View huyb1991's full-sized avatar
💭
Lethobenthos

Huy Nguyen huyb1991

💭
Lethobenthos
  • AgilityIO
  • Danang, Vietnam
View GitHub Profile
/** =================
* Heart beating effect
* HTML: <div class="heartbeat">❤︎</div> // Note, if use span, have to set display: inline-block
* ================= */
.heartbeat {
color: #e00;
animation: beat .5s infinite alternate;
}
/* 1st keyframes: https://jsfiddle.net/qLfg2mrd/ */
@keyframes heartbeat {
@huyb1991
huyb1991 / useful-scripts.js
Last active May 26, 2018 12:42
Useful scripts
/* =======================================
* Random emoji for 404 error message.
* ==================================== */
// <h1 class="error-emoji"></h1>
const randomErrorEmoji = () => {
const error = document.getElementsByClassName('error-emoji')[0];
const emojiArray = [
'\\(o_o)/', '(o^^)o', '(˚Δ˚)b', '(^-^*)', '(≥o≤)', '(^_^)b', '(·_·)',
'(=\'X\'=)', '(>_<)', '(;-;)', '\\(^Д^)/',
];
@huyb1991
huyb1991 / multiple_ssh_setting.md
Created September 3, 2017 11:31 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@huyb1991
huyb1991 / Vagrantfile
Created September 30, 2016 02:44
A simple Vagrantfile and provision.sh file to setup a LAMP stack for ubuntu/trusty64 box.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "forwarded_port", guest: 80, host: 8080
# Create a private network, which allows host-only access to the machine
# using a specific IP.
# config.vm.network "private_network", ip: "192.168.33.10"