This file contains hidden or 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
From | |
https://stackoverflow.com/questions/965053/extract-filename-and-extension-in-bash | |
~% FILE="example.tar.gz" | |
~% echo "${FILE%%.*}" | |
example | |
~% echo "${FILE%.*}" |
This file contains hidden or 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
# configure.ac | |
# add an --enable-macos-universal-binary flag that when building for mac | |
# create a universal x86_64 / arm64 binary | |
AC_ARG_ENABLE([macos-universal-binary], | |
[AS_HELP_STRING([--enable-macos-universal-binary], | |
[Create an universal x86_64+arm64 binary when building for macos)])],, | |
[enable_macos_universal_binary=no]) | |
# Determine if we're building for macos/darwin by checking for macos & darwin |
This file contains hidden or 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
using AutomationTool; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using UnrealBuildTool; | |
namespace Gauntlet.Examples |
This file contains hidden or 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
# Uncomment the line if you want fastlane to automatically update itself | |
# update_fastlane | |
require 'spaceship' | |
default_platform(:ios) | |
platform :ios do | |
desc "Pulls a list of all devices from our accounts and dedupes them " | |
lane :dump_devices do |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using AutomationTool; | |
using UnrealBuildTool; | |
using Gauntlet; | |
using System.Net.NetworkInformation; | |
using static AutomationTool.P4Connection; |
This file contains hidden or 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
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. | |
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
using System.Xml; |
This file contains hidden or 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
required init(coder aDecoder: NSCoder) { | |
let colorArray = aDecoder.decodeObjectForKey("colors") as! [CGFloat] | |
self.CGColor = CGColorCreate(CGColorSpaceCreateDeviceRGB(), colorArray) | |
super.init() | |
} | |
func encodeWithCoder(aCoder: NSCoder) { | |
This file contains hidden or 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
// ReminderTableViewCell is a custom cell with a left-aligned button used to toggle the completed state of an EventKit reminder | |
let reminderCell = tableView.dequeueReusableCellWithIdentifier("ReminderCell") as! ReminderTableViewCell | |
let reminder = self.reminders[indexPath.row] | |
reminderCell.titleLabel.text = reminder.title | |
reminderCell.completeButton.setTitle(reminder.completed ? "🔳" : "◻️", forState: UIControlState.Normal) | |
reminderCell.completeButton.tag = indexPath.row |