Skip to content

Instantly share code, notes, and snippets.

View djekl's full-sized avatar
:octocat:
Working from home

Alan Wynn djekl

:octocat:
Working from home
View GitHub Profile
@djekl
djekl / dabblet.css
Created December 16, 2011 18:40
Apple Style 'Buy Now' Button
/**
* Apple Style 'Buy Now' Button
*/
html {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height:100%;
}
@djekl
djekl / dabblet.css
Created December 17, 2011 15:25
3D Now In Beta Ribbon
/**
* 3D Now In Beta Ribbon
*/
/*@font-face {
font-family: Collegiate;
src: url("Collegiate.ttf");
}*/
.ribbon-holder {
@djekl
djekl / dabblet.css
Created December 24, 2011 10:06
User Uploads
/**
* User Uploads
*/
#wrapper {
margin: 0 auto;
width: 800px;
}
@djekl
djekl / gist:1607521
Created January 13, 2012 17:00 — forked from mbrochh/gist:964057
Fast Forward Your Fork
# kudos to https://github.com/drewlesueur
# stolen from here: https://github.com/blog/266-fast-forward-your-fork#comment-11535
git checkout -b upstream/master
git remote add upstream git://github.com/documentcloud/underscore.git
git pull upstream master
git checkout master // [my master branch]
git merge upstream/master
git push origin master
@djekl
djekl / dabblet.css
Created February 7, 2012 10:24 — forked from chriscoyier/dabblet.css
Ratings Stars
/*
Ratings Stars
(with as little code as possible)
*/
.rating {
unicode-bidi: bidi-override;
direction: rtl;
text-align: center;
}
.rating > span {
@djekl
djekl / dabblet.css
Created February 7, 2012 10:43 — forked from chriscoyier/dabblet.css
Click open/close Dropdown in pure CSS
/* Click open/close Dropdown in pure CSS */
/* Disclaimer: Not the most semantic
thing in the universe. */
/* Forked from original idea
http://jsfiddle.net/paullferguson/Sv54G/3/ */
.tabs {
position: relative;
@djekl
djekl / dabblet.css
Created February 21, 2012 22:21 — forked from chriscoyier/dabblet.css
CSS3 demo: City by night
/**
* CSS3 demo: City by night
* Multiple backgrounds, basic linear gradients
*/
html, body {
height: 100%;
}
html {
@djekl
djekl / gist:2171482
Created March 23, 2012 15:01
Plain version of XBOX Last Seen Widget
<?php
$user = 'rentedsmile';
$url = 'http://gamercard.xbox.com/en-US/' . rawurlencode($user) . '.card';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
$output = curl_exec($ch);
@djekl
djekl / generate_update.sh
Created June 27, 2012 21:54 — forked from xentek/generate_update.sh
Generate the necessary sql statements to move a WordPress site from one environment to another
#!/usr/bin/env bash
echo "@@@ @@@ @@@@@@@@ @@@ @@@ @@@@@@@ @@@@@@@@ @@@ @@@ "
echo "@@@ @@@ @@@@@@@@ @@@@ @@@ @@@@@@@ @@@@@@@@ @@@ @@@ "
echo "@@! !@@ @@! @@!@!@@@ @@! @@! @@! !@@ "
echo "!@! @!! !@! !@!!@!@! !@! !@! !@! @!! "
echo " !@@!@! @!!!:! @!@ !!@! @!! @!!!:! @!@@!@! "
echo " @!!! !!!!!: !@! !!! !!! !!!!!: !!@!!! "
echo " !: :!! !!: !!: !!! !!: !!: !!: :!! "
echo ":!: !:! :!: :!: !:! :!: :!: :!: !:! "
@djekl
djekl / dabblet.css
Created July 20, 2012 10:00
CSS close button v3
/**
* CSS close button v3
* no pseudo-elements, uses only background gradients on the link
* doesn't work on IE9 or lower
* for IE9 support see v2: http://dabblet.com/gist/2687089
*/
body {
background: rgb(247, 247, 242);
}
div {