Skip to content

Instantly share code, notes, and snippets.

@visnup
visnup / really.sh
Created February 12, 2014 23:39
people on twitter need something better to do.
#!/bin/sh
url='https://twitter.com/izs/status/433464696289497088'
while [[ -n $url ]]; do
echo $url
url=$(curl -s $url | fgrep data-expanded-url | head -1 | sed 's/.*data-expanded-url="\([^"]*\).*/\1/')
done
@visnup
visnup / dabblet.css
Created April 4, 2014 05:03 — forked from LeaVerou/dabblet.css
(C)Leanest CSS spinner ever
/**
* (C)Leanest CSS spinner ever
*/
@keyframes spin {
to { transform: rotate(1turn); }
}
.progress {
position: relative;
@visnup
visnup / README.md
Last active August 29, 2015 13:58
iOS-friendly histogram

An iOS-friendly histogram of my motion activity on my phone. Meant to be used inside a UIWebView.

Open on a phone and scrub back and forth with your finger.

@visnup
visnup / dabblet.css
Created June 19, 2014 00:27 — forked from anonymous/dabblet.css
Untitled
.loading {
border-bottom: 6px solid rgba(0, 0, 0, .1);
border-left: 6px solid rgba(0, 0, 0, .1);
border-right: 6px solid rgba(0, 0, 0, .1);
border-top: 6px solid rgba(0, 0, 0, .4);
border-radius: 100%;
height: 50px;
width: 50px;
animation: rot .6s infinite linear;
}
@visnup
visnup / dabblet.css
Created June 30, 2014 05:40
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
p { margin: 0; }
ul { list-style-type: none; padding-left: 0; margin: .5em 0 }
li { display: inline-block; }
input { margin-left: 1.5em; }
li:first-child input { margin-left: 0 }
body { font-family: 'Avenir'; }
@visnup
visnup / dabblet.css
Created July 22, 2014 09:28
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@visnup
visnup / dabblet.css
Created July 29, 2014 06:08
Untitled
div {
background: url(http://2.bp.blogspot.com/-LzjJphrxhVQ/Tc-hZ0Dp6sI/AAAAAAAADbE/rYNM9tEJWg8/s1600/70-the-most-awesome-picture-ever-taken.jpg) center center no-repeat;
width: 200px;
height: 200px;
}
@visnup
visnup / dabblet.css
Created July 29, 2014 06:08
Untitled
div.image {
background: transparent center center no-repeat;
background-size: auto 100%;
width: 200px;
height: 200px;
}
@visnup
visnup / dabblet.html
Created July 31, 2014 22:47
Untitled
<input type="text" pattern="\d*" />
@visnup
visnup / dabblet.html
Created August 1, 2014 02:31
Untitled
<input type="text" name="fname" placeholder="First name" />
<input type="text" name="lname" placeholder="Last name" />
<input type="text" name="email" placeholder="Email" />