- correct mental model necessary to understand git
- how to manipulate commits and branches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Debug.swift | |
// | |
// Created by Craig Hockenberry on 3/15/17. | |
// Usage: | |
// | |
// SplineReticulationManager.swift: | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from PyQt5.QtWidgets import QApplication, QListWidget, QMainWindow | |
class MainWindow(QMainWindow): | |
def __init__(self): | |
super().__init__() | |
self.setWindowTitle("My App") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Aijaz Ansari | |
# This work is licensed under the Creative Commons Attribution 4.0 | |
# International License. To view a copy of this license, visit | |
# http://creativecommons.org/licenses/by/4.0/ or send a letter to | |
# Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. | |
# This script takes in one parameter, a domain name. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "CCNetwork.h" | |
@implementation CCNetwork | |
+(void) retrieveJSONAtLocation: (NSString *) urlString completionHandler: (void (^)(NSData *data, NSURLResponse *response, NSError *error)) handler { | |
NSURL *url = [[NSBundle mainBundle] URLForResource:urlString withExtension:@"json"]; | |
[CCNetwork retrieveJSONAtURL:url completionHandler:handler]; | |
} | |
+(void) retrieveJSONAtURL: (NSURL *) url completionHandler: (void (^)(NSData *data, NSURLResponse *response, NSError *error)) handler { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import UIKit | |
class Network { | |
static let sharedInstance = Network() | |
private init() { | |
} //This prevents others from using the default '()' initializer for this class. | |
class func retrieveJsonAtLocation (urlString: String, completionHandler: @escaping ()->Void) { | |
let url = Bundle.main.url(forResource: urlString, withExtension: "json") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
My Talk: https://www.slideshare.net/AijazAnsari2/beyond-breakpoints-advanced-debugging-with-xcode | |
Date of talk: 4/21/2017 | |
CocoaConf Chicago | |
LLDB: https://lldb.llvm.org/ | |
A blog post from January, where I write about most of the same stuff: | |
Extending LLDB: http://aijaz.net/2017/01/11/lldb-python/index.html | |
JQ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GIT aliases | |
alias gl='git --no-pager log --graph --all --pretty="%C(auto)%h%Creset %C(blue)%cd%Creset %C(auto)%d%Creset %s" --date=local -20' | |
alias glp='git lp' | |
alias glpp='git lpp' |
- Assuming you're using the PackageControl.io module
- Install package named 'Highlight'. You don't need to create a repo or anything else.
- URL for the package (shouldn't need it) is https://packagecontrol.io/packages/Highlight
- Go to Preferences > Package Settings > SublimeHighlight and set the prefs otherwise pasted text looks awful. I use:
{
"theme": "monokai",
"linenos": "inline",
"noclasses": true,
NewerOlder