Skip to content

Instantly share code, notes, and snippets.

View shuaibird's full-sized avatar

shuaibird shuaibird

View GitHub Profile
@shuaibird
shuaibird / tmux_commands.md
Created January 11, 2019 09:01 — forked from Alek-S/tmux_commands.md
tmux Commands

Start new named session:

tmux new -s [session name]

Detach from session:

ctrl+b d

List sessions:

tmux ls

Attach to named session:

@shuaibird
shuaibird / scope-name
Last active December 9, 2017 01:55 — forked from rnarian/scope-name
Atom scope name list
source.c
source.c++
source.coffee
source.css
source.css.less
source.css.scss
source.gfm
source.git-config
source.go
source.java
@shuaibird
shuaibird / mvc.html
Last active July 31, 2017 02:57
mvc example
<div>
<select id="nameList" size="5"></select>
<div id="nameCount">Total users: 0</div>
<button id="addButton">Add User</button>
<button id="removeButton">Remove User</button>
</div>
@shuaibird
shuaibird / watermark.js
Created July 9, 2017 01:55
embed watermark to images (pass different option when needed)
const watermark = require('image-watermark')
const path = require('path')
const fs = require('fs')
class WatermarkOptions {
constructor({ text, color, align, override, resize } = {}) {
this.text = text || 'Shadowrocks'
this.color = color || 'rgb(222, 222, 222)'
this.align = align || 'ltr'
this['override-image'] = override
@shuaibird
shuaibird / grid.css
Created July 2, 2017 05:11
Draw a grid using css & js
body,
* {
margin: 0;
padding: 0;
}
.line {
background-color: #efefef;
}
@shuaibird
shuaibird / snow.html
Created February 7, 2017 04:53 — forked from zsxsoft/snow.html
wa2-snow.html
<!DOCTYPE html>
<html lang="zh-Hans-cn">
<head>
<meta charset="UTF-8">
<title>WHITE ALBUM</title>
<style>
body {
background: #000000;
margin: 0;
}