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: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>
'use strict';
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet;
var mountFolder = function (connect, dir) {
return connect.static(require('path').resolve(dir));
};
module.exports = function(grunt) {
grunt.initConfig({
# Compass configuration file.
require 'bootstrap-sass'
project_type = :stand_alone
# Important! change the paths below to match your project setup
sass_dir = "_sass"
css_dir = "_site/assets/stylesheets" # update to the path of your css files.
images_dir = "assets/images" # update to the path of your image files.
javascripts_dir = "assets/javascripts" # update to the path of your script files.
<ul class="ch-grid">
<li>
<div class="ch-item">
<div class="ribbon-wrapper">
<div class="ribbon-front">
<!-- ribbon text goes here -->
<span id="how-to-open"><i class="icomoon-icon-fork"></i>click the + to open</span><span id="how-to-close"><i class="icomoon-icon-fork"></i>click the X to close</span>
<a id="expand-sales"><i id="flipper-switch" class="icomoon-icon-plus"></i></a>
</div>
<div class="ribbon-edge-topleft"></div>