git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
// | |
// String+HTML.swift | |
// AttributedString | |
// | |
// Created by Costantino Pistagna on 08/11/2017. | |
// Copyright © 2017 sofapps.it All rights reserved. | |
// | |
import UIKit | |
import Foundation |
<!doctype html> | |
<!-- Bootstrap Under Construction Boilerplate --> | |
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ --> | |
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]--> | |
<!-- Consider adding a manifest.appcache: h5bp.com/d/Offline --> | |
<!--[if gt IE 8]><!--> | |
<html class="no-js" lang="en"> | |
<!--<![endif]--> |
extension URLRequest { | |
/** | |
Returns a cURL command representation of this URL request. | |
*/ | |
public var curlString: String { | |
guard let url = url else { return "" } | |
var baseCommand = "curl \(url.absoluteString)" | |
if httpMethod == "HEAD" { |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
/* | |
====================================================== | |
THIS CODE IS FOR EDUCATIONAL PURPOSES ONLY. | |
I'M NOT RESPONSIBLE IF YOU SHIP THIS AND IT BLOWS UP IN YOUR FACE. | |
IF IT DOES AND YOU COMPLAIN TO ME I WILL LAUGH AT YOU. |
var _fetchedResultsController: NSFetchedResultsController<Entity>? = nil | |
var blockOperations: [BlockOperation] = [] | |
var fetchedResultController: NSFetchedResultsController<Entity> { | |
if _fetchedResultsController != nil { | |
return _fetchedResultsController! | |
} | |
let fetchRequest: NSFetchRequest<Entity> = Entity.fetchRequest() | |
let managedObjectContext = (UIApplication.shared.delegate as! AppDelegate).managedObjectContext! |
// ==UserScript== | |
// @name Github html preview | |
// @author https://github.com/vaniakosmos | |
// @version 1.0 | |
// @description Shortcut for htmlpreview.github.io | |
// @match https://github.com/**/*.html | |
// @grant none | |
// @require http://code.jquery.com/jquery-3.2.1.min.js | |
// ==/UserScript== |
Sources include, but not limited to:
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.