Skip to content

Instantly share code, notes, and snippets.

View lottadot's full-sized avatar

Shane Zatezalo lottadot

View GitHub Profile
@lottadot
lottadot / gist:11ac02dbdf782f49d42f2cefe8ce8f7a
Last active June 4, 2019 03:03
Vertical stack in a Horizontal stack - remove one of the `This is a test` and it it builds.
`
Showing Recent Messages
.../Projects/SWPoc/SWPoc/SWPoc/ContentView.swift:18:4: Static member 'leading' cannot be used on instance of type 'HorizontalAlignment'
`
HStack {
Image("Candy")
VStack(alignment: .leading) {
Text("hello")
Text("This is a test")
For sale:
15" MacBook Pro Retina 2.6 GHz i7 CPU, GeForce GT 650M Video, 16GB Ram, 500GB HD and
27" Apple LED Cinema Display
Two laptop chargers included, misc video adapters. Model is MacBookPro10,1 (2012). Asking $950.00.
Located in Grove City, Ohio
[ -f Cartfile.resolved ]; then
CARTFILE_CHANGED=`git diff --stat $(GIT_PREVIOUS_SUCCESSFUL_COMMIT) $(GIT_COMMIT) | grep '\|' | awk '{print $$1}' | grep Cartfile.resolved`
if test "$(CARTFILE_CHANGED)" ; then
echo "## STEP: Updating Carthage"
carthage bootstrap --platform iOS --no-use-binaries
else
echo "## Carthage is up to date"
fi
else
echo "## STEP: Installing Carthage Dependencies"
git clone foo
cd foo
git remote add myfork ssh://mylogin@myserver/mypath/foo.git
git push myfork -all
@lottadot
lottadot / gist:5810903
Created June 19, 2013 01:00
OctoKit Login #ObjC
OCTUser *user = [OCTUser userWithLogin:@"lottadot" server:OCTServer.dotComServer];
OCTClient *client = [OCTClient authenticatedClientWithUser:user password:@""];
@lottadot
lottadot / gist:5007626
Last active December 14, 2015 01:39
Intern Position Summer 2013 Columbus Ohio
Company: Resource Inc.
Where: Downtown Columbus
On Bus route: Yes
Timeframe: 12 weeks May thru Aug. Fulltime. Paid.
Dress: Very casual
Hours: Flexible
Remote-workable: Yes (some allowed, as needed, we're flexible)
What you may be working on:
Native iOS App(s) (Objective-C)
@lottadot
lottadot / gist:4998800
Created February 20, 2013 19:52
git-up-dirtree
#!/bin/sh
# Copyright (c) 2012-2013 Lottadot LLC
# License is share and share alike damnit.
# Requires gem `git-up`
echo -e "\n\033[1mPulling in latest changes for all repositories...\033[0m\n"
set +e
current_dir=$(pwd)
script_dir=$(dirname $0)
@lottadot
lottadot / gist:4667075
Created January 29, 2013 19:42
Running Unit tests from command line (ie Xcode 4.52/4.6 and Jenkins). We install ios-sim gem, add a buildtarget to run from CLI and this as a run script at on that build target
if ENV['SL_RUN_UNIT_TESTS'] then
#launcher_path = File.join(ENV['SRCROOT'], "Scripts", "ios-sim")
launcher_path = "/usr/local/bin/ios-sim"
test_bundle_path= File.join(ENV['BUILT_PRODUCTS_DIR'], "#{ENV['PRODUCT_NAME']}.#{ENV['WRAPPER_EXTENSION']}")
environment = {
'DYLD_INSERT_LIBRARIES' => "/../../Library/PrivateFrameworks/IDEBundleInjection.framework/IDEBundleInjection",
@lottadot
lottadot / gist:3716778
Created September 13, 2012 19:03
Building an iOS Enterpise IPA
xcrun -sdk iphoneos PackageApplication \
"build/Enterprise-iphoneos/some.app" \
-o "${WORKSPACE}/some.ipa" \
--sign "iPhone Distribution: Some Company LLC" \
--embed "{somepathto}/Assets/provisioning/com.company.some.enterprise.mobileprovision"
$ md5sum xcode_4.2_and_ios_5_sdk_beta_5_for_lion.dmg
3a4810457ad580de0f7cfb4bd78cd9a7 xcode_4.2_and_ios_5_sdk_beta_5_for_lion.dmg