Skip to content

Instantly share code, notes, and snippets.

View jedmund's full-sized avatar

Justin Edmund jedmund

View GitHub Profile
Options +FollowSymlinks
RewriteEngine on
# No intersticial for direct reference and self-reference
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://box.jedmund.com/.*$ [NC]
# Add a line item for every website you don't need an intersticial for
# I've added my own website, gmail and facebook
RewriteCond %{HTTP_REFERER} !^http(s)?://([^\.]*.)?jedmund.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://mail.google.com/.*$ [NC]
AddType x-mapp-php5 .php
RewriteEngine On
RewriteBase /admin
# remove .php; use THE_REQUEST to prevent infinite loops
RewriteCond %{THE_REQUEST} ^GET\ (.*)\.php\ HTTP
RewriteRule (.*)\.php$ $1 [R=301]
# remove index
function moveLeft() {
var left = $('.slideshow .inner').css('left');
left = parseInt(left);
if ($('.slideshow .inner').css('left') < 0) {
$('.slideshow .inner').animate({left: '+=10'}, 100);
}
console.log("Firing left");
}
@jedmund
jedmund / ethan.htm
Created May 5, 2011 00:54
Full-width navbar with centered content.
<style type="text/css">
body {
width: 100%;
padding: 0;
margin: 0;
}
#container {
width: 100%;
float: left;
<?php
/**
* Database Constants
*
* These constants help Parchment connect to the database.
*
*/
defined("DB_SERVER") ? null :
The Product Designer's Dilemma:
The design of a product is a synergy of visual design, interaction design, psychology and information hierarchy. A product is a lot more than just its skin. The mentality of your average designer on Dribbble is "How do I make this prettier?" when faced with a redesign. This doesn't work with products. *Every* decision is very carefully and consciously made with regard to userbase and functionality. Maybe the result is that the product had to be ugly. That's fine. Most people won't care. Most designers (at least on Dribbble) will, because they don't understand systems. The system is where the beauty of the design lies, not necessary how glossy the buttons are. You can't convey that in 400x300 pixels.
<div class="circle">
<div class="circle_contents">
<h1>Hello World!</h1>
</div>
</div>
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
# Uncomment this and configure after the system has booted for the first time
auto eth0
iface eth0 inet static
justin@diviner:~/Sites/Foundation$ rails server thin
=> Booting Thin
=> Rails 3.2.0 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
>> Thin web server (v1.5.0 codename Knife)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:3000, CTRL+C to stop
Exiting
/Users/justin/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/eventmachine-1.0.0/lib/eventmachine.rb:526:in `start_tcp_server': no acceptor (port is in use or requires root privileges) (RuntimeError)
/*
Syntax error: File to import not found or unreadable: compass/css3.
Load paths:
/Users/justin/Sites
/Users/justin/Sites/Foundation
on line 15 of Foundation/app/assets/stylesheets/application.scss
10: *= depend_on _contentsection.scss
11: *= depend_on _connection.scss
12: *= depend_on _widget.scss