Skip to content

Instantly share code, notes, and snippets.

View Taelkir's full-sized avatar

Tove Taelkir

View GitHub Profile
@Taelkir
Taelkir / fizzbuzz.js
Created May 17, 2018 09:03
JavaScript FizzBuzz
/*
**
*** 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;
@Taelkir
Taelkir / postcoder_example.php
Created March 13, 2019 12:12
Example code for using Postcoder in PHP. For more information on Postcoder, visit https://postcoder.com
<?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 / postcoder_example.java
Created March 13, 2019 12:13
Example code for using Postcoder in Java. For more information on Postcoder, visit https://postcoder.com
// 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.rb
Created March 13, 2019 12:14
Example code for using Postcoder in Ruby. For more information on Postcoder visit https://postcoder.com
# 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.cs
Created March 13, 2019 12:19
Example code for using Postcoder in C#. For more information on Postcoder, visit https://postcoder.com/
// 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 March 13, 2019 12:21
Example code for using Postcoder in VB .NET. For more information on Postcoder visit https://postcoder.com
' 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 March 13, 2019 12:21
Example code for using Postcoder in Python. For more information on Postcoder, visit https://postcoder.com
# 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