Skip to content

Instantly share code, notes, and snippets.

View moomdate's full-sized avatar
🍋
~/.profile

moomdate moomdate

🍋
~/.profile
  • kanchanaburi
View GitHub Profile
@moomdate
moomdate / test2.java
Last active September 3, 2023 08:20
wtf test
package org.example;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.Stream;
public class Main {
@moomdate
moomdate / test.java
Created September 3, 2023 04:27
test.java
package org.example;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.Stream;
public class Main {
/*
* HTTP over TLS (HTTPS) example sketch
*
* This example demonstrates how to use
* WiFiClientSecure class to access HTTPS API.
* We fetch and display the status of
* esp8266/Arduino project continuous integration
* build.
*
* Created by Ivan Grokhotkov, 2015.
openapi: 3.0.1
info:
title: OpenAPI definition
version: v0
servers:
- url: http://localhost:8080/api
description: Generated server url
paths:
/update-location/{id}:
put:
@Data
@Entity
@Table(name = "student")
public class Student {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String name;
@moomdate
moomdate / studentAuto.java
Created September 11, 2022 05:26
auto id
@Data
@Entity
@Table(name = "student")
public class Student {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
private String name;
public class StudentService {
@Autowired
StudentRepository studentRepository;
public void saveStudent(){
final Student student = new Student();
student.setName("ABC Name");
student.setAge(15);
studentRepository.save(student);
package sha1;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;
public class Test2 {
package sha1;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
import java.util.stream.Collectors;
import static java.util.stream.Collectors.groupingBy;
@moomdate
moomdate / _select_support_wallet.js
Created October 23, 2021 07:04
select support wallet
const walletList = [
{
"coin": "1INCH",
"de": true,
"we": true,
"dh": false,
"wh": false,
"name": "1inch",
"isLegal": false,
"trading": true,