Skip to content

Instantly share code, notes, and snippets.

View dbeattie71's full-sized avatar

Derek Beattie dbeattie71

  • Nebraska
  • 19:02 (UTC -06:00)
View GitHub Profile
//
// SimpleScrollingStack.swift
// A super-simple demo of a scrolling UIStackView in iOS 9
//
// Created by Paul Hudson on 10/06/2015.
// Learn Swift at www.hackingwithswift.com
// @twostraws
//
import UIKit
@dbeattie71
dbeattie71 / nuget.sh
Created April 30, 2016 22:05 — forked from andypiper/nuget.sh
nuget for OS X
#!/bin/sh
# add a simple 'nuget' command to Mac OS X under Mono
# get NuGet.exe binary from http://nuget.codeplex.com/releases/view/58939
# get Microsoft.Build.dll from a Windows .NET 4.0 installation
# copy to /usr/local/bin and Robert is your father's brother....
#
PATH=/usr/local/bin:$PATH
mono --runtime=v4.0 /usr/local/bin/NuGet.exe $*
@dbeattie71
dbeattie71 / git-mv-with-history
Created April 24, 2016 21:42 — forked from emiller/git-mv-with-history
git utility to move/rename file or folder and retain history with it.
#!/bin/bash
#
# git-mv-with-history -- move/rename file or folder, with history.
#
# Moving a file in git doesn't track history, so the purpose of this
# utility is best explained from the kernel wiki:
#
# Git has a rename command git mv, but that is just for convenience.
# The effect is indistinguishable from removing the file and adding another
# with different name and the same content.
@dbeattie71
dbeattie71 / .bash_profile
Created April 24, 2016 21:17 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@dbeattie71
dbeattie71 / build.sh
Created April 24, 2016 20:06 — forked from vood/build.sh
#!/usr/sh -e
#clone our private github repo with Xamarin project
git clone git@github.com/our_xamarin_project.git
cd our_xamarin_project
#update homebrew
brew update
#install Xamarin.Studio, Xamarin.iOS, Xamarin.Android, Mono
brew cask install xamarin-mdk xamarin-ios xamarin-studio xamarin-android
#install nuget dependencies
@dbeattie71
dbeattie71 / gist:634effdd20d3f07fbe4cd6fa75db930b
Created April 24, 2016 20:05 — forked from jpotts18/gist:9240598
Xamarin Dual build Jenkins Script
# Source Path Variables
source ~/.bash_profile
# uncomment to run this script in your local environment (outside of jenkins)
set -x
#WORKSPACE="/Users/parivedadeveloper/Projects/pariveda-finternship-2013"
# ANDROID
ANDROID_FOLDER="${WORKSPACE}/source/BBP.Droid"
ANDROID_CSPROJ="${ANDROID_FOLDER}/BBP.Droid.csproj"
@dbeattie71
dbeattie71 / NewMacConfig.md
Created April 23, 2016 16:58 — forked from offsky/NewMacConfig.md
Setup new mac for web development (Updated for Yosemite)
@dbeattie71
dbeattie71 / Android Lollipop Widget Tinting Guide
Created April 18, 2016 17:29 — forked from seanKenkeremath/Android Lollipop Widget Tinting Guide
How base colors in Lollipop apply to different UI elements
Unless specified otherwise, all of the below tinting applies to both Lollipop and pre-Lollipop using AppCompat v21. To use the support version of these attributes, remove the android namespace. For instance, "android:colorControlNormal" becomes "colorControlNormal". These attributes will be propagated to their corresponding attributes within the android namespace for devices running Lollipop. Any exceptions to this will be noted by including the "android:" prefix.
All Clickable Views:
-----------
* ripple effect (Lollipop only) -- "colorControlHighlight"
Status Bar:
------------
* background (Lollipop only) - "colorPrimaryDark"
@dbeattie71
dbeattie71 / Test Collections.md
Created April 6, 2016 00:14 — forked from enjin/Test Collections.md
Using test collections in xUnit.net v2

Test collections are the test grouping mechanism in xUnit.net v2. They serve two purposes:

  1. They delineate the "parallelism" boundary; that is, tests in the same collection will not be run in parallel against each other;
  2. They offer collection-wide fixtures through the use of ICollectionFixture<TFixtureType>.

The simplest way to use test collections is simply by name. Put two classes into the same named collection, and they can derive benefit #1 above:

[Collection("MyCollection")]
public class TestClass1
@dbeattie71
dbeattie71 / apk.ps1
Created March 4, 2016 20:39 — forked from postb99/apk.ps1
Powershell script to generate APK for Google Play
Param(
[string]$projectPath=$(throw "projectPath is required (full path to .csproj file)"),
[string]$packageName=$(throw "packageName is required"),
[string]$configurationDirName=$(throw "configurationDirName is required"),
[string]$keyAlias=$(throw "keyAlias is required (keystore key alias)")
)
# Parameters are defined at first line of powershell script.
# Thanks to http://docs.xamarin.com/guides/android/deployment%2C_testing%2C_and_metrics/publishing_an_application/part_1_-_preparing_an_application_for_release for this script
# Parameters :