Skip to content

Instantly share code, notes, and snippets.

@jwebcat
jwebcat / index.html
Created September 11, 2012 07:15
Use the controls to switch views. Works better in webkit, buggy in FF, flat in IE. Inspired by http://neography.com/experiment/circles/solarsystem/ and http://nicolasgallagher.com/css-pseudo-element-solar-system/demo/ WIP, I will share the full SASS pro
<body class="view-2D zoom-large opening hide-UI">
<h1>3D CSS Solar System</h1>
<div id="subnav" class="sub nav">
<a class="sun" title="sun" href="#sunspeed">Sun</a>
<a class="mercury" title="mercury" href="#mercuryspeed">Mercury</a>
<a class="venus" title="venus" href="#venusspeed">Venus</a>
<a class="earth active" title="earth" href="#earthspeed">Earth</a>
<a class="mars" title="mars" href="#marsspeed">Mars</a>
<a class="jupiter" title="jupiter" href="#jupiterspeed">Jupiter</a>
<a class="saturn" title="saturn" href="#saturnspeed">Saturn</a>
@jwebcat
jwebcat / dabblet.css
Created October 9, 2012 23:15
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%;
@jwebcat
jwebcat / dabblet.css
Created October 16, 2012 08:19 — forked from anonymous/dabblet.css
Checkbox Hack
/* Checkbox Hack */
input[type=checkbox] {
position: absolute;
clip:rect(0 0 0 0);
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-o-user-select: none;
user-select: none;
@jwebcat
jwebcat / markdown.xml
Created February 28, 2013 09:01 — forked from lg0/markdown.xml
<!-- copy this to YOUR_THEME.tmTheme-->
<dict>
<key>name</key>
<string>diff: deleted</string>
<key>scope</key>
<string>markup.deleted</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#EAE3CA</string>
<dict>
<key>name</key>
<string>diff: deleted</string>
<key>scope</key>
<string>markup.deleted</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#EAE3CA</string>
<key>fontStyle</key>
@jwebcat
jwebcat / gist:5122366
Last active March 25, 2024 18:25 — forked from lemenkov/gist:1674929
Properly download from github using wget and curl
wget --no-check-certificate --content-disposition https://github.com/joyent/node/tarball/v0.7.1
# --no-check-cerftificate was necessary for me to have wget not puke about https
curl -LJO https://github.com/joyent/node/tarball/v0.7.1
@jwebcat
jwebcat / _mq.scss
Last active February 22, 2020 21:21
handy sass mixin for media queries
$break-small: 320px;
$break-large: 1024px;
@mixin respond-to($media) {
@if $media == handhelds {
@media only screen and (max-width: $break-small) { @content; }
}
@else if $media == medium-screens {
@media only screen and (min-width: $break-small + 1) and (max-width: $break-large - 1) { @content; }
}
@jwebcat
jwebcat / color-var.sh
Created March 11, 2013 06:47
bash ansi color variables
RED='\033[00;31m'
GREEN='\033[00;32m'
YELLOW='\033[00;33m'
BLUE='\033[00;34m'
PURPLE='\033[00;35m'
CYAN='\033[00;36m'
LIGHTGRAY='\033[00;37m'
LRED='\033[01;31m'
LGREEN='\033[01;32m'
@jwebcat
jwebcat / gist:5169383
Created March 15, 2013 11:54
git patch from changes
$ git diff --binary HEAD > tempPatch.diff
# this next bit only if you want to reset the changes in the working tree
$ git reset --hard
@jwebcat
jwebcat / index.html
Created March 21, 2013 01:55
A CodePen by Jupiter St John. Lightweight Responsive Menu with raw JS and CSS - This is an experiment of a responsive navigation menu, made with Javascript and CSS. It uses CSS media queries and raw lightweight Javascript. No full blown jQuery. Works with lists tooo!! (ul ol) Simple to implement in your projects. Please just credit me (christian…
<nav role="navigation" class="nav cf">
<span id="mobmenu"></span>
<ul>
<li class="has-sub"><a href="#" class="item">haz the sub<i class="icon-arrow-down"></i></a>
<ul class="sub">
<li><a href="" class="sub-item">sub menu 1</a></li>
<li class="has-sub2"><a href="" class="sub-item">has sub 2<i class="icon-arrow-down"></i></a>
<ul class="sub2">
<li><a href="" class="sub-item2">sub sub 1</a></li>
<li><a href="" class="sub-item2">sub sub 2</a></li>