Skip to content

Instantly share code, notes, and snippets.

@bennyschudel
bennyschudel / grab_url_title.sh
Created September 1, 2011 14:14
Script to grab the title of an url (using wget, grep and perl)
#!/bin/bash
wget -qO- --no-check-certificate "$1" | grep -oPi '<title[^>]*>(?:(?!<\/title>).)*<\/title>' | perl -pe 's/<title[^>]*>((?:(?!<\/title>).)*)<\/title>/\1/i'
@bennyschudel
bennyschudel / index.html
Created September 5, 2011 11:09
jQuery Plugin Skeleton
<!DOCTYPE html>
<head>
<meta charset="utf-8" />
<title></title>
<link rel="stylesheet" type="text/css" media="screen" href="main.css" />
</head>
<body>
<div id="main">
<div id="element"></div>
/**
* Rainbow
*/
html, body {
height: 100%;
}
#rainbow {
@bennyschudel
bennyschudel / dabblet.css
Created February 19, 2012 11:31
a close icon
/*
* a close icon
*/
a.icon {
backround-color: white;
border: 5px solid black;
border-radius: 50%;
position: relative;
@bennyschudel
bennyschudel / dabblet.css
Created February 19, 2012 12:16
CSS Bookmarks
/**
* CSS Bookmarks
*/
.bookmark {
width: 60px;
height: 60px;
position: relative;
cursor: pointer;
@bennyschudel
bennyschudel / dabblet.css
Created March 6, 2012 13:05
Stepnavigation
/**
* Stepnavigation
*/
body {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 12px;
}
ul {
@bennyschudel
bennyschudel / dabblet.css
Created March 24, 2013 11:58 — forked from LeaVerou/dabblet.css
Vertically centered text with SVG
/* Vertically centered text with SVG */
div {
width: 300px;
height: 150px;
background: #f06;
font: bold 150% sans-serif;
text-shadow: 0 1px 2px rgba(0,0,0,.5);
overflow: hidden; resize: both; /* just for this demo */
@bennyschudel
bennyschudel / dabblet.css
Created March 24, 2013 12:11 — forked from LeaVerou/dabblet.css
Vertically centered text with CSS
/* Vertically centered text with CSS */
div {
width: 300px;
height: 150px;
background: #f06;
font: bold 150% sans-serif;
text-shadow: 0 1px 2px rgba(0,0,0,.5);
overflow: hidden; resize: both; /* just for this demo */
@bennyschudel
bennyschudel / .bashrc
Last active December 17, 2015 14:49
Serve your current folder in your default browser
# serves the current folder in your default browser
#
# installation
# ---
# npm install -g http-server
#
# usage
# ---
# > serve
#