Skip to content

Instantly share code, notes, and snippets.

Avatar

dcloud SBaof

View GitHub Profile
@SBaof
SBaof / dabblet.css
Created Sep 19, 2017 — forked from csssecrets/dabblet.css
Inner rounding
View dabblet.css
/**
* 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;
@SBaof
SBaof / dabblet.css
Created Sep 14, 2017 — forked from csssecrets/dabblet.css
Flexible background positioning
View dabblet.css
/**
* 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 Sep 14, 2017 — forked from csssecrets/dabblet.css
Flexible background positioning
View dabblet.css
/**
* 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 Sep 14, 2017 — forked from csssecrets/dabblet.css
Multiple borders
View dabblet.css
/**
* Multiple borders
*/
div {
width: 100px;
height: 60px;
margin: 25px;
background: yellowgreen;
box-shadow: 0 0 0 10px #655,
@SBaof
SBaof / dabblet.css
Last active Sep 14, 2017
Translucent borders
View dabblet.css
/**
* Translucent borders
*/
body {
background: url('http://csssecrets.io/images/stone-art.jpg');
}
div {
border: 10px solid hsla(0,0%,100%,.5);
View gist:b3c7d90d43347c0ed87c5f51c84126f4
待排数组:
```
$user = [
[
'name' => 'tom',
'age' => 10,
],
[
'name' => 'Jim',
'age' => 9,
View gist:dee23a468c659e0555d9ecc0e247a07d
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/
@SBaof
SBaof / hello.c
Last active May 15, 2017
Say hello world in C
View hello.c
#include <stdio.h>
int main(int argc, char** argv)
{
printf("hello world!");
return 0;
}
You can’t perform that action at this time.