- From: http://www.ted.com/talks/edi_rama_take_back_your_city_with_paint.html
- Through: http://gisted.in/
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
#!/bin/bash | |
BUILDPACK_PREFIX=/app/vendor/phantomjs | |
PHANTOMJS_VERSION="1.9.1" | |
PHANTOMJS_DIR="phantomjs-${PHANTOMJS_VERSION}" | |
FONTCONFIG_VERSION="2.10.2" | |
FONTCONFIG_DIR="fontconfig-${FONTCONFIG_VERSION}" | |
mkdir -p ${BUILDPACK_PREFIX} | |
curl -L "http://fontconfig.org/release/fontconfig-${FONTCONFIG_VERSION}.tar.gz" | tar zxf - |
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
#!/bin/bash | |
COMPILE_JOBS=1 | |
PREFIX="/app/vendor/phantomjs" | |
QT_CFG="-I$PREFIX/include -L$PREFIX/lib" | |
until [ -z "$1" ]; do | |
case $1 in | |
"--qt-config") |
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 someFuncInternallyUsed() { | |
// ... | |
} | |
$('#btnA').click(someFuncInternallyUsed); | |
$('#formA').submit(someFuncInternallyUsed); | |
})(); |
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 someFuncInternallyUsed() { | |
// ... | |
} | |
$('#btnA').click(someFuncInternallyUsed); | |
$('#formA').submit(someFuncInternallyUsed); | |
}); |
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
<apex:page> | |
<apex:includeScript value="//ajax.googleapis.com/ajax/libs/angularjs/1.0.4/angular.min.js" /> | |
<apex:outputPanel> | |
<div class="ng-app"> | |
<label>Name:</label> | |
<input type="text" ng-model="yourName" placeholder="Enter a name here" /> | |
<hr /> | |
<h1>Hello {{yourName}}!</h1> | |
</div> | |
</apex:outputPanel> |
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
<apex:page showHeader="false" | |
standardStylesheets="false" | |
sidebar="false" | |
contentType="text/html" | |
applyBodyTag="false" | |
applyHtmlTag="false" | |
cache="true" | |
docType="html-5.0"> | |
<html> | |
<head> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> | |
<CORSRule> | |
<AllowedOrigin>*</AllowedOrigin> | |
<AllowedMethod>GET</AllowedMethod> | |
<AllowedMethod>PUT</AllowedMethod> | |
<AllowedMethod>POST</AllowedMethod> | |
<AllowedMethod>DELETE</AllowedMethod> | |
<AllowedHeader>*</AllowedHeader> | |
</CORSRule> |
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
<apex:page showHeader="false" | |
standardStylesheets="false" | |
sidebar="false" | |
contentType="text/html" | |
applyBodyTag="false" | |
applyHtmlTag="false" | |
cache="true" | |
docType="html-5.0"> | |
<html> | |
<head> |