This file contains 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
override func tableView(tableView: UITableView?, cellForRowAtIndexPath indexPath: NSIndexPath?) -> UITableViewCell? | |
{ | |
let account = _accounts[indexPath!.row] | |
let cell = tableView!.dequeueReusableCellWithIdentifier("AccountViewCell") as UITableViewCell | |
cell.textLabel.text = account.name | |
cell.detailTextLabel.text = account.email | |
return cell | |
} |
This file contains 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
MERGE INTO vegetation.PlotHeader AS Target | |
USING (VALUES(@PlotNumber,@SurveyDate,GETDATE(),@ProjectId,@PlantCommId,@Comments,@PlotId,@NorthShadePercentage,@EastShadePercentage,@SouthShadePercentage,@WestShadePercentage)) | |
AS Source(PlotNumber,SurveyDate,LastModified,ProjectId,PlantCommId,Comments,PlotId,NorthShadePercentage,EastShadePercentage,SouthShadePercentage,WestShadePercentage) | |
ON | |
( | |
Target.SurveyDate = Source.SurveyDate AND | |
Target.ProjectId = Source.ProjectId AND | |
Target.PlantCommId = Source.PlantCommId AND | |
Target.PlotNumber = Source.PlotNumber | |
) |
This file contains 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
Start-Process python.exe -argument '-m http.server'; Start-Process livereloadx.cmd |
This file contains 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 (var serviceRequest = new WebClient()) | |
{ | |
string token = GetAuthorizationToken("yourservice","owner", "NW1wr7/nlgggTFnB5L7nDBrOLC+o1E1P4ZZqPaP2mY4="); | |
serviceRequest.Headers["Authorization"] = string.Format("WRAP access_token=\"{0}\"", token); | |
string response = serviceRequest.DownloadString(new Uri(url)); | |
return response; | |
} | |
// connects to ACS and gets WRAP Authorization token |
This file contains 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
PS1='\[\033]0;${PWD}\007\]\[\033[00m\][${DVCSBRANCH} \[\033[1;32m\]a${INDEXADDED} \[\033[1;33m\]M${FILESMODIFIED} \[\033[1;34m\]D${FILESDELETED} \[\033[1;31m\]?${FILESADDED}\[\033[00m\]] \[\033[0;33m\]m${INDEXMODIFIED} \[\033[0;31m\]d${INDEXDELETED} \[\033[0;35m\]U${FILESUNMERGED} u${INDEXUNMERGED}\[\033[00m\]\n$>' |
This file contains 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
private bool DoWork() | |
{ | |
DoSomething(); | |
DoSomethingElse(); | |
return true; | |
} | |
catch (Exception ex) | |
{ | |
_log.Error(ex); |
This file contains 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
// | |
// FMDatabaseFactory.m | |
// | |
// Copyright (c) 2012 Andy Sherwood. All rights reserved. | |
// | |
#import "FMDatabaseFactory.h" | |
#import <FMDatabase.h> | |
@implementation FMDatabaseFactory |
This file contains 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.ComponentModel; | |
using System.Linq; | |
using System.Reflection; | |
using Microsoft.SharePoint; | |
namespace MileageSite.Layouts.MileageSite | |
{ | |
public static class SPListItemExtensions |
This file contains 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
setTimeout = (delay, exp) -> | |
window.setTimeout exp, delay |
This file contains 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
public IEnumerable<InterfaceStatusEntry> ShowInterfaceStatus() | |
{ | |
return ParserFactory | |
.CreateParser<InterfaceStatusParserBase>(_iosVersion.SoftwareFamily) | |
.Parse(_sshShellWrapper.Capture("show interface status")); | |
} |