Skip to content

Instantly share code, notes, and snippets.

View saifnoman's full-sized avatar

Mohammad Syful Islam Noman saifnoman

View GitHub Profile
// Database connection settings
"db" => [
"host" => "locahost",
"dbname" => "your-database-name",
"user" => "your-mysql-user",
"pass" => "your-mysql-password"
],
@saifnoman
saifnoman / data.sql
Last active November 18, 2019 07:18
Slim CRUD API
create database iiuc;
--
-- Table structure for `tasks`
--
CREATE TABLE IF NOT EXISTS `tasks` (
`id` int(11) NOT NULL,
`task` varchar(200) NOT NULL,

New computer setup

  • a/o 2015-05-27 *

Format the drive

  1. Restart with cmd-R or cmd-D
  2. Erase drive / 3x if second-handk
  3. Reinstall MacOS
.factory('TokenHandler', function() {
var tokenHandler = {};
var token = "none";
tokenHandler.set = function( newToken ) {
token = newToken;
};
tokenHandler.get = function() {
return token;