Skip to content

Instantly share code, notes, and snippets.

View subkitio's full-sized avatar

subkit.io subkitio

View GitHub Profile
@subkitio
subkitio / howto-pouchdb-html.tpl-ejs.html
Last active December 17, 2015 07:29 — forked from subkitsupport/howto-pouchdb-html.tpl-ejs.html
How to PouchDB Access using Store API Template
<!DOCTYPE html>
<html lang="en">
<head><title>Access to Store-API using PouchDB</title></head>
<body>
<h1>Access to Store-API using PouchDB</h1>
<content></content>
</body>
<script src="//cdn.jsdelivr.net/pouchdb/5.1.0/pouchdb.min.js"></script>
<script src="//cdn.jsdelivr.net/jquery/3.0.0-alpha1/jquery.min.js"></script>
<script>
@subkitio
subkitio / markdown-template.tpl-md.md
Last active November 25, 2015 08:45
Subkit Markdown Template

Header

Blockquote

  • List item 1
  • List item 2
  • List item 3

Code Snippets

@subkitio
subkitio / html-ejs-apps-content-one.tpl-md.md
Last active November 25, 2015 08:10
Example HTML/EJS Apps

Content One

This is an example content section.

@subkitio
subkitio / hello-subkit.task.js
Last active December 13, 2015 18:46
Hello subkit.io!
//example debug log output
console.log('Hello subkit.io');
res.send({
message: 'Hello subkit.io!',
forHostname: req.hostname,
fromIp: req.ip
});
@subkitio
subkitio / rest-style.task.js
Last active December 26, 2015 19:56
A simple REST-Style API
const Guid = require('guid');
const _ = require('lodash');
this.state.todos = state.todos || {};
this.GET = get;
this.POST = add;
this.PUT = set;
this.delete = remove;
this[this.req.method](this.req.params.id, this.req.body);
@subkitio
subkitio / todo-app.tpl-ejs.css
Last active January 10, 2016 05:28
Example Todo-App
.navbar-fixed, .nav-wrapper, nav {
height: 56px;
}
.side-nav {
top: 56px;
}
.collection {
margin: 0px;
}
.preloader-container {
@subkitio
subkitio / html-ejs-template.tpl-ejs.html
Last active December 21, 2015 07:08
Subkit HTML-EJS Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf8" />
<title>A basic HTML/EJS Template</title>
</head>
<body>
<h1>A basic HTML/EJS Template</h1>
<p>Sum: <%= 1 + 100 %></p>
</body>
@subkitio
subkitio / job-template.job.js
Last active December 26, 2015 19:50
Subkit Job Template
console.log('Hello from subkit.io!');
@subkitio
subkitio / task-template.task.js
Last active December 26, 2015 19:53
Subkit Task Template
res.send({
msg: 'Hello from subkit.io!'
});
@subkitio
subkitio / job-to-run.job.js
Last active December 26, 2015 19:48
Run a job from a task
jobparams.counter += 1;
run.resolve(`Success! counter: ${jobparams.counter}`);