Skip to content

Instantly share code, notes, and snippets.

💭
words do limit the world!

Kazi Mehedi Hashan kmhrussell17

💭
words do limit the world!
Block or report user

Report or block kmhrussell17

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 auth-service.js
'use strict';
const bcrypt = require('bcrypt');
const crypto = require('crypto');
function createNewUser(db, data){
let user = db.createUser({
name: data.name,
email: data.email,
password: makeHash(data.password),
@kmhrussell17
kmhrussell17 / csv_to_array.php
Created Jul 27, 2016 — forked from jaywilliams/csv_to_array.php
Convert a comma separated file into an associated array.
View csv_to_array.php
<?php
/**
* Convert a comma separated file into an associated array.
* The first row should contain the array keys.
*
* Example:
*
* @param string $filename Path to the CSV file
* @param string $delimiter The separator used in the file
* @return array
View install-opencv-2.4.11-in-ubuntu.sh
# install dependencies
sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install -y cmake
sudo apt-get install -y libgtk2.0-dev
sudo apt-get install -y pkg-config
sudo apt-get install -y python-numpy python-dev
sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get install -y libjpeg-dev libpng-dev libtiff-dev libjasper-dev
You can’t perform that action at this time.