Skip to content

Instantly share code, notes, and snippets.

View jtn-ms's full-sized avatar
🏘️
working from home

Brian G. jtn-ms

🏘️
working from home
  • remote
View GitHub Profile
@jtn-ms
jtn-ms / Emitter.js
Last active August 11, 2022 16:35 — forked from mayashavin/Emitter.js
Emitter Class Implementation
function Emitter(){
var events = new Map();
return {
subscribe: function(event_name, callback){
//If events has event_name, then get the event Subscription and push to it.
//Else create new event, subscription and add to events.
var isEventExisted = events.has(event_name), index = 0;
@jtn-ms
jtn-ms / Gists.md
Created August 1, 2022 20:36 — forked from BoQsc/Gists.md
How to search my own Gists
@jtn-ms
jtn-ms / passport.js
Created July 25, 2022 23:23 — forked from manjeshpv/passport.js
Passport.js using MySQL for Authentication with Express
// config/passport.js
// load all the things we need
var LocalStrategy = require('passport-local').Strategy;
var mysql = require('mysql');
var connection = mysql.createConnection({
host : 'localhost',
user : 'root',
from __future__ import print_function
import numpy as np
from xlwings import Workbook, Range
#Deep excel not included please find it here: http://www.deepexcel.net/
def run_test_data():
with open('test.csv','rt') as f:
with open('result.csv','wt') as r: