Skip to content

Instantly share code, notes, and snippets.

View ake-persson's full-sized avatar

Åke Persson ake-persson

  • Utopia Music AG
  • Stockholm
View GitHub Profile
@ake-persson
ake-persson / boolean-filter.js
Created August 17, 2017 17:13
Angular boolean filter
angular
.module("app.filters", [])
.filter("booleanSearch", booleanSearch)
function booleanSearch() {
return function(rows, search, fields) {
if (typeof search === "undefined") {
return rows;
}
@husobee
husobee / scanval.go
Last active December 16, 2022 18:44
scanner valuer example
package main
import (
"database/sql"
"database/sql/driver"
"errors"
"fmt"
_ "github.com/mattn/go-sqlite3"
)