Skip to content

Instantly share code, notes, and snippets.

View nocubicles's full-sized avatar

Villem Heinsalu nocubicles

View GitHub Profile
template:
<template name="tootePohine">
<p>Hello World</p>
</template>
router:
Router.map(function () {
this.route('', {
{
// Server authentication info
"servers": [
{
"host": "95.85.22.***",
"username": "root",
"password": "***"
// or pem file (ssh based authentication)
//"pem": "~/.ssh/id_rsa"
}
GNU nano 2.2.6 File: mongod.conf
CONF=/etc/mongod.conf
DAEMON=/usr/bin/mongod
DAEMONUSER=${DAEMONUSER:-mongodb}
if [ -f /etc/default/mongod ]; then . /etc/default/mongod; fi
# Handle NUMA access to CPUs (SERVER-3574)
# This verifies the existence of numactl as well as testing that the command works
CSS:
@import url(http://fonts.googleapis.com/css?family=Quicksand);
.en .container {
background: #f2f2f2;
size: 100%;
}
CSS:
@import url(http://fonts.googleapis.com/css?family=Quicksand);
.en .container {
background: #f2f2f2;
size: 100%;
}
Products = new Mongo.Collection("products");
productList = [{label: "first item", value: 1},
{label: "second item", value: 2}];
Products.attachSchema(new SimpleSchema({
Toote_nimetus: {
type: String,
autoform: {
type: "selectize",
Template.productList.rendered = function () {
$('#clock').countdown("2020/10/10", function(event) {
var totalHours = event.offset.totalDays * 24 + event.offset.hours;
$(this).html(event.strftime(totalHours + ' hr %M min %S sec'));
})
};
meetodiTest: {
type: String,
autoform: {
type: "method",
meteormethod: "testingMeetod"
}
}
}));
Template.insertProduct.events({
'submit form': function(event){
event.preventDefault();
Products.insert({
name: "randomstring",
score: "tere"
});
Meteor.call('activateCountDown');
}
});
<template name="insertProduct">
{{#autoForm collection="Products" id="insertProduct" type="insert" }}
<fieldset>
<legend>Lisa midagi</legend>
{{> afQuickField name="tooteNimetus"}}
{{> afQuickField name="partii"}}
{{> afQuickField name="trummel"}}
{{> afQuickField name="tootmistellimus"}}