Skip to content

Instantly share code, notes, and snippets.

View SBaof's full-sized avatar

dcloud SBaof

View GitHub Profile
@SBaof
SBaof / hello.c
Last active May 15, 2017 07:48
Say hello world in C
#include <stdio.h>
int main(int argc, char** argv)
{
printf("hello world!");
return 0;
}
nohup fswatch -l 0.1 -o ~/bao/bao.baijiabao.com/Wesambo -e ~/bao/bao.baijiabao.com/.git | xargs -n1 -I{} rsync -avz ~/bao/bao.baijiabao.com/Wesambo/ ~/last/bao.baijiabao.com/Wesambo/
待排数组:
```
$user = [
[
'name' => 'tom',
'age' => 10,
],
[
'name' => 'Jim',
'age' => 9,
@SBaof
SBaof / dabblet.css
Last active September 14, 2017 07:19
Translucent borders
/**
* Translucent borders
*/
body {
background: url('http://csssecrets.io/images/stone-art.jpg');
}
div {
border: 10px solid hsla(0,0%,100%,.5);
@SBaof
SBaof / dabblet.css
Created September 14, 2017 07:31 — forked from csssecrets/dabblet.css
Multiple borders
/**
* Multiple borders
*/
div {
width: 100px;
height: 60px;
margin: 25px;
background: yellowgreen;
box-shadow: 0 0 0 10px #655,
@SBaof
SBaof / dabblet.css
Created September 14, 2017 07:55 — forked from csssecrets/dabblet.css
Flexible background positioning
/**
* Flexible background positioning
* via calc()
*/
div {
background: url(http://csssecrets.io/images/code-pirate.svg)
no-repeat bottom right #58a;
background-position: calc(100% - 20px) calc(100% - 10px);
@SBaof
SBaof / dabblet.css
Created September 14, 2017 07:56 — forked from csssecrets/dabblet.css
Flexible background positioning
/**
* Flexible background positioning
* via extended background-position
*/
div {
background: url(http://csssecrets.io/images/code-pirate.svg)
no-repeat bottom right #58a;
background-origin: content-box;
@SBaof
SBaof / dabblet.css
Created September 19, 2017 12:57 — forked from csssecrets/dabblet.css
Inner rounding
/**
* Inner rounding
*/
div {
outline: .6em solid #655;
box-shadow: 0 0 0 .4em #655; /* todo calculate max of this */
max-width: 10em;
border-radius: .8em;