Skip to content

Instantly share code, notes, and snippets.

View Cubik65536's full-sized avatar
⚒️
Building

Qian Qian "Cubik"‎ Cubik65536

⚒️
Building
View GitHub Profile
@Cubik65536
Cubik65536 / merge-upstream.yml
Last active March 3, 2022 01:40
Scheduled Merge Remote Action
name: Scheduled Merge Remote Action
on:
push:
branches:
- master
- main
schedule:
- cron: '0 0 * * 1'
# scheduled for 00:00 every Monday
@Cubik65536
Cubik65536 / private_fork.md
Created January 25, 2023 01:24 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

@Cubik65536
Cubik65536 / message.asc
Created October 27, 2023 23:18
PGP Signature - Twitter Temporary Replacement Account Notice
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEd2dPHtObKpQW5piTyfJAWaqX26IFAmU8RLkACgkQyfJAWaqX
26L9ZQ/+JUrkExlSc5gTG8wPZDmXKyBkRtOa4FGesKGRAOSGawE1vTRuF3H+BWKF
kdooxW71Q/kZMihUMeuGFM/88HHMMsZ+5rAC5Gg2KR4yDMdPIgS2B2d1K/cWL/+y
fVo+JHHyMrLsHrmcDFpL/d4lbrVrG6Fz9j2+h03VgzMFD1K4M53bL/aNBdfjrc7c
fv3vv1Xat8rzWJvnvwkDWxLl+Y/apfjiz3UVHWZYx/WJOO46FS9QcFTzZcmnHcde
1ZQLs2VqA3aKt6SFq02bEv+iZGtg+UtxeamtnSJFpXMm8IRCh0jIN8E3/is3qPaE
BrPE2pvCgSg4tGYOaqFBzCT/T8afGBCbltNPjcVhMnNgb8uKPZJPAHAXeglGgxp1
ahzbiZqNEQZ+8rpuWW78PmIIiWB6CLNNG2WPwO+1zo6j/I87U/5cReMJj7VOxdgy
@Cubik65536
Cubik65536 / pgp-public-key.asc
Last active January 6, 2024 19:47
Cubik65536's PGP Public Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: User-ID: Cubik65536 <cubik65536@cubik65536.top>
Comment: a.k.a.: Qian Qian "Cubik" <me@cubik65536.top>
Comment: a.k.a.: Qian Qian "Cubik" <cubik65536@outlook.com>
Comment: a.k.a.: Qian Qian "Cubik" <cubik65536@outlook.it>
Comment: a.k.a.: Cubik65536 <cubik65536@proton.me>
Comment: Created: 9/29/23 2:43 PM
Comment: Type: 4,096-bit RSA (secret key available)
Comment: Usage: Signing, Encryption, Certifying User-IDs
Comment: Fingerprint: F9CBDDD99B6043914632B9D8DDB32000DDDF3D48
@Cubik65536
Cubik65536 / Main.java
Created February 25, 2024 00:29
An Interesting Problem #1
package org.qianq;
import java.util.ArrayList;
import java.util.InputMismatchException;
import java.util.Scanner;
/**
* An enum containing several brands of planes.
*/
enum PlaneBrands {
@Cubik65536
Cubik65536 / Main.java
Created March 18, 2024 13:21
AirlineManagementSystem
package org.qianq;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Scanner;
/**
* A company that has a name and a balance.
@Cubik65536
Cubik65536 / Main.java
Last active April 4, 2024 00:10
Linked List Exercise 2024-04-03
// 编写一个程序,维护一个有序链表。允许用户输入任意数量的想输入的整数,并将其插入链表,在插入的同时维持链表元素从小到大的排序。
package org.qianq;
import java.util.Scanner;
class Node {
int data;
Node next;
}
@Cubik65536
Cubik65536 / Main.java
Last active April 10, 2024 19:59
Basic Sorting in Java
package org.qianq.examples;
import java.util.ArrayList;
class BubbleSort {
/**
* 冒泡排序
* @param list 要排序的数组
*/
public static ArrayList<Integer> sort(ArrayList<Integer> list) {
@Cubik65536
Cubik65536 / Main.java
Last active May 7, 2024 15:21
Basic Searching in Java
package org.qianq.examples;
import java.util.ArrayList;
import java.util.Scanner;
class LinearSearch {
/**
* 线性搜索
* @param list 要搜索的数组
* @param target 要搜索的目标
@Cubik65536
Cubik65536 / Main.java
Created April 10, 2024 20:09
Merging in Java
import java.util.ArrayList;
import java.util.Collections;
public class Main {
/**
* 合并两个有序数组
* @param list1 第一个有序数组
* @param list2 第二个有序数组
* @return 合并后的有序数组
*/