Skip to content

Instantly share code, notes, and snippets.

View ebenezerugo's full-sized avatar

Ebenezer Ugo ebenezerugo

View GitHub Profile
@ebenezerugo
ebenezerugo / chat.html
Created November 7, 2019 13:04 — forked from dskanth/chat.html
Client file for Private chat using node.js and socket.io
<script src="/socket.io/socket.io.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script type="text/javascript">
var my_username = '';
function send_individual_msg(id)
{
//alert(id);
//alert(my_username);
socket.emit('check_user', my_username, id);
//socket.emit('msg_user', id, my_username, prompt("Type your message:"));
@ebenezerugo
ebenezerugo / app.js
Created November 7, 2019 13:03 — forked from dskanth/app.js
Server file for Private chat using node.js and socket.io
var app = require('express').createServer()
var io = require('socket.io').listen(app);
var fs = require('fs');
app.listen(8008);
// routing
app.get('/', function (req, res) {
res.sendfile(__dirname + '/chat.html');
});
@ebenezerugo
ebenezerugo / API.md
Created October 23, 2019 11:30 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

@ebenezerugo
ebenezerugo / ForgotPasswordController.php
Created June 20, 2018 11:21 — forked from nasrulhazim/ForgotPasswordController.php
Reset and Update Password from API
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use App\Transformers\Json;
use App\User;
use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
use Illuminate\Http\Request;