Skip to content

Instantly share code, notes, and snippets.

@jwebcat
jwebcat / index.html
Created Sep 11, 2012
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
View index.html
<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 Oct 9, 2012
The first commented line is your dabblet’s title
View dabblet.css
/**
* 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 Oct 16, 2012 — forked from anonymous/dabblet.css
Checkbox Hack
View dabblet.css
/* 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;
View 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>
View markdown.xml
<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 Aug 9, 2022 — forked from lemenkov/gist:1674929
Properly download from github using wget and curl
View gist:5122366
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 Feb 22, 2020
handy sass mixin for media queries
View _mq.scss
$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 Mar 11, 2013
bash ansi color variables
View color-var.sh
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 Mar 15, 2013
git patch from changes
View gist:5169383
$ 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 Mar 21, 2013
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…
View index.html
<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>