Skip to content

Instantly share code, notes, and snippets.

"use strict";
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
// default font size in pixels for all tabs
@xianzheTM
xianzheTM / tekton-cleanup.yaml
Last active April 27, 2023 12:10 — forked from ctron/tekton-cleanup.yaml
Cleaning up Tekton pipeline runs
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: cleaner
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: cleaner
{
"project_items": [
{
"id": 22,
"company_id": null,
"full_name": "环坤行",
"simple_name": "环",
"alias_name": null,
"address": null,
"address_alias": null,
{
"project_items": [
{
"id": 22,
"company_id": null,
"full_name": "环坤行",
"simple_name": "环",
"alias_name": null,
"address": null,
"address_alias": null,
import java.util.Random;
/**
* @author YL
*/
class Producer extends Thread {
private Stack<Character> stack;
public Producer(String name, Stack<Character> stack) {
super(name);
@xianzheTM
xianzheTM / Hero.java
Created August 16, 2018 06:28
Thread
public class Hero{
public String name;
public float hp;
public int damage;
//回血
public void recover(){
hp=hp+1;
package collection;
import java.util.Arrays;
import java.util.List;
public class SortCompare {
public static void main(String[] args) {
//初始化随机数
int total = 40000;
@xianzheTM
xianzheTM / Node.java
Created August 12, 2018 17:29
中序遍历二叉树
package collection;
import java.util.ArrayList;
import java.util.List;
public class Node {
// 左子节点
public Node leftNode;
// 右子节点
public Node rightNode;
@xianzheTM
xianzheTM / ObjectCreate.java
Created August 12, 2018 17:29
create a class from model
import java.io.*;
import java.util.Scanner;
/**
* @author YL
*/
public class ObjectCreate {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
System.out.println("请输入类名:");
@xianzheTM
xianzheTM / FileTraverse.java
Created August 10, 2018 16:59
find the min and max file in dir
import java.io.File;
import java.util.Arrays;
import java.util.Comparator;
import java.util.TreeSet;
/**
* @author YL
*/
public class FileTraverse {
static File f = new File("D:\\test");