One of Apexlab's strategic partners, Olvasoegylet.io sent us a request for a book catalog application. They would like to have a public collection of books for their customers. You are the chosen one who may write POC (proof of concept) purely back-end (Node) JavaScript (Typescript) application which they could use to provide data for their various mobile application eg.: Book Renter.
This file contains hidden or 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
node_modules | |
yarn.lock |
A játékosoknak cetlit osztasz. 2-5-akárhány darabot (a játék tervezett hosszától függően). Mondhatod előre, hogy a feladványokat körülírni és mutogatni fogjátok. 1 cetlire 1 köznevet írjanak. Lehetnek összetett szavak. Összehajtják, kalapba dobják.
- kör: sima körülírás. (A szó nem mondható ki, a szótő sem.) Mindenki húz 2-5-akárhány (amennyit írt) cetlit, és sorban elmondja. (Saját szót ne mondjanak be, azt hagyják a többieknek kitalálni. Jelezheted, hogy most még csak megismeritek a szavakat. Érdemes azokat memorizálni, mert a második körtől táblázatba írod a találatokat, s a végén összesíted.)
- kör: Egyszavas ráutalás, asszociáció.
- Sima mutogatás. (Tárgy nem használható.) Hang nélkül.
- Takarásban (pl. fotel/szék mögött, az arc rejtve maradjon) kétkezes mutogatás. Könyéktől fölfelé látszhat. Hang nélkül.
This file contains hidden or 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
'use strict' | |
const cloudinary = require('cloudinary') | |
const Promise = require('bluebird') | |
const co = require('co') | |
const fs = Promise.promisifyAll(require('fs')) | |
const request = require('request') | |
const moment = require('moment') | |
// FILL THIS | |
cloudinary.config({ | |
cloud_name: '', |
This file contains hidden or 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 Crypto = require('crypto'); | |
/** | |
* validates a mandrill webhook request | |
* @param url string the url that mandrill sent the request to | |
* @param key string the web hook key from https://mandrillapp.com/settings/webhooks | |
* @param params array the request's POST parameters i.e. req.params | |
* @param compareTo string the x-mandrill-signature header value | |
*/ | |
var validate = function validate(url, key, params, compareTo) { |
This file contains hidden or 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 Promise = require("bluebird"); | |
var util = require('util'); | |
var moment = require('moment'); | |
var pg = require('pg'); | |
module.exports = { | |
process: function(req, res) { | |
//YOUR CONNECTION NAME HERE | |
var pConfig = sails.config.connections.PostgresqlServer; | |
var conString = util.format("postgres://%s:%s@localhost:%s/%s", pConfig.user, pConfig.password, pConfig.port, pConfig.database); |
This file contains hidden or 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
<style> | |
div{ | |
background:black; | |
display:inline-block; | |
min-height:10px; | |
} | |
</style> |
This file contains hidden or 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
<?php | |
$nev1=$_COOKIE['pogi']; | |
if($_GET['szam1']){ | |
$nev1=$_GET['szam1']; | |
setcookie('pogi', $nev1, time()+2*3600); | |
} | |
$nev2=$_COOKIE['pogi2']; | |
if($_GET['szam2']){ | |
$nev2=$_GET['szam2']; |
This file contains hidden or 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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
This file contains hidden or 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 keystone = require('keystone'), | |
Types = keystone.Field.Types; | |
var Category = new keystone.List('Category',{ | |
map: { name: 'title' }, | |
searchFields:'parent', | |
}); | |
Category.add({ | |
title: { type: String, required: true}, |
NewerOlder