Skip to content

Instantly share code, notes, and snippets.

Avatar

Tove Taelkir

View GitHub Profile
@Taelkir
Taelkir / postcoder_example.cs
Created Mar 13, 2019
Example code for using Postcoder in C#. For more information on Postcoder, visit https://postcoder.com/
View postcoder_example.cs
// Postcoder example
// Allies Computing Ltd
//
// Demonstrates UK Address lookup rest web service
//
// Product URL: https://postcoder.com/address-lookup
// Technical Specs: https://developers.alliescomputing.com/postcoder-web-api/address-lookup/premise
// Example output: http://ws.postcoder.com/pcw/PCW45-12345-12345-1234X/address/UK/NR147PZ
//
// This demo shows how to perform an address lookup and parse the results into C# objects.
@Taelkir
Taelkir / postcoder_example.vb
Last active Mar 13, 2019
Example code for using Postcoder in VB .NET. For more information on Postcoder visit https://postcoder.com
View postcoder_example.vb
' Postcoder example
' Allies Computing Ltd
'
' Demonstrates UK Address lookup rest web service
'
' Product URL: https://postcoder.com/
' Technical Specs: https://developers.alliescomputing.com/
' Example output: http://ws.postcoder.com/pcw/PCW45-12345-12345-1234X/address/UK/NR147PZ
'
' This demo shows how to perform an address lookup and parse the results into VB.Net objects.
@Taelkir
Taelkir / postcoder_example.py
Last active Mar 13, 2019
Example code for using Postcoder in Python. For more information on Postcoder, visit https://postcoder.com
View postcoder_example.py
# Postcoder Python example
# Allies Computing Ltd
#
# This demo shows how to perform an address lookup in Python.
#
import json
import urllib
searchkey = 'PCW45-12345-12345-1234X'; # Test search key, replace with your
@Taelkir
Taelkir / postcoder_example.rb
Created Mar 13, 2019
Example code for using Postcoder in Ruby. For more information on Postcoder visit https://postcoder.com
View postcoder_example.rb
# Postcoder Ruby example
# Allies Computing Ltd
#
# This demo shows how to perform an address lookup in ruby.
#
# Note: This script has been developed for ruby >= 1.9.3
#
require 'cgi'
require 'json'
@Taelkir
Taelkir / postcoder_example.java
Created Mar 13, 2019
Example code for using Postcoder in Java. For more information on Postcoder, visit https://postcoder.com
View postcoder_example.java
// Postcoder Java example
// Allies Computing Ltd
//
// Demonstrates UK Address lookup rest web service
//
// Product URL: https://postcoder.com
// Technical Specs: https://developers.alliescomputing.com
// Example output: http://ws.postcoder.com/pcw/PCW45-12345-12345-1234X/address/UK/NR147PZ
//
// This demo shows how to perform an address lookup and parse the results into Java objects.
@Taelkir
Taelkir / postcoder_example.php
Created Mar 13, 2019
Example code for using Postcoder in PHP. For more information on Postcoder, visit https://postcoder.com
View postcoder_example.php
<?php
/*
Postcoder example
Allies Computing Ltd
Demonstrates UK Address lookup rest web service
Product URL: https://postcoder.com
Technical Specs: https://developers.alliescomputing.com/postcoder-web-api/address-lookup/premise
Example output: http://ws.postcoder.com/pcw/PCW45-12345-12345-1234X/address/UK/NR147PZ
@Taelkir
Taelkir / fizzbuzz.js
Created May 17, 2018
JavaScript FizzBuzz
View fizzbuzz.js
/*
**
*** Came across this article during my learning JS travels : https://blog.codinghorror.com/why-cant-programmers-program/
*** Decided to have a go. Took about 15 minutes to get perfect.
*** I've been learning HTML/CSS/JS for a day each week for about 5 months.
**
*/
for (i = 0; i<100; i++) {
let toPrint = i+1;