Skip to content

Instantly share code, notes, and snippets.

Avatar

mwanjajoel mwanjajoel

View GitHub Profile
@mwanjajoel
mwanjajoel / ViewController.swift
Created Jul 26, 2017
Machine Learning Code which is Part of the WhatsThat iOS App
View ViewController.swift
//
// ViewController.swift
// WhatsThat
//
// Created by Codebender on 18/07/2017.
// Copyright © 2017 A23 Labs. All rights reserved.
//
import UIKit
import CoreML
@mwanjajoel
mwanjajoel / General Purpose Python gitignore file
Last active Jan 14, 2018
General Purpose Python project gitignore file
View General Purpose Python gitignore file
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
@mwanjajoel
mwanjajoel / git-deployment.md
Last active Jul 15, 2019 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks
View git-deployment.md

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.

View Javascript Splice Method.md

The array on which we are going to perform splice methods.

const weekDays = ["Sunday", "Tuesday", "Monday", "Wednesday"];

Objective is to remove Tuesday from the current position and then add it back in the right position. Go to this link https://www.w3schools.com/jsref/jsref_splice.asp for more details