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
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
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
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath | |
{ | |
Account* account = [_accounts objectAtIndex:[indexPath row]]; | |
UITableViewCell* cell = [tableView dequeueReusableCellWithIdentifier:"AccountViewCell"]; | |
[[cell textLabel] setText:account.name]; | |
[[cell detailTextLabel] setText: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
using System; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Text; | |
using Nancy; | |
using Nancy.Hosting.Self; | |
using Nancy.Testing; | |
using Nancy.ViewEngines; | |
namespace NancyTesting |
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
// | |
// Loads the DefaultValue for each preference specifier with a Key in your Settings.bundle, | |
// | |
// For example, if your Settings.bundle has the following entry: | |
// | |
// <dict> | |
// <key>Type</key> | |
// <string>PSMultiValueSpecifier</string> | |
// <key>Title</key> | |
// <string>Frequency</string> |
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
import Foundation | |
func deserializeWCFDateString(json:AnyObject?) -> NSDate? { | |
if let jsonDateString = json as? String { | |
if countElements(jsonDateString) < 18 { | |
return nil | |
} | |
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; | |
namespace HashSetTest | |
{ | |
class Program | |
{ | |
static void Main() | |
{ | |
var curSet = new[] {"A","B","C","D","E"}; |
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 log4net; | |
namespace Infrastructure | |
{ | |
public interface IInterceptLogs | |
{ | |
IList<string> Lines { get; } | |
IList<Exception> Exceptions { get; } |
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;public class | |
Sig{public static void Main() | |
{for(int i=65;;i=i>82?65:i+9) | |
Console.Write((char)i);}} |
OlderNewer