Skip to content

Instantly share code, notes, and snippets.

View philippbosch's full-sized avatar

Philipp Bosch philippbosch

View GitHub Profile
/* Display */
body {
background: /* http://lea.verou.me/css3patterns/#carbon-fibre */
radial-gradient(black 15%, transparent 16%) 0 0,
radial-gradient(black 15%, transparent 16%) 8px 8px,
radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 0 1px,
radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 8px 9px;
background-color:#333;
background-size:16px 16px;
@philippbosch
philippbosch / dabblet.css
Created February 24, 2012 10:14
Untitled
body {
text-align: center;
margin-top: 100px;
background: #CCC;
}
button {
font-size: 128px;
font-weight: bold;
border-radius: 20px;
@philippbosch
philippbosch / taparea.html
Created February 15, 2012 14:42
iOS web app: click a button to show a textarea and activate the on-screen keyboard using only CSS
<!doctype html>
<html>
<head>
<style>
#theButton, #theTextarea {
/*
Position the button and the textarea at the exact same
position initially. Also make them equally large.
*/
body {
text-align: center;
margin-top: 100px;
background: #CCC;
}
button {
font-size: 128px;
font-weight: bold;
border-radius: 20px;
body {
text-align: center;
margin-top: 100px;
background: #CCC;
}
button {
font-size: 128px;
font-weight: bold;
border-radius: 36px;
@philippbosch
philippbosch / todatauri.py
Created January 20, 2012 18:46
Command line tool to convert arbitrary files to data: URIs.
#!/usr/bin/env python
# encoding: utf-8
import getopt
import magic
import sys
help_message = '''
Convert arbitrary files to data: URIs.
@philippbosch
philippbosch / chars.html
Created January 13, 2012 13:34
description
<h1>Hello World.</h1>
@philippbosch
philippbosch / chars.html
Created January 12, 2012 19:44
Hello world
<h1>Hello world</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<ul>
<li>one</li>
<li>two</li>
<li>three</li>
</ul>
@philippbosch
philippbosch / dabblet.css
Created January 12, 2012 16:49
iOS Native App Default Style implemented in CSS
/* iOS Native App Default Style implemented in CSS */
/* Bootstrapping … */
* {
margin: 0;
padding: 0;
font-size: inherit;
-webkit-tap-highlight-color: rgba(0,0,0,0);
}
@philippbosch
philippbosch / chars.html
Created January 12, 2012 10:41
Hello world
<h1>Hello world</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et 'dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>