Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Ian Ker-Seymer ianks

🏠
Working from home
Block or report user

Report or block ianks

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ianks
ianks / current-lead-source-analysis.md
Created Apr 21, 2020
Current Lead Source Analysis
View current-lead-source-analysis.md

Current Values

leadSource Count
"" 892
Direct 4939
Directory 1063
Friends and Family 1
Google Ad Words 2
Google PPC 7233
View ff-pixel-update.md

On all of the FF websites, we currently have a pixel installed with this code:

<script src="https://cdn.flooringstores.com/js/floorforce-analytics.min.js"></script>

It needs to be replaced with this new code, so it points to the new home of the pixel:

<script src="https://www.floorlytics.broadlu.me/floorforce/scitylana.min.js"></script>
View tty_markdown_highlight_bug.rb
require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem 'tty-markdown'
end
print TTY::Markdown.parse <<~MSG
```ruby
def test
View Gemfile
# frozen_string_literal: true
source "https://rubygems.org"
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
# gem "rails"
gem "puma", "~> 3.12"
gem "guard-puma", "~> 0.5.0"
@ianks
ianks / docker-compose.yml
Last active Jun 6, 2018
Threads in google-cloud-pubsub
View docker-compose.yml
---
version: '3.6'
services:
pubsub:
image: adhawk/google-pubsub-emulator
ports:
- 8085:8085
@ianks
ianks / slugify.sql
Last active May 13, 2020
Generating Slugs in Postgres
View slugify.sql
CREATE EXTENSION IF NOT EXISTS "unaccent";
CREATE OR REPLACE FUNCTION slugify("value" TEXT)
RETURNS TEXT AS $$
-- removes accents (diacritic signs) from a given string --
WITH "unaccented" AS (
SELECT unaccent("value") AS "value"
),
-- lowercases the string
"lowercase" AS (
View keybase.md

Keybase proof

I hereby claim:

  • I am ianks on github.
  • I am ianks (https://keybase.io/ianks) on keybase.
  • I have a public key whose fingerprint is 7E9D 6E06 C304 B6F3 9E18 C44B 5973 1153 87DF BE93

To claim this, I am signing this object:

View Gemfile
source 'https://rubygems.org'
gem 'curb'
@ianks
ianks / Gemfile
Created Sep 7, 2017
Gemfile.lock
View Gemfile
source 'https://rubygems.org'
gem 'curb'
View nullable.ts
function maybePrint(x?: string) {
if (x != null) {
// we know that x will be a string in this scope
console.log(x);
}
}
You can’t perform that action at this time.