Skip to content

Instantly share code, notes, and snippets.

Avatar

shuaibird shuaibird

View GitHub Profile
View tmux_commands.md

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 Dec 9, 2017 — forked from rnarian/scope-name
Atom scope name list
View scope-name
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 Jul 31, 2017
mvc example
View mvc.html
<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 Jul 9, 2017
embed watermark to images (pass different option when needed)
View watermark.js
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 Jul 2, 2017
Draw a grid using css & js
View grid.css
body,
* {
margin: 0;
padding: 0;
}
.line {
background-color: #efefef;
}
@shuaibird
shuaibird / snow.html
Created Feb 7, 2017 — forked from zsxsoft/snow.html
wa2-snow.html
View snow.html
<!DOCTYPE html>
<html lang="zh-Hans-cn">
<head>
<meta charset="UTF-8">
<title>WHITE ALBUM</title>
<style>
body {
background: #000000;
margin: 0;
}
You can’t perform that action at this time.