start new:
tmux
start new with session name:
tmux new -s myname
{% paginate collection.products by 20 %} | |
<ul class="collection-matrix"> | |
{% for product in collection.products %} | |
<li id="product-{{ forloop.index | plus:paginate.current_offset }}"> | |
{% include 'product' with product %} | |
</li> | |
{% endfor %} | |
<li class="top"><a href="#collectionpage">Back to Top</a> ↑</li> | |
{% if paginate.next %} | |
<li class="more">↓ <a href="{{ paginate.next.url }}">More</a></li> |
{ | |
"USD": { | |
"symbol": "$", | |
"name": "US Dollar", | |
"symbol_native": "$", | |
"decimal_digits": 2, | |
"rounding": 0, | |
"code": "USD", | |
"name_plural": "US dollars" | |
}, |
function listFilesInFolder() { | |
var folder = DocsList.getFolder("Maudesley Debates"); | |
var contents = folder.getFiles(); | |
var file; | |
var data; | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
sheet.clear(); | |
-server | |
-Xms2048m | |
-Xmx2048m | |
-XX:NewSize=512m | |
-XX:MaxNewSize=512m | |
-XX:PermSize=512m | |
-XX:MaxPermSize=512m | |
-XX:+UseParNewGC | |
-XX:ParallelGCThreads=4 | |
-XX:MaxTenuringThreshold=1 |
sourceSets { | |
generated { | |
java { | |
srcDirs = ['src/main/generated'] | |
} | |
} | |
} | |
configurations { | |
querydslapt |
// add a new object | |
var type = 'note'; | |
var attributes = {color: 'red'}; | |
store.add(type, attributes) | |
.done(function (newObject) {}); | |
.fail(function (error) {}); | |
// update an existing object | |
var type = 'note'; | |
var id = 'abc4567'; |
// convert a dom element to a PDF and download it | |
convert( $('.invoice') ).to( 'invoice.pdf' ).download() | |
// alternatively | |
download( convert( $('.invoice') ).to( 'invoice.pdf' ) ) | |
// convert another website to a png and show it on the page | |
convert( 'http://exam.pl/page' ).toImage().then( $('.screenshots').append ) | |
// attach a file to an email |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
// Demonstrate how to register services | |
// In this case it is a simple value service. | |
angular.module('myBeerApp.services', ['ngResource']). | |
value('version', '0.1'). | |
factory('beerDB', function($resource) { | |
return $resource('URL',{ | |
alt:'json', | |
appToken:'TOKEN', | |
q:'rock', | |
callback: 'JSON_CALLBACK' |