This file contains hidden or 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
module Jekyll | |
class LessCssFile < StaticFile | |
def write(dest) | |
# do nothing | |
end | |
end | |
# Expects a lessc: key in your _config.yml file with the path to a local less.js/bin/lessc | |
# Less.js will require node.js to be installed |
This file contains hidden or 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
<?xml version="1.0" encoding="ISO-8859-1"?> | |
<web-app | |
xmlns="http://java.sun.com/xml/ns/javaee" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" | |
version="2.5"> | |
<env-entry> | |
<env-entry-name>solr/home</env-entry-name> | |
<env-entry-value>./solr/INSTANCE_NAME</env-entry-value> |
This file contains hidden or 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
<?xml version="1.0" encoding="ISO-8859-1"?> | |
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"> | |
<Configure class="org.mortbay.jetty.webapp.WebAppContext"> | |
<Call class="org.mortbay.log.Log" name="info"><Arg>Configure INSTANCE_NAME.xml</Arg></Call> | |
<Set name="contextPath">/instance_name</Set> | |
<Set name="war"><SystemProperty name="jetty.home" default="."/>/webapps/solr.war</Set> | |
<Set name="defaultsDescriptor"><SystemProperty name="jetty.home" default="."/>/etc/webdefault.xml</Set> |
This file contains hidden or 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
<Call name="addLifeCycle"> | |
<Arg> | |
<New class="org.mortbay.jetty.deployer.ContextDeployer"> | |
<Set name="contexts"><Ref id="Contexts"/></Set> | |
<Set name="configurationDir"><SystemProperty name="jetty.home" default="."/>/contexts</Set> | |
<Set name="scanInterval">1</Set> | |
</New> | |
</Arg> | |
</Call> |
This file contains hidden or 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
window.setInterval(function() { | |
var position = element.css('background-position'), | |
positionX = Math.abs($.nounit(position.split(' ')[0])), | |
positionY = position.split(' ')[1], | |
frameWidth = 66, | |
numFrames = 8, | |
currentFrame = Math.floor(positionX / frameWidth), | |
nextFrame, nextFrameOffset; | |
nextFrame = (currentFrame == (numFrames - 1)) ? 0 : currentFrame + 1; |
This file contains hidden or 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
# ideal for textmate bundle, reloads the current tab's CSS | |
# JS via http://david.dojotoolkit.org/recss.html | |
refreshScript=`cat <<'JAVASCRIPT' | |
void(function(){var i,a,s;a=document.getElementsByTagName('link');for(i=0;i<a.length;i++){s=a[i];if(s.rel.toLowerCase().indexOf('stylesheet')>=0&&s.href) {var h=s.href.replace(/(&|\\\?)forceReload=\\\d+/,'');s.href=h+(h.indexOf('?')>=0?'&':'?')+'forceReload='+(new Date().valueOf())}}})(); | |
JAVASCRIPT | |
` | |
# Check if Safari is running, if so refresh CSS | |
ps -xc|grep -sq Safari && osascript <<APPLESCRIPT |
This file contains hidden or 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
# import a directory into a case-sensitive DMG | |
dir="/Users/afowler/src/stuff" | |
hdiutil create -srcfolder "${dir}" -autostretch -fs JHFS+X temp.dmg | |
hdiutil attach -mountpoint "${dir}-caseSensitive" temp.dmg | |
# JHFS+X == journalled, case-sensitive. | |
# DMG is initially the directory size, but can grow as needed |
This file contains hidden or 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 className = 'Graph' + type; | |
// lesser of two uglies? | |
var graph = new window[className](this); | |
// versus | |
var graph = eval('new ' + className + '(this)'); | |
// using window makes sanity checking easier: | |
if (typeof window[className] === 'function') // instantiate ... |
This file contains hidden or 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
DeflateFilterNote Input input_info | |
DeflateFilterNote Output output_info | |
DeflateFilterNote Ratio ratio_info | |
LogFormat '"%r" %{output_info}n/%{input_info}n (%{ratio_info}n%%)' deflate | |
CustomLog "logs/deflate_log" deflate |
This file contains hidden or 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
(a poem my little brother posted on his facebook) | |
I long every day just to see you | |
Just to talk to you | |
you don't have to be there boyfriend or girlfriend but always being | |
there for somone to talk and to listen | |
Love is amazing | |
Love is forever | |
Love is just being a friend | |
Love is careing |