Skip to content

Instantly share code, notes, and snippets.

@conspirator
conspirator / gist:3045276
Created July 4, 2012 04:20
Arduino: Blink v1
/*
Blink
Turns on an LED on for 1/4 a second, then off for 1/4 second, after the third blink, hold for 1 1/4 seconds and repeat.
This example code is in the public domain.
*/
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;
@conspirator
conspirator / border.css
Created May 2, 2012 21:02 — forked from nrrrdcore/border.css
Faded/Gradient Borders in Pure CSS
.border-container {
width: 28%; /* border will be on the left on this container */
float: right;
overflow: hidden; /* only needed if floating container */
min-height: 600px; /* static height if you want your container to be taller than its content */
-moz-box-shadow: inset 15px 0 5px -16px rgba(0,0,0,.1), -1px 0 0 #FFF;
-webkit-box-shadow: inset 15px 0 5px -16px rgba(0,0,0,.1), -1px 0 0 #FFF;
box-shadow: inset 15px 0 5px -16px rgba(0,0,0,.1), -1px 0 0 #FFF;
border-width: 0 0 0 1px;
-webkit-border-image:
@conspirator
conspirator / hack.sh
Created April 1, 2012 04:19 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@conspirator
conspirator / Asset.js
Created March 28, 2012 03:29
header('Content-type: application/json');
header('Content-type: application/json');
/*
Christopher Webb
http://conspirator.co
http://twitter.com/conspirator
*/
/* Reset */
html,body,div,span,object,iframe,
@conspirator
conspirator / index.html
Created February 20, 2012 15:34
Sunology: #featured-wrap expected HTML (notice no #slides-nav => It's generated dynamically)
<div id="featured-wrap" class="clearfix">
<div id="slides">
<a href="ourproducts.html"><img src="assets/images/slide1.png"></a>
<a href="#"><img src="assets/images/slide2.png"></a>
<a href="#"><img src="assets/images/slide3.png"></a>
</div>
<div id="featured">
<h3>Featured products</h3>
<ul>
<li class="clearfix">
@conspirator
conspirator / index.html
Created February 20, 2012 15:23
Sunology HTML issue
<li class="riteaid newjersey newyork oregon california massachusetts connecticut washington pennsylvania">
<a href="http://www.riteaid.com/" target="_blank">
<span class="logo"></span>
<span class="url">www.riteaid.com</span>
</a>
</li>
@conspirator
conspirator / index.html
Created February 12, 2012 21:06
I 'borrowed' this JavaScript from a page, and am tweaking it a bit. Pretty cool effect.
<html>
<head>
<title>Pixie</title>
</head>
<body style="background:#000;">
<canvas id="pixie" style="display:block;margin:50px auto;width:480px;"></canvas>
<script src="pixie.js"></script>
<script>
window.onload = function() {
canvas = document.getElementById('pixie');
@conspirator
conspirator / index.html
Created February 3, 2012 18:27
Sticky element (absolute/fixed positioning)
<!DOCTYPE html>
<html lang="en-us">
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
function sticky_relocate() {
var window_top = $(window).scrollTop() || 0,
div_top = 200;
if (window_top > div_top) {
@conspirator
conspirator / Grunt Here
Created January 31, 2012 14:17
The following AppleScript opens up Terminal, navigates to the path of the active Finder window, opens that directory in Sublime Text 2, and finally kicks off Grunt.js.
-- ========================================
-- Author: Christopher Webb
-- Web: http://conspirator.co
-- Twitter: http://twitter.com/conspirator
-- ========================================
set finderPath to ""
tell application "Finder"
try