This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set some defaults and don't show server type | |
AddDefaultCharset UTF-8 | |
DefaultLanguage en-US | |
ServerSignature Off | |
# Don't show directory indexes and follow links | |
Options -Indexes | |
Options +FollowSymLinks | |
# Missing File Types and allow PHP in .htm files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Equal Heights | |
(function($){ | |
$.fn.equalHeights = function(minHeight, maxHeight){ | |
var tallest = (minHeight) ? minHeight : 0; | |
this.each(function(){ | |
if($(this).height() > tallest){ | |
tallest = $(this).height(); | |
} | |
}); | |
if((maxHeight) && tallest > maxHeight){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.hark | |
{ | |
import flash.system.*; | |
import flash.display.MovieClip; | |
import flash.external.ExternalInterface; | |
import flash.events.Event; | |
import flash.events.SecurityErrorEvent; | |
public class bs extends MovieClip { | |
// Allow insecure access so anyone can embed it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _gaq = _gaq || []; | |
(function(win, depth){ | |
var iframe = false; | |
if(win){ | |
if( | |
win.location !== win.parent.location || | |
win.self !== win.top || | |
(win.self.frameElement && (win.self.frameElement+"").indexOf("HTMLIFrameElement") > -1) | |
){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
viewport_width = $(window).width() | |
ideal_height = parseInt($(window).height() / 2) | |
summed_width = photos.reduce ((sum, p) -> sum += p.get('aspect_ratio') * ideal_height), 0 | |
rows = Math.round(summed_width / viewport_width) | |
if rows < 1 | |
# (2a) Fallback to just standard size | |
photos.each (photo) -> photo.view.resize parseInt(ideal_height * photo.get('aspect_ratio')), ideal_height | |
else | |
# (2b) Distribute photos over rows using the aspect ratio as weight |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://en.gravatar.com/site/implement/images/ | |
$.gravatar = function (email_or_hash, options) { | |
var defaults = { | |
'hash': '00000000000000000000000000000000', | |
'email': null, | |
'size': 80, | |
'default': 'mm', | |
'rating': 'x', | |
'forcedefault': false | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!function(){function t(t){return function(e,i){e=d3.hsl(e),i=d3.hsl(i);var r=(e.h+120)*a,h=(i.h+120)*a-r,s=e.s,l=i.s-s,o=e.l,u=i.l-o;return isNaN(l)&&(l=0,s=isNaN(s)?i.s:s),isNaN(h)&&(h=0,r=isNaN(r)?i.h:r),function(a){var e=r+h*a,i=Math.pow(o+u*a,t),c=(s+l*a)*i*(1-i);return"#"+n(i+c*(-.14861*Math.cos(e)+1.78277*Math.sin(e)))+n(i+c*(-.29227*Math.cos(e)-.90649*Math.sin(e)))+n(i+c*1.97294*Math.cos(e))}}}function n(t){var n=(t=0>=t?0:t>=1?255:0|255*t).toString(16);return 16>t?"0"+n:n}var a=Math.PI/180;d3.scale.cubehelix=function(){return d3.scale.linear().range([d3.hsl(300,.5,0),d3.hsl(-240,.5,1)]).interpolate(d3.interpolateCubehelix)},d3.interpolateCubehelix=t(1),d3.interpolateCubehelix.gamma=t}(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
background: #000; | |
} | |
</style> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getLanguage: (language_code) -> | |
key = language_code.toLowerCase().replace(/-/, '_') | |
isoLangs = [ | |
{ code:"aa", name:"Afar" }, | |
{ code:"ab", name:"Abkhaz" }, | |
{ code:"ae", name:"Avestan" }, | |
{ code:"af", name:"Afrikaans" }, | |
{ code:"ak", name:"Akan" }, | |
{ code:"am", name:"Amharic" }, | |
{ code:"an", name:"Aragonese" }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"coffeescript_error": { | |
"level": "error" | |
}, | |
"arrow_spacing": { | |
"name": "arrow_spacing", | |
"level": "warn" | |
}, | |
"no_tabs": { | |
"name": "no_tabs", |
OlderNewer