Skip to content

Instantly share code, notes, and snippets.

gbielecki

Block or report user

Report or block gbielecki

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View mailer.js
import nodemailer from "nodemailer";
function setup() {
return nodemailer.createTransport({
host: 'smtp.mailtrap.io',
port: 2525,
auth: {
user: '82c2a63f7c2386',
pass: '8ebe1c2712bb52'
View mailer.jsx
import nodemailer from "nodemailer";
function setup() {
return nodemailer.createTransport({
host: 'smtp.mailtrap.io',
port: 2525,
auth: {
user: '82c2a63f7c2386',
pass: '8ebe1c2712bb52'
View post-wishes.js
import Syncano from 'syncano-server'
import crypto from 'crypto'
export default (ctx) => {
const {data,response} = Syncano(ctx)
if (ctx.args.sender && ctx.args.receiver && ctx.args.wishes) {
data.wishes.create({
sender: ctx.args.sender,
receiver: ctx.args.receiver,
View get-wishes.js
import Syncano from 'syncano-server'
export default (ctx) => {
const {response,data} = Syncano(ctx)
if(ctx.args.wish){
data.wishes.where("cryptoId", ctx.args.wish).list()
.then(wishes=>{
response.json({wishes})
})
}
View socket.yml
name: Christmas2017
description: Socket for christmas 2017 from Polarbits with love.
version: 0.0.1
classes:
wishes:
- name: sender
type: string
- name: receiver
type: string
You can’t perform that action at this time.