Skip to content

Instantly share code, notes, and snippets.

View kmhrussell17's full-sized avatar
💭
words do limit the world!

Kazi Mehedi Hashan kmhrussell17

💭
words do limit the world!
  • Zerogravity Ventures Ltd.
  • Dhaka, Bangladesh
View GitHub Profile
'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 July 27, 2016 20:06 — forked from jaywilliams/csv_to_array.php
Convert a comma separated file into an associated array.
<?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
# 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