Skip to content

Instantly share code, notes, and snippets.

View fareskalaboud's full-sized avatar

Fares Alaboud fareskalaboud

View GitHub Profile

LaTeX Cheat Sheet

This has some FAQs and quick shortcuts but you should look at this documentation starting from this page.

Sectioning

How do I add a section? Use \section{Section Name} and/or \subsection{Subsection Name} in its own line. For example:

@fareskalaboud
fareskalaboud / NSDate+.swift
Last active February 13, 2016 23:30
If you work with a lot of dates and times in your apps, here’s a cool extension I wrote that allows you to quickly add hours, days, weeks or months to any date.
// This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
// Created by Fares K. Alaboud on 13/01/2016.
// faresalaboud.me
import UIKit
extension NSDate {
func addToDate(measurement: DateComponent, number: Int) -> NSDate {
let dateComponents = NSDateComponents()