Simple commits:
git replace --graft <TAIL_COMMIT_SHA> <TIP_COMMIT_SHA>
If tip is a merge commit:
git replace --graft <TAIL_COMMIT_SHA> <FIRST_PARENT_OF_TIP_MERGE_COMMIT_SHA> <SECOND_PARENT_OF_TIP_MERGE_COMMIT_SHA>
Then:
Simple commits:
git replace --graft <TAIL_COMMIT_SHA> <TIP_COMMIT_SHA>
If tip is a merge commit:
git replace --graft <TAIL_COMMIT_SHA> <FIRST_PARENT_OF_TIP_MERGE_COMMIT_SHA> <SECOND_PARENT_OF_TIP_MERGE_COMMIT_SHA>
Then:
#!/bin/sh | |
# Zip CloudCode folders | |
zip -r scripts.zip event modules response | |
# Send to GameSparks | |
curl \ | |
--verbose \ | |
--header 'Content-Type: multipart/form-data' \ | |
--header 'Accept: application/json' \ |
touch -t YYYYMMDDhhmm ~/Path/To/Image.jpg |
node-appdmg
.{
"title" : "PRODUCT_NAME",
"window" :
{
"size" :
{
for f in *; do convert -density 300 -units pixelsperinch "$f" "$f"; done |
import SwiftUI | |
let hello = "Hello" | |
let world = "world!" | |
struct ContentView_standard: View | |
{ | |
extension UIView { | |
func printViewHierarchyInformation(_ level: Int = 0) { | |
printViewInformation(level) | |
self.subviews.forEach { $0.printViewHierarchyInformation(level + 1) } | |
} | |
func printViewInformation(_ level: Int) { | |
let leadingWhitespace = String(repeating: " ", count: level) | |
let className = "\(Self.self)" |
extension UIView { | |
/// Search ancestral view hierarchy for the given view type. | |
func searchViewAnchestorsFor<ViewType: UIView>( | |
_ onViewFound: (ViewType) -> Void | |
) { | |
if let matchingView = self.superview as? ViewType { | |
onViewFound(matchingView) | |
} else { | |
superview?.searchViewAnchestorsFor(onViewFound) |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>FILEHEADER</key> | |
<string> | |
// ___FILENAME___ | |
// <PROJECT_NAME> | |
// | |
// Created by ___FULLUSERNAME___ on ___DATE___. |
extension CGFloat { | |
var linear: CGFloat { | |
self | |
} | |
var easeIn_1: CGFloat { | |
pow(self, 2) | |
} | |