Skip to content

Instantly share code, notes, and snippets.

View krainboltgreene's full-sized avatar
🏠
Working from home

Kurtis Rainbolt-Greene krainboltgreene

🏠
Working from home
View GitHub Profile
module ActiveRecordStructuralOrAddition
def or!(other) # :nodoc:
raise
incompatible_values = structurally_incompatible_values_for_or(other)
unless incompatible_values.empty?
raise ArgumentError, "Relations passed to #or must be structurally compatible. Incompatible values: #{incompatible_values}"
end
self.where_clause = self.where_clause.or(other.where_clause)
self.having_clause = having_clause.or(other.having_clause)
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = tapeToJest;
var _imports = require("../utils/imports");
var _consts = require("../utils/consts");
get('hello')(new Map([['hello', 'world']]))
get('hello')({hello: 'world'})
get('hello')({goodbye: 'world'})
get(0)(['hello world'])
get(0)('hello world')
get(0)(null)
get(0)(undefined)
const {upTo} = require("@unction/complete")
const {length} = require("@unction/complete")
const {reverse} = require("@unction/complete")
const {shuffle} = require("@unction/complete")
const {sample} = require("@unction/complete")
const {reduceKeys} = require("@unction/complete")
const {reduceWithValueKey} = require("@unction/complete")
const {mapValues} = require("@unction/complete")
const {last} = require("@unction/complete")
const {first} = require("@unction/complete")
const chunk =
(maximum) =>
(list) =>
reduceWithValueKey(
(accumulated) =>
(item) =>
(index) => {
const [latestChunk, ...previousChunks] = accumulated;
if ((length(latestChunk) !== maximum) && (length(list) === index + 1)) {
{
"Abbreviations": [{
"det": "determiner",
"n": "noun",
"vi": "intransitive",
"vt": "transitive",
"vs": "stative",
"ex": "example"
}],
"Pronouns": [{
{
"presets": [
"@babel/preset-typescript",
"@babel/env",
"minify"
],
"plugins": [
["module-resolver", {"alias": {"^@types/(.+)$": "./types/\\1"}}],
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-proposal-object-rest-spread"
require "highline"
class RenderingEngine < Concurrent::Actor::Context
attr_reader :search
attr_reader :terminal
attr_reader :previous
attr_reader :current
def initialize()
@search = SearchEngine.spawn(:search)
E0324 19:04:43.304806 1 reflector.go:134] github.com/prometheus/prometheus/discovery/kubernetes/kubernetes.go:282: Failed to list *v1.Pod: pods is forbidden: User "system:serviceaccount:default:promtail" cannot list pods at the cluster scope
level=debug ts=2019-03-24T19:04:49.135627749Z caller=filetargetmanager.go:130 msg="new target" labels="{__address__=\"10.32.0.4\", __meta_kubernetes_pod_container_name=\"fluentd-gcp\"}"
level=debug ts=2019-03-24T19:04:49.138892921Z caller=filetargetmanager.go:144 msg="ignoring target, wrong host" labels="{__address__=\"10.32.0.4\", __host__=\"gke-primary-production-default-pool-a94f2735-037l\", __meta_kubernetes_namespace=\"kube-system\", __meta_kubernetes_pod_annotation_scheduler_alpha_kubernetes_io_critical_pod=\"\", __meta_kubernetes_pod_container_name=\"fluentd-gcp\", __meta_kubernetes_pod_controller_kind=\"DaemonSet\", __meta_kubernetes_pod_controller_name=\"fluentd-gcp-v3.2.0\", __meta_kubernetes_pod_host_ip=\"10.138.0.13\", __meta_kubernetes_pod_ip=\"10.32.0.
-~[
- ~{
- "attributes" => ~{
- "confidentality-status" => "white",
- "pod" => "global"
- }
- }
-]
+[]