Skip to content

Instantly share code, notes, and snippets.

View jaykilleen's full-sized avatar

Jay Killeen jaykilleen

View GitHub Profile
@jaykilleen
jaykilleen / get_row_number.txt
Last active June 9, 2016 05:42
Excel VBA to get the row number where a value is found. Use as get_row_number
'Just copy the function below into a new module
'I usually call this module 'functions'
'You can then call anywhere in your scripts `get_row_number("dummy text", 1)
'The integer '1' will tell this to do a ctrl+f on column A
'When it finds the first value it will return the row number of that value
'Best used on columns that contain unique values
'You might need to change the xlPart to xlWhole if you are going for an exact match
'You could also extend this function to pass in a boolean to look for whole or partial value and replace xlPart with the value passed in
`checkout https://gist.github.com/jaykilleen/892d0f0eed87b9f8e6b0 for other functions that I like to add into my 'functions' module.
@jaykilleen
jaykilleen / devise_registrations_edit.html.erb
Last active July 27, 2016 12:58
Bootstrapping Devise Edit Registration View on Rails 4.2.0 with Bootstrap 3
<div class="container">
<div class="row">
<div class="col-sm-4 col-sm-offset-4">
<div class="light-well">
<h2 class="page-header text-center">Edit <%= resource_name.to_s.humanize %></h2>
<%= form_for resource, as: resource_name, url: registration_path(resource_name), html: { method: :put },
html: { class: "form-horizontal center"} do |f| %>
<div class="form-group">
@jaykilleen
jaykilleen / australian-postcodes.m
Last active December 20, 2018 02:56 — forked from randomecho/australian-postcodes.sql
Australian postcodes (with states and suburb names) geocoded with latitude and longitude.
This file has been truncated, but you can view the full file.
/*
Taken and cribbed from blog.datalicious.com/free-download-all-australian-postcodes-geocod
May contain errors where latitude and longitude are off. Use at own non-validated risk.
*/
let
Source = Table.FromList(
{
[ID="200",Name="Australian National University",State="ACT",Lat="-35.28",Long="149.12"],