Skip to content

Instantly share code, notes, and snippets.

View faizmokh's full-sized avatar
🏠
Working from home

Faiz Mokhtar faizmokh

🏠
Working from home
View GitHub Profile

Videos

Keybase proof

I hereby claim:

  • I am faizmokhtar on github.
  • I am faiz (https://keybase.io/faiz) on keybase.
  • I have a public key ASBRWBA3GVG_CzABT6ArsykEAK2jxz3UrAbx7pD6A2hPsAo

To claim this, I am signing this object:

@faizmokh
faizmokh / Diagonal.swift
Created July 26, 2016 12:55
Diagonal shape with CGAffineTransformMake
import UIKit
import XCPlayground
let containerView = UIView(frame: CGRect(x: 0.0, y: 0.0, width: 300, height: 200))
XCPlaygroundPage.currentPage.liveView = containerView
let diagonalView = UIView(frame: CGRect(x: (containerView.bounds.size.width - 200) / 2, y: (containerView.bounds.size.height - 100) / 2, width: 200, height: 100))
diagonalView.backgroundColor = UIColor.redColor()
diagonalView.layer.borderWidth = 2.0
diagonalView.layer.borderColor = UIColor.yellowColor().CGColor
@faizmokh
faizmokh / seo.html
Created August 9, 2016 02:20
Essential SEO HTML Tags
<!-- Essential META Tags -->
<meta property="og:title" content="European Travel Destinations">
<meta property="og:description" content="Offering tour packages for individuals or groups.">
<meta property="og:image" content="http://euro-travel-example.com/thumbnail.jpg">
<meta property="og:url" content="http://euro-travel-example.com/index.htm">
<meta name="twitter:card" content="summary_large_image">
<!-- Non-Essential, But Recommended -->
<meta name="og:site_name" content="European Travel, Inc.">
@faizmokh
faizmokh / NibLoadingView.swift
Created August 22, 2016 09:56
UIView subclass for automatic loading of associated Xib
import UIKit
// Usage: Subclass your UIView from NibLoadView to automatically load a xib with the same name as your class
protocol NibDefinable {
var nibName: String { get }
}
@IBDesignable
class NibLoadingView: UIView, NibDefinable {
@faizmokh
faizmokh / tmux.conf
Created January 1, 2017 07:04 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
@faizmokh
faizmokh / meta-tags.md
Created March 10, 2017 03:14 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@faizmokh
faizmokh / meta-tags.md
Created March 10, 2017 03:14 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@faizmokh
faizmokh / Appfile
Created March 24, 2017 07:45 — forked from mmazzarolo/Appfile
Simple Fastlane setup for React-Native (Android - iOS)
# iOS
app_identifier "com.myapp.app" # The bundle identifier of your app
apple_id "me@gmail.com" # Your Apple email address
team_id "1234ABCD" # Developer Portal Team ID
# Android
json_key_file "./google-play-api-secret.json" # Path to the json secret file - Follow https://github.com/fastlane/supply#setup to get one
package_name "com.myapp.app" # Your Android app package
@faizmokh
faizmokh / ladder.md
Created June 11, 2017 11:00 — forked from jamtur01/ladder.md
Kickstarter Engineering Ladder