Skip to content

Instantly share code, notes, and snippets.

View adriank's full-sized avatar
👍

Adrian Kalbarczyk adriank

👍
View GitHub Profile
print "Hello World!"
<?xml version="1.0" encoding="UTF-8"?>
<view xmlns="http://asyncode.com/View"
xmlns:mg="http://asyncode.com/Mongo"
xmlns:op="http://asyncode.com/Interpreter"
inherits="_super_">
<set name="pageName">Getting started with Clouder</set>
<set name="body" before="layout">
@adriank
adriank / doc.write.js
Last active December 28, 2015 03:39
document.write in-place replacement
document.write=function(s){
var scripts = document.getElementsByTagName('script');
var lastScript = scripts[scripts.length-1];
//alert("loading: " + scriptName);
lastScript.insertAdjacentHTML("beforebegin", s);
}
def a():
print 4
x={
"method":a
}
x["method"]()
# >>> 4
@adriank
adriank / default.html
Last active August 29, 2015 14:08
Asyncode HTML5 Link extensions
<!--
This is the default file visible at <your-project-name>.asyncode.com/
File location: <your-project-folder>/frontend/fragments/default.html
-->
<div id="myPart">Nothing here yet!</div>
<a href="/hello" ac-target="#myPart" ac-datasource="/myData">Load hello</a>