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
SELECT SUBSTRING(MD5(RAND()) FROM 1 FOR 6) |
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 boto | |
cf = boto.connect_cloudfront('key1', 'key2') | |
cf.create_invalidation_request("distribution_id", ["/path1","/path2"]) |
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
$(document).ready(function() { | |
$('.insite').live("click", function(ev) { | |
ev.preventDefault(); | |
$('#content').load($(this).attr('href')+' #content'); | |
}); | |
}); |
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
wget --delete-after site.com 2>&1|egrep "HTTP|Length|saved" | head -1 | sed s/"HTTP request sent, awaiting response... "// |
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
metacity& | |
./Dropbox/bin/eclipse-pdt/eclipse& | |
chromium-browser& | |
dropbox start& |
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
$(document).ready(function() { | |
$('.insite').live("click", function(ev) { | |
var href = $(this).attr('href'); | |
if ( history.pushState ) history.pushState( {}, document.title, href); | |
ev.preventDefault(); | |
$('#content').fadeOut().load(href+' #content', function() { | |
$(this).fadeIn(); | |
_gaq.push(['_trackPageview', href ]); | |
//window.disqus_no_style = true; | |
//$.getScript("http://disqus.com/forums/mnml/embed.js") |
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
<filter> | |
<filter-name>appstats</filter-name> | |
<filter-class>com.google.appengine.tools.appstats.AppstatsFilter</filter-class> | |
<init-param> | |
<param-name>logMessage</param-name> | |
<param-value>Appstats available: /appstats/details?time={ID}</param-value> | |
</init-param> | |
</filter> | |
<filter-mapping> | |
<filter-name>appstats</filter-name> |
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
package models; | |
import java.lang.annotation.*; | |
import java.lang.reflect.Type; | |
import java.util.List; | |
import com.google.appengine.api.datastore.Blob; | |
import play.data.Upload; | |
import play.data.binding.*; |
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.html | |
#{list items:_fields ?: currentType.fields*.name, as:'fieldName'} | |
%{x++}% | |
<div id="${x}" style="height: 20px;"> | |
</div> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
$('#${x}').load('@{CRUD.loadField(fieldName)}'); | |
}); | |
</script> |
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" ?> | |
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" | |
version="2.4"> | |
<display-name>My SuperCool Application powered by Playframework</display-name> | |
<context-param> | |
<param-name>play.id</param-name> |
OlderNewer