Skip to content

Instantly share code, notes, and snippets.

View MowiliMi's full-sized avatar
💭
MówiliMi, że tego nie da się zrobić. Więc zrobiłem to trzy razy ʕ•ᴥ•ʔ

MowiliMi

💭
MówiliMi, że tego nie da się zrobić. Więc zrobiłem to trzy razy ʕ•ᴥ•ʔ
View GitHub Profile
<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) {
@MowiliMi
MowiliMi / hero.ts
Created November 19, 2019 07:59 — forked from brennanMKE/hero.ts
Example of Mongoose with TypeScript and MongoDb
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;
@MowiliMi
MowiliMi / pm2.json
Created September 20, 2019 09:32 — forked from ahmadina/pm2.json
using PM2 for run ES6 (babel) application
{
"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,
@MowiliMi
MowiliMi / redis_cheatsheet.bash
Created July 30, 2019 13:24 — forked from LeCoupa/redis_cheatsheet.bash
Redis Cheatsheet - Basic Commands You Must Know --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
# 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.
@MowiliMi
MowiliMi / amqp.js
Created March 22, 2019 15:11 — forked from bondvt04/amqp.js
RabbitMQ retries
'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' },
@MowiliMi
MowiliMi / elasticsearch-example.js
Created February 7, 2019 10:50 — forked from StephanHoyer/elasticsearch-example.js
Simple example how to use elastic search with node.js
'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'