Skip to content

Instantly share code, notes, and snippets.

View topgenorth's full-sized avatar

Tom Opgenorth topgenorth

  • Sherwood Park, AB, Canada
View GitHub Profile
@redent
redent / ParentViewController.Keyboard.cs
Last active May 2, 2018 21:47
Parent view controller to handle keyboard notifications to center views in the screen. UIScrollView related methods moved to an extension class.
using System;
using Foundation;
using UIKit;
using TwinCoders.TouchUtils.Extensions;
using CoreGraphics;
namespace SalesForce.Touch.Views
{
public abstract partial class ParentViewController
{
@zxjon22
zxjon22 / SetAssemblyVersion.ps1
Created August 9, 2016 18:04
Updates AssemblyInfo.cs|vb and GlobalAssemblyInfo.cs|vb with the supplied version information.
# SetAssemblyVersion.ps1
#
# http://www.luisrocha.net/2009/11/setting-assembly-version-with-windows.html
# http://blogs.msdn.com/b/dotnetinterop/archive/2008/04/21/powershell-script-to-batch-update-assemblyinfo-cs-with-new-version.aspx
# http://jake.murzy.com/post/3099699807/how-to-update-assembly-version-numbers-with-teamcity
# https://github.com/ferventcoder/this.Log/blob/master/build.ps1#L6-L19
# https://gist.github.com/derekgates/4678882
[CmdletBinding()]
Param(
[Parameter(Mandatory=$true,Position=1)]
@goyalmohit
goyalmohit / Update-AssemblyInfoVersionFile.ps1
Last active February 20, 2024 19:25
Assembly versioning using PowerShell
function Update-AssemblyInfoVersionFile
{
Param
(
[Parameter(Mandatory=$true)]
[string]$productVersion
)
$buildNumber = $env:BUILD_BUILDNUMBER
if ($buildNumber -eq $null)