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
export function createZodSchema(schemaMap: Record<string, ModelField>) { | |
let schemaObject: { [key: string]: z.ZodTypeAny } = {}; | |
for (const key in schemaMap) { | |
const field = schemaMap[key]; | |
let baseType: z.ZodTypeAny; | |
if (typeof field.type === 'string') { | |
switch (field.type) { | |
case 'ID': | |
case 'String': | |
case 'AWSJSON': |
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 org.jenkinsci.plugins.plaincredentials.StringCredentials | |
import com.cloudbees.plugins.credentials.CredentialsProvider | |
import com.cloudbees.plugins.credentials.domains.DomainRequirement | |
import groovy.json.JsonBuilder | |
import jenkins.model.Jenkins | |
import hudson.model.Job | |
String jobName = "YourFolder/YourMultibranch/YourJob" | |
Job job = Jenkins.instance.getItemByFullName(jobName, Job.class) |
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 secrets | |
import ( | |
"context" | |
"github.com/aws/aws-sdk-go-v2/aws" | |
"github.com/aws/aws-sdk-go-v2/service/secretsmanager" | |
"github.com/propertybrands/btt-cloud-deployment-manager/internal/app" | |
) | |
var secretsManagerConnection *secretsmanager.Client |
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 x in $(find "$(pwd)/apis" -name '*.proto'); do | |
protoc -I /usr/local/include -I "$(pwd)"/apis \ | |
-I $GOPATH/src \ | |
--go_out=paths=source_relative,plugins=grpc:gen/go \ | |
--grpc-gateway_out=logtostderr=true:. "$x" | |
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
{ | |
"settings": { | |
"ldrc": { | |
/// Stuff | |
}, | |
"components": { | |
"MyComponent": { | |
/// Stuff | |
} | |
} |
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
/** | |
* Style overrides to unset hidden descriptions. | |
* Be wary of mobile and pushing other content down the page when | |
* leaving the description open. | |
*/ | |
.bt-details__description p { | |
max-height: none !important; | |
overflow: visible; | |
visibility: visible !important; | |
width: 100% !important; |
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
const merge = require('webpack-merge'); | |
const webpack = require('webpack'); | |
const prod = require('./webpack.prod'); | |
module.exports = merge(prod, { | |
plugins: [ | |
new webpack.DefinePlugin({ | |
foo: JSON.stringify('bar'), | |
someProps: JSON.stringify({ | |
one: 2, |
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
{"responseHeader":{"status":0,"QTime":2},"suggest":{"barSuggester":{"foo":{"numFound":3,"suggestions":[{"term":"Foo","weight":0,"payload":"Foo payload"},{"term":"FooDiddlyDoo","weight":0,"payload":"Bar payload"},{"term":"FooDiddlyDee","weight":0,"payload":"Baz payload"}]}}}} |
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
/* | |
Add a dependancy via Gradle: | |
dependencies { | |
compile 'createsend:createsend-java:5.1.0' | |
} | |
Or Maven: | |
<dependency> | |
<groupid>createsend-java</groupid> | |
<artifactid>createsend-java</artifactid> |
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
{ | |
"To": "Someone <someone@bluetent.com>", | |
"Data": { | |
"activities": [ | |
{ | |
"name": "My Activity Name", | |
"link": "https://www.explorie.com/some-link", | |
"image_url": "https://www.explorie.com/path/to/images/image.jpg" | |
}, | |
{ |
NewerOlder