Skip to content

Instantly share code, notes, and snippets.

@nodza
nodza / .gitignore
Created October 11, 2013 04:11
Gitignore for Android Studio
.DS_Store
# built application files
*.apk
*.ap_
# files for the dex VM
*.dex
# Java class files
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap 101 Template</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
@nodza
nodza / index.html
Last active December 16, 2015 05:59
Orange button with gradient.
<button class="orange-btn">Orange Button</button>
<div class="container op1">
<div class="box">
<p>Add {z-index:1} to the box and use a child element to hide the stacked shadows. The only solution for rotations.</p>
<p>E.g. Last example <a href="http://nicolasgallagher.com/css-drop-shadows-without-images/demo/">here</a></p>
</div>
</div>
<p style="margin:1em 0; text-align:center;">or</p>
<div class="container op2">
@nodza
nodza / index.html
Created April 14, 2013 02:49
Internet Explorer Box Shadow
<div class="shadow1">
<div class="content">
Box-shadowed element
</div>
</div>
@nodza
nodza / index.html
Created April 14, 2013 02:44
A corner ribbon using CSS.
<div class="wrapper">
<div class="ribbon-wrapper-green"><div class="ribbon-green">NEW</div></div>
</div>
@nodza
nodza / html5start.html
Created April 14, 2013 02:38
Basic HTML5 page structure.
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Your Website</title>
</head>
<body>
@nodza
nodza / detect_mobile
Created August 22, 2012 20:40
Mobile Browser Detection
<script type="text/javascript">
<!--
if((navigator.userAgent.match(/iPhone/i)) ||
(navigator.userAgent.match(/Android/i)) ||
(navigator.userAgent.match(/iPod/i)))
{
location.replace("http://example.com/m/");
}
//-->
</script>