🏃♂️
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// BluetoothCentral.swift | |
// | |
// Created by Johan Lindskogen on 2019-06-16. | |
// Copyright © 2019 Johan Lindskogen. All rights reserved. | |
// | |
import SwiftUI | |
import CoreBluetooth | |
import Combine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type ExtractKeysByValueType<O, V> = { | |
[P in keyof O]: O[P] extends V ? P : never; | |
}[keyof O] | |
type PickByValueType<O, V> = Pick<O, ExtractKeysByValueType<O, V>> | |
type OmitByValueType<O, V> = Omit<O, ExtractKeysByValueType<O, V>> | |
// Usage: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env LC_ALL=en_US.UTF-8 /usr/local/bin/python3 | |
# | |
# <bitbar.title>Pollenkoll</bitbar.title> | |
# <bitbar.version>v0.2</bitbar.version> | |
# <bitbar.author>lindskogen</bitbar.author> | |
# <bitbar.author.github>lindskogen</bitbar.author.github> | |
# <bitbar.desc></bitbar.desc> | |
# <bitbar.image></bitbar.image> | |
# <bitbar.dependencies>python</bitbar.dependencies> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env deno run --quiet --no-check --allow-net=dev.azure.com --allow-run --allow-env=AZURE_DEVOPS_READ_WORK_ITEMS_TOKEN | |
import * as Colors from "https://deno.land/[email protected]/fmt/colors.ts"; | |
import { DOMParser } from "https://deno.land/x/deno_dom/deno-dom-wasm.ts"; | |
const prefix = Deno.args[0] ?? "feature"; | |
const ids_query = | |
"SELECT [System.Id] FROM workitems WHERE [System.TeamProject] = @project AND [System.State] <> 'Ready for test' AND [System.State] <> 'Parked' AND [System.State] <> 'Removed' AND [System.State] <> 'Tested OK' AND [System.State] <> 'Done' AND [System.AssignedTo] = @me"; | |
const organizationName = "x"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ActionMatchingPattern } from '@redux-saga/types'; | |
import { ActionPattern, delay, fork, race, take } from 'redux-saga/effects'; | |
export const bufferTime = <P extends ActionPattern, A extends ActionMatchingPattern<P>>( | |
ms: number, | |
pattern: P, | |
worker: (action: A) => any, | |
mergeFn: (a1: A, a2: A) => A, | |
) => | |
fork(function* () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Place in ~/.config/wezterm/wezterm.lua | |
local wezterm = require 'wezterm' | |
local act = wezterm.action | |
local config = wezterm.config_builder() | |
config.set_environment_variables = { | |
PATH = '/opt/homebrew/bin:' .. os.getenv('PATH') | |
} | |
local font_family = "MonoLisa" |
OlderNewer