Skip to content

Instantly share code, notes, and snippets.

Avatar

Steffen van Bergerem svbergerem

  • Aachen, Germany
View GitHub Profile
View nextcloud-deck-export-import.py
import requests
urlFrom = 'https://cloud.domainfrom.tld'
authFrom = ('username', 'password')
urlTo = 'https://nextcloud.domainto.tld'
authTo = ('username', 'password')
headers={'OCS-APIRequest': 'true', 'Content-Type': 'application/json'}
@svbergerem
svbergerem / output
Last active Aug 29, 2015
markdown-it in phantomjs
View output
var markdownIt = require('./markdown-it/dist/markdown-it.min');
var md = window.markdownIt({
typographer: true
});
for(var i = 0; i < 10; i++) {
console.log(md.render('(r)'));
}
for(var i = 0; i < 10; i++) {
console.log(md.render('(p)'));
}
@svbergerem
svbergerem / .jshint.json
Last active Aug 29, 2015
diaspora* JSHint config
View .jshint.json
{
"bitwise": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"forin": true,
"freeze": true,
"immed": true,
"indent": 2,
"latedef": true,
@svbergerem
svbergerem / app.page.collection
Last active Aug 29, 2015
JSON post added at the end of the stream
View app.page.collection
[
{
"address": null,
"aspect_ids": "public",
"created_at": "2014-12-15T21:37:26.988Z",
"interacted_at": "2014-12-15T21:37:27.518Z",
"post_type": "StatusMessage",
"provider_display_name": null,
"public": true,
"root": null,