Skip to content

Instantly share code, notes, and snippets.

yoavniran /
Last active May 11, 2021
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest
RameshRM / BackgroundFetch.swift
Last active Feb 24, 2021
Swift Background Fetch
View BackgroundFetch.swift
Step 1: Enable capabilities "background fetch"
Step2 : Setup AppDelegate.swift
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
let settings = UIUserNotificationSettings(forTypes: UIUserNotificationType.Alert, categories: nil)
return true;
higepon / API.swift
Last active Aug 2, 2020
An example of JSON API call in Swift
View API.swift
// API.swift
// Created by Taro Minowa on 6/10/14.
// Copyright (c) 2014 Higepon Taro Minowa. All rights reserved.
import Foundation
typealias JSONDictionary = Dictionary<String, AnyObject>
JamesMGreene /
Last active May 11, 2021
A comparison of using `git flow` commands versus raw `git` commands.


gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

kevin-smets /
Last active May 11, 2021
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)





matthiasg / docs style (bootstrap)
Created Aug 5, 2013
the callouts from the bootstrap documentation
View docs style (bootstrap)
/* Side notes for calling out things
-------------------------------------------------- */
/* Base styles (regardless of theme) */
.bs-callout {
margin: 20px 0;
padding: 15px 30px 15px 15px;
border-left: 5px solid #eee;
digitaljhelms / gist:4287848
Last active May 10, 2021
Git/GitHub branching standards & conventions
View gist:4287848


Quick Legend

Instance Branch Description, Instructions, Notes
adamgit / .gitignore
Last active Apr 25, 2021
.gitignore file for Xcode4 / OS X Source projects
View .gitignore
# .gitignore file for Xcode4 and Xcode5 Source projects
# Apple bugs, waiting for Apple to fix/respond:
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation?
# Version 2.6
# For latest version, see:
View states_hash.json
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",