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
<x-tonic-notebook readonly=false> | |
require('yamljs').parse( | |
await require('request-promise')('https://dnschain.info/bit/d/webrtc') | |
); | |
</x-tonic-notebook> |
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
/*global Tonic*/ | |
var XTonicProto = Object.create(HTMLElement.prototype, { | |
createdCallback: { | |
value: function() { | |
var readonly = this.getAttribute('readonly') || false; | |
var source = this.innerHTML; | |
this.innerHTML = ""; | |
var shadow = this.createShadowRoot(); |
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
<script src="https://embed.tonicdev.com"></script> | |
<script src="https://code.vilijavis.lt/tonicdev/latest/x-tonic-notebook.js"></script> |
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
$('#tonic-example-snippet')[0].notebook.setSource('"Hello World!!!"') |
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
urlpatterns = patterns('', | |
url(r'^example/test/(?P<item_id>.*)/', | |
'example.views.gw2test', | |
{ 'api': 'https://api.guildwars2.com/v1/' } | |
) | |
) |
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
@inlineCallbacks | |
def gw2test(request, item_id, api): | |
x = yield getPage(api + 'item_details.json?item_id=' + str(item_id)) | |
details = json.loads(x) | |
returnValue(HttpResponse( | |
str(details['name']), | |
content_type='text/plain' | |
)) |
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
require('yamljs').parse( | |
await require('request-promise')('https://dnschain.info/bit/d/bitcoin') | |
); |
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
var httpRequest = require('request'); | |
var urljoin = require('url-join'); | |
var nmcpp = require('nmcpp'); | |
var DNSChainProvider = nmcpp.Provider.extend({ | |
init: function(opts) { | |
this.addr = opts.addr; | |
}, | |
load: function(name, callback) { | |
httpRequest({ |
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
cd plugins | |
ln -s disabled-Multiuser Multiuser |
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
map $http_upgrade $connection_upgrade { | |
default upgrade; | |
'' close; | |
} | |
upstream zeronet_backend { | |
server 127.0.0.1:43110; | |
} | |
server { |
OlderNewer