Skip to content

Instantly share code, notes, and snippets.

View lifecube's full-sized avatar

TANG Hao Peter lifecube

View GitHub Profile
@lifecube
lifecube / GitHub-Forking.md
Created March 14, 2016 15:23 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, when I started going through the process of forking and issuing pull requests, I had some trouble figuring out the proper method for doing so and made quite a few mistakes along the way. I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your

@lifecube
lifecube / 0_reuse_code.js
Last active August 29, 2015 14:27
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
function bt-ctl(){
case "$1" in
off)
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.blued.plist
sudo kextunload -b com.apple.iokit.IOBluetoothSerialManager
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
;;
on)
sudo launchctl load /System/Library/LaunchDaemons/com.apple.blued.plist
sudo kextload -b com.apple.iokit.IOBluetoothSerialManager
@lifecube
lifecube / BPImageTransformer.h
Created June 12, 2012 06:29 — forked from jon/BPImageTransformer.h
An NSValueTransformer to convert images to/from serialized PNGs (for CoreData)
//
// BPImageTransformer.h
// Skates
//
// Created by Jon Olson on 2/3/10.
// Copyright 2010 Ballistic Pigeon, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>