Skip to content

Instantly share code, notes, and snippets.

View tombuildsstuff's full-sized avatar
🙃

Tom Harvey tombuildsstuff

🙃
View GitHub Profile
Whilst we all hate origin - they're christmas sale details have already been uploaded - so you can bag a great deal on BF3 - see below:
http://drh.img.digitalriver.com/DRHM/Storefront/Site/eaemea/pb/images/AdventCalendar/thumb_01.jpg - 40% off
http://drh.img.digitalriver.com/DRHM/Storefront/Site/eaemea/pb/images/AdventCalendar/thumb_02.jpg - Need for Speed?
http://drh.img.digitalriver.com/DRHM/Storefront/Site/eaemea/pb/images/AdventCalendar/thumb_03.jpg - ???
http://drh.img.digitalriver.com/DRHM/Storefront/Site/eaemea/pb/images/AdventCalendar/thumb_04.jpg - The Sims
http://drh.img.digitalriver.com/DRHM/Storefront/Site/eaemea/pb/images/AdventCalendar/thumb_05.jpg - Harry Potter
http://drh.img.digitalriver.com/DRHM/Storefront/Site/eaemea/pb/images/AdventCalendar/thumb_06.jpg - ???
http://drh.img.digitalriver.com/DRHM/Storefront/Site/eaemea/pb/images/AdventCalendar/thumb_07.jpg - ???
http://drh.img.digitalriver.com/DRHM/Storefront/Site/eaemea/pb/images/AdventCalendar/thumb_08.jpg - The Sims
@tombuildsstuff
tombuildsstuff / hack.sh
Created March 31, 2012 11:35 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Web.UI.DataVisualization.Charting;
namespace Charting
{
public static class ChartingHelpers
{
public enum ImageFormat
@tombuildsstuff
tombuildsstuff / gist:3969190
Created October 28, 2012 17:19
.NET Casting Issue
public abstract class Base
{
// ..
}
public class Impl1 : Base
{
// ..
}
@tombuildsstuff
tombuildsstuff / String.swift
Created August 6, 2015 08:47
Phone number validation
static func isValidTelephone(value: String) -> Bool {
if let detector = NSDataDetector(types: NSTextCheckingType.PhoneNumber.rawValue, error: nil) {
let range = NSRange(location: 0, length: NSString(string: value).length);
let matches = detector.matchesInString(value, options: NSMatchingOptions.allZeros, range: range);
for match in matches {
if let matchType = match as? NSTextCheckingResult {
if matchType.resultType == NSTextCheckingType.PhoneNumber {
echo $1

Keybase proof

I hereby claim:

  • I am tombuildsstuff on github.
  • I am tombuildsstuff (https://keybase.io/tombuildsstuff) on keybase.
  • I have a public key ASAv7fKfaGppint41xzfQADAZgDTwOFjCWni1FkHQttjOgo

To claim this, I am signing this object:

resource "azurerm_resource_group" "test" {
name = "test-dev7986"
location = "West Europe"
}
resource "azurerm_network_security_group" "test" {
name = "test-dev7986nsg"
location = "${azurerm_resource_group.test.location}"
resource_group_name = "${azurerm_resource_group.test.name}"
11:27 $ git diff
diff --git a/models.go b/models.go
index 02539a1..848df9f 100755
--- a/models.go
+++ b/models.go
@@ -241,8 +241,8 @@ type NamespaceResource struct {
     autorest.Response `json:"-"`
     ID *string `json:"id,omitempty"`
 Name *string `json:"name,omitempty"`
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/acctestRG-2344185852114327056/providers/Microsoft.ServiceBus/namespaces/acctestservicebusnamespace-2344185852114327056/topics/acctestservicebustopic-2344185852114327056",
"name": "acctestservicebustopic-2344185852114327056",
"type": "Microsoft.ServiceBus/Topic",
"location": "West US",
"tags": null,
"properties": {
"defaultMessageTimeToLive": "10675199.02:48:05.4775807",
"maxSizeInMegabytes": 5120,
"requiresDuplicateDetection": false,