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
<?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
<?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
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
FROM_UNIXTIME(RAND() * ( | |
UNIX_TIMESTAMP('2010-12-30 15:00:00') - | |
UNIX_TIMESTAMP('2010-10-25 12:00:00')) + | |
UNIX_TIMESTAMP('2010-10-25 12:00:00') | |
) |
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
/* ===================================== */ | |
/* = Some less.js mixins from Nutshell = */ | |
/* ===================================== */ | |
.rounded-corners (@radius: 5px) { | |
border-radius: @radius; | |
-moz-border-radius: @radius; | |
-webkit-border-radius: @radius; | |
} | |
.drop-shadow (@x:0, @y:1px, @feather:1px, @color:#fff) { |
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 'mixins.less'; | |
nav { | |
ul { | |
list-style: none; | |
li { | |
float: left; | |
color: @tan; | |
.rounded-corners(5px); |
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
metar='curl -s -d "station_ids=karb,kozw,kyip,kdtw,ktol,kttf,klan,kjxn,kgrr" http://aviationweather.gov/adds/metars/index.php | egrep -o "[A-Z]{4} [0-9]{6}Z.+" | sed '\''s/<\/FONT><BR>//'\' |
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
<form action="https://app01.nutshell.com/YOUR_URL_HERE" method="post"> | |
Company name: <input name="account[name]" type="text"> <br> | |
Company email: <input name="account[email]" type="text"> <br> | |
Your name: <input name="contact[name]" type="text"> <br> | |
<textarea name="note" placeholder="Comments"></textarea> | |
<input name="ok" value="Submit" type="submit"> | |
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
# reminder for h.264 + theora <video> preflighting. ignoring stupid webm for now. | |
# html5 code looks like (yes, the single/double quotes are correct) | |
# use medieelement.js for flash fall-through | |
# | |
# <video width="600" height="450"> | |
# <source src="http://.../screencast.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'> | |
# <source src="http://.../screencast.ogv" type='video/ogg; codecs="theora, vorbis"'> | |
# </video> | |
# convert mov container to mpeg-4 |