View domo_negation_filter.md

Problem

Given a list of users and roles, display all users who do not have the admin role.

Existing Behavior

When an aggregation is performed in the card, it happens after the filter is applied. As a result, the row (1, admin) is filtered out, but the row (1, user) is not.

Needed Behavior

View complex.clj
(ns user
(:require [clj-time.core :as t]))
(defn- merge-time
[start m]
(apply hash-map (reduce concat (map (fn [x] [x (merge (x m) {:time (/ (t/in-millis (t/interval start (t/now))) 1000)})]) (keys m)))))
(def data {:first {:message "First message"
:success true}
:second {:message "Second message"
View example.md

table source

id first_value second_value
0 0 0
1 0 1
2 1 0
3 1 1

desired output

View gist:516346899bb516d2aa350953e4579136
class MyAPINotAvailable < StandardError
attr_accessor :message
def initialize(message)
@message = "Failed to connect to MyAPI: #{message}"
end
end
raise MyAPINotAvailable.new "Could not update Foo"
View gist:96977376ff5a743b737a3a30b607e6c8
class composable:
def __init__(self, func):
self.func = func
def __call__(self, *args, **kwargs):
return self.func(*args, **kwargs)
def __or__(self, other):
return lambda *args, **kwargs: self(other(*args, **kwargs))
View account_merge.py
from tests import factories
from website import models
from website.util import web_url_for
from main import app
def print_merge_url(user, token, prefix):
with app.test_request_context():
print(prefix + ": " +
web_url_for(
'confirm_email_get',
View keybase.md

Keybase proof

I hereby claim:

  • I am lyndsysimon on github.
  • I am lyndsysimon (https://keybase.io/lyndsysimon) on keybase.
  • I have a public key whose fingerprint is 2CFD 89F4 87BA 807C F755 8C16 3718 590D 7D1A 7ABF

To claim this, I am signing this object:

View temp.json
{
"tasks": [
{ "id": 1, "text": "my text 1" },
{ "id": 2, "text": "my text 2" },
{ "id": 3, "text": "my text 3" },
{ "id": 4, "text": "my text 4" }
]
}