I hereby claim:
- I am pauldambra on github.
- I am pauldambra (https://keybase.io/pauldambra) on keybase.
- I have a public key ASAYR6eRH7elrx4m5_M8YzzJBQ4WF5ZLeisyF2tBxz8RPgo
To claim this, I am signing this object:
using System.Collections.Generic; | |
using System.Linq; | |
namespace CodeReviewExercise | |
{ | |
using System; | |
using Serilog; | |
public class Customer | |
{ |
defmodule Checkout do | |
defstruct [ | |
basket: %{A: 0, B: 0, C: 0, D: 0} | |
] | |
def scan(checkout, code) do | |
new_value = checkout.basket[code] + 1 | |
%{checkout | basket: Map.put(checkout.basket, code, new_value)} | |
end |
public class WhenContentWasAlreadyPublished : TestKit, ILoadUmbracoNodes, IPublishUmbracoContent | |
{ | |
private IContent _content; | |
private IContent _publishedContent; | |
private bool _publishContentCalled; | |
[Fact] | |
public void ItPublishesWhenAsked() | |
{ | |
var publisherProps = UmbracoAdmin.ContentPublishing.NodePublisher.Props(this, this); |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace NCrunch.Framework | |
{ | |
public abstract class ResourceUsageAttribute : Attribute | |
{ |
public class Command {} | |
public class GetStockCommand("name", 10M) : Command { | |
//set properties | |
DateAdded = DateTime.now; | |
} | |
public interface IHandle<Command, TResult> | |
{ | |
TResult Handle(Command command); | |
} |
private static final Splitter newlineSplitter = Splitter.on(Pattern.compile("\r?\n")); | |
private static final Splitter spaceSplitter = Splitter.on(CharMatcher.whitespace()).omitEmptyStrings(); | |
Map<String, String> substitutions = newlineSplitter | |
.splitToList(text) | |
.stream() | |
.map(spaceSplitter::splitToList) | |
.filter(r -> r.size() != 0) | |
.collect(Collectors.toMap( | |
ss -> ss.get(0), |
I hereby claim:
To claim this, I am signing this object:
// ==UserScript== | |
// @name Fade Twitter | |
// @namespace http://tampermonkey.net/ | |
// @version 0.3 | |
// @description fades twitter over time and by scrolling to protect me from myself | |
// @author You | |
// @match https://twitter.com/* | |
// @grant none | |
// ==/UserScript== |
import * as cdk from "aws-cdk-lib"; | |
import * as cloudfront from "aws-cdk-lib/aws-cloudfront"; | |
import * as cloudfront_origins from "aws-cdk-lib/aws-cloudfront-origins"; | |
import { Construct } from "constructs"; | |
// created by PostHog user CJ Enright | |
// shared in our community slack https://posthogusers.slack.com/archives/CTLTM70RM/p1657732914776719 | |
// many thanks to them 🙌💖 | |
export class PostHogProxy extends cdk.Stack { | |
constructor(scope: Construct, id: string) { |
import dataclasses | |
import re | |
from typing import List, Optional | |
file_links: List[str] = [ | |
# laziness here - regenerate with `grep '(import.*insight.*)' ./frontend/src -Er --include="*.ts*" --exclude="*test.ts*" --exclude="*type.ts" --exclude="*stories.tsx"` | |
"./frontend/src/scenes/insights/filters/FunnelExclusionsFilter.tsx:import { ActionFilter } from 'scenes/insights/filters/ActionFilter/ActionFilter'", | |
"./frontend/src/scenes/insights/filters/FunnelExclusionsFilter.tsx:import { insightLogic } from 'scenes/insights/insightLogic'", | |
"./frontend/src/scenes/insights/filters/FunnelExclusionsFilter.tsx:import { MathAvailability } from 'scenes/insights/filters/ActionFilter/ActionFilterRow/ActionFilterRow'", | |
"./frontend/src/scenes/insights/filters/PathCleaningFilter.tsx:import { insightLogic } from 'scenes/insights/insightLogic'", |