$ cue def ./repro.cue | cue eval -H -
_request: [
if _input.function != _|_ // explicit error (_|_ literal) in source
{
_input.function
}, _input.test][0]
_input: {}
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
go install github.com/crossplane-contrib/function-cue/cmd/fn-cue-tools@v0.3.0 | |
fn-cue-tools cue-test --test-dir ./tests/ ./implementation/ | |
-- implementation/init.cue -- | |
package implementation | |
#request: {...} | |
composite: #request.observed.composite.resource | |
compName: composite.metadata.name |
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
go install github.com/crossplane-contrib/function-cue/cmd/fn-cue-tools@v0.3.0 | |
mkdir -p zz_generated/scripts | |
fn-cue-tools package-script ./implementation --pkg scripts --var replicatedmap >zz_generated/scripts/file-to-avoid.cue | |
cue eval ./definition --out yaml | |
-- cue.mod/module.cue -- | |
module: "cue-functions.io/examples/simple" | |
language: version: "v0.9.0" | |
-- definition/composition.cue -- |
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
go install github.com/crossplane-contrib/function-cue/cmd/fn-cue-tools@v0.3.0 | |
mkdir -p zz_generated/schemas | |
fn-cue-tools openapi --pkg schemas ./api/ >zz_generated/schemas/generated-schema-to-avoid.cue | |
cue eval ./xrd --out yaml | |
-- api/api.cue -- | |
package api | |
// A config map that is replicated to multiple namespaces | |
#ReplicatedMapV1alpha1: { |
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 React, { useState } from 'react'; | |
import { View, TextInput, Button, Alert } from 'react-native'; | |
import axios from 'axios'; | |
import AsyncStorage from '@react-native-async-storage/async-storage'; | |
const API_URL = 'http://your-api-url.com'; | |
const LoginScreen = ({ navigation }) => { | |
const [username, setUsername] = useState(''); | |
const [password, setPassword] = useState(''); |
I hereby claim:
- I am gotwarlost on github.
- I am gotwarlost (https://keybase.io/gotwarlost) on keybase.
- I have a public key ASDTOp3wUGccqvyJG00asKwBbK8oYjIllJmWFvyYsipcawo
To claim this, I am signing this object:
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
#!/bin/bash | |
for i in {20..50} | |
do | |
echo === | |
echo $i | |
echo === | |
go run create-lint-problems.go $i | |
time jsonnet-lint caller.jsonnet | |
done |
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
package main | |
import ( | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/tls" | |
"crypto/x509" | |
"crypto/x509/pkix" | |
"encoding/pem" | |
"fmt" |
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
module cd.splunkdev.com/kanantheswaran/podwatch | |
go 1.13 | |
require ( | |
github.com/gogo/protobuf v1.3.1 // indirect | |
github.com/googleapis/gnostic v0.3.1 // indirect | |
github.com/hashicorp/golang-lru v0.5.3 // indirect | |
github.com/imdario/mergo v0.3.8 // indirect | |
github.com/json-iterator/go v1.1.7 // indirect |
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
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: twosvcports | |
labels: | |
istio-injection: enabled | |
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: |
NewerOlder