sudo installcurl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -| // | |
| // CustomUIViewClass.swift | |
| // | |
| // Created by S M HEMEL on 12/09/18. | |
| // Copyright © 2018 S M HEMEL. All rights reserved. | |
| // | |
| import UIKit | |
| @IBDesignable |
| // Add your project and customize you UIImageViewer. | |
| import UIKit | |
| @IBDesignable | |
| class UIImageViewX: UIImageView { | |
| // MARK: - Properties | |
| @IBInspectable public var borderColor: UIColor = UIColor.clear { |
| // This file add your project and customize your Label. | |
| import UIKit | |
| @IBDesignable | |
| class UILabelX: UILabel { | |
| @IBInspectable var cornerRadius: CGFloat = 0 { | |
| didSet { | |
| self.layer.cornerRadius = cornerRadius |
| //Start MySql in terminal | |
| mysql-ctl cli | |
| //Create Database | |
| CREATE DATABASE test_db; | |
| //List available databases | |
| show databases; | |
| //Delete Or Drop a database |
| var mysql = require('mysql'); | |
| var connection = mysql.createConnection({ | |
| host : 'localhost', | |
| user : 'root', // your root username (leave as root) | |
| database : 'join_us', // the name of your db (create this if you haven't already) | |
| password : process.env.MYSQL_PW // your root user's password | |
| }); | |
| //If you want to impor password then |
| // source: http://stackoverflow.com/a/11058858 | |
| function ab2str(buf) { | |
| return String.fromCharCode.apply(null, new Uint16Array(buf)); | |
| } |
git config --global user.name "Sm Hemel"git config --global user.email smhemel.eu@gmail.comls -atouch test.txt