This file contains 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
select * from boy |
This file contains 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
const mongoose = require('mongoose'); | |
const questionSchema = mongoose.Schema({ | |
_id: mongoose.Schema.Types.ObjectId, | |
createdOn: { type: Date, default: Date.Now }, | |
createdBy: { type: String, ref: 'User' }, // represents the user asking the question | |
meetup: { type: mongoose.Schema.Types.ObjectId, ref: 'Meetup', required: true }, // represents the meetup the question is for | |
title: { type: String }, | |
bodyMessage: { type: String }, |
This file contains 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
function alphaID($in, $to_num = false, $pad_up = false, $pass_key = null) | |
{ | |
$out = ''; | |
$index = 'abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'; | |
$base = strlen($index); | |
if ($pass_key !== null) { | |
// Although this function's purpose is to just make the | |
// ID short - and not so much secure, | |
// with this patch by Simon Franz (http://blog.snaky.org/) |
This file contains 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
const http = require("http"); | |
const https = require("https"); | |
const co = require("co"); | |
const fs = require("fs"); | |
const url = require("url"); | |
const querystring = require("querystring"); | |
const MongoClient = require("mongodb").MongoClient; | |
const ObjectID = require("mongodb").ObjectID; | |
let config, db, deployment, io, server; |
This file contains 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 signal = { | |
//server: "localhost", | |
server: "http://habari-test.gtbank.cloud", | |
start: function (uid, onConnectCallback) { | |
if (!signal.isConnected) { | |
signal.isConnected = true; | |
console.log("connected"); | |
socket.on('login_status', function (connection) { |