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
| <link rel="preconnect" href="https://fonts.gstatic.com" /> | |
| <link href="https://fonts.googleapis.com/css2?family=Fira+Sans:wght@100;200;300;400;500;600&display=swap" rel="stylesheet" /> | |
| // @import '~bootstrap-4-grid/scss/grid/_functions.scss'; | |
| // @import '~bootstrap-4-grid/scss/grid/_variables.scss'; | |
| // @import '~bootstrap-4-grid/scss/grid/mixins/_breakpoints.scss'; | |
| //768px | |
| @mixin breakpoint-tablet { | |
| @media screen and (min-width: 48em) { |
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
| import * as mongoose from 'mongoose'; | |
| export let Schema = mongoose.Schema; | |
| export let ObjectId = mongoose.Schema.Types.ObjectId; | |
| export let Mixed = mongoose.Schema.Types.Mixed; | |
| export interface IHeroModel extends mongoose.Document { | |
| name: string; | |
| power: string; |
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
| { | |
| "apps": [{ | |
| "name": "Application", | |
| "exec_interpreter": "./node_modules/babel-cli/bin/babel-node.js", | |
| "script": "./bin/www", | |
| "args": [], | |
| "watch": ["public", "package.json", "pm2.development.json"], | |
| "ignore_watch": ["public"], | |
| "watch_options": { | |
| "persistent": true, |
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
| # Redis Cheatsheet | |
| # All the commands you need to know | |
| redis-server /path/redis.conf # start redis with the related configuration file | |
| redis-cli # opens a redis prompt | |
| # Strings. |
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 AmqpClient = require('amqplib'); | |
| const Promise = require('bluebird'); | |
| const contentTypeJson = 'application/json'; | |
| const contentEncoding = 'utf8'; | |
| const config = { | |
| exchanges: [ | |
| { name: 'A_COMMENT_CREATED', type: 'fanout' }, | |
| { name: 'A_COMMENT_DELETED', type: 'fanout' }, |
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'; | |
| var elasticsearch = require('elasticsearch'); | |
| var Promise = require('bluebird'); | |
| var log = console.log.bind(console); | |
| var client = new elasticsearch.Client({ | |
| host: 'localhost:9200', | |
| log: 'trace' |