Skip to content

Instantly share code, notes, and snippets.

View flurdy's full-sized avatar

Ivar Abrahamsen flurdy

View GitHub Profile
@flurdy
flurdy / cloudbuild.yaml
Last active March 17, 2023 13:02
Google Cloud Build with pseudo semver
steps:
- name: gcr.io/cloud-builders/git
args: ["fetch", "--unshallow"]
- name: gcr.io/cloud-builders/git
entrypoint: /bin/bash
args:
[
"-c",
"echo ${_MAJOR}.${_MINOR}.$(git rev-list --count ${BRANCH_NAME}) > ${_VERSION_FILE}",
]
@flurdy
flurdy / .circleci-config.yml
Created May 19, 2020 23:45
CircleCI SBT build upload to GCR
version: 2.1
orbs:
gcp-gcr: circleci/gcp-gcr@0.6.1
### Requires ENV VARS:
### IMAGE_NAME (E.g. github.com/myusername/myproject)
### IMAGE_BASE_VERSION (E.g. 1.0)
### GOOGLE_CLOUD_KEYS
### GOOGLE_PROJECT_ID
### GOOGLE_COMPUTE_ZONE

Online resources:

  • BrainPop
  • Curiosity Stream
  • Tynker
  • Outschool
  • Udemy
  • iReady
  • Beast Academy (Math)
  • Khan Academy (Offers courses based on school year)
  • Creative Bug
Online resources:
- BrainPop
- Curiosity Stream
- Tynker
- Outschool
- Udemy
- iReady
- Beast Academy (Math)
- Khan Academy
- Creative Bug
A slack policy:
For companies which size is beyond one office.
Slack channel naming convention:
Rename General to Announcement
(makes it more obvious it is not for stupid questions or replies.
And discourage most announcement)
@flurdy
flurdy / gist:286e4758bd9c71432bda
Created January 24, 2016 18:18
Boolean Fold in Scala
package object models {
implicit class BooleanFold(boolean: Boolean){
def fold[B](l: B)(r: B => B): B = if(boolean) r(l) else l
}
}

Keybase proof

I hereby claim:

  • I am flurdy on github.
  • I am flurdy (https://keybase.io/flurdy) on keybase.
  • I have a public key whose fingerprint is D1D8 03AA D03D F295 CF43 D2CB 8F77 8E05 674D DA98

To claim this, I am signing this object:

@flurdy
flurdy / whynotskype
Created February 20, 2015 14:29
Why not Skype as chat app at work
* Is distributed with no guarantee of message delivery
* Can delivery some messages to some and not to others
* Or severely delayed to some
* No guarantee of message order
* Does not have a web UI
* Has a shit messy UI
* No company directory lookup - must manually add everyone from global search
* Does not automatically remove people whom leave company from every rooms
* Does not automatically add new staff to company rooms
* No clear separation of work and private accounts
@flurdy
flurdy / heroku-slug-size-play-2
Created May 9, 2012 12:16
play 2.0 heroku slug size too large
Counting objects: 56, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (36/36), done.
Writing objects: 100% (38/38), 4.78 KiB, done.
Total 38 (delta 17), reused 0 (delta 0)
-----> Heroku receiving push
-----> Scala app detected
-----> Running: sbt clean compile stage
Getting net.java.dev.jna jna 3.2.3 ...