Skip to content

Instantly share code, notes, and snippets.

View ClearNB's full-sized avatar
😀
Enjoying Web Design!

ClearNB(CLEAR STUDIOS.) ClearNB

😀
Enjoying Web Design!
View GitHub Profile
@ClearNB
ClearNB / apdb.sql
Last active February 24, 2023 01:48
APDB server setup code
-- phpMyAdmin SQL Dump
-- version 4.9.7
-- https://www.phpmyadmin.net/
--
-- ホスト: localhost:3306
-- 生成日時: 2023 年 2 月 23 日 18:47
-- サーバのバージョン: 5.7.23-23
-- PHP のバージョン: 7.4.33
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
@ClearNB
ClearNB / setup.sh
Last active July 30, 2021 04:09
[Project GSC] Virtual Control Setup & Installer (v 0.6.0) for Ubuntu Linux 20.0.4 LTS
########################################
# Project GSC - Setup Module (v 0.6.0) #
# For Virtual Control #
########################################
# 【説明】 #
# ・本スクリプトの実行により、SNMP監視 #
# システム「Virtual Control」の環境 #
# を導入します。 #
########################################
@ClearNB
ClearNB / testTrap.java
Created July 7, 2020 05:59
testTrap.java
import org.snmp4j.*;
import org.snmp4j.mp.SnmpConstants;
import org.snmp4j.smi.*;
import org.snmp4j.transport.DefaultUdpTransportMapping;
import java.io.IOException;
import java.net.UnknownHostException;
import java.util.Objects;
import java.util.Scanner;
import java.net.Inet4Address;
class testTrap {
@ClearNB
ClearNB / goProgram.go
Last active June 2, 2020 06:17
MyPointTester.go
package main
import "fmt"
//構造体 MyPoint
type MyPoint struct {
x int
y int
}
@ClearNB
ClearNB / Solution.java
Created May 1, 2019 00:56
Coded triangle numbers (Java 8 ver) Sample by ClearNB
import java.util.Scanner;
public class Solution {
private static long getTriangle(long num) {
long n = (long) Math.sqrt(2 * num);
long check = n * (n + 1) / 2;
if(num == check) {
return n;
} else {
@ClearNB
ClearNB / Solution.java
Created April 22, 2019 10:57
Radix Conversion Question - Random Converter (Java 8 ver) Coded By ClearNB
import java.util.Random;
import java.util.Scanner;
public class Solution {
//Supported Language: Japanese
//Coded by ClearNB(CLEAR STUDIOS.)
//Website: https://clearstudios.weebly.com
//Twitter: @ClearNb
@ClearNB
ClearNB / Solution.java
Last active April 5, 2019 00:27
Pandigital prime (Java 8 ver) Sample by ClearNB
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
import java.util.Set;
import java.util.TreeSet;
public class Solution {
public static boolean nextPermutation(char[] array) {
for(int i = array.length - 1; i > 0; i--) {
@ClearNB
ClearNB / Solution.java
Created April 4, 2019 09:20
Champernowne's constant (Java 8 ver) Sample by ClearNB
import java.util.Scanner;
public class Solution {
private static int getDigit(long x) {
int digits = 1;
long range = 9;
long first = 1;
long skip = 0;
while(skip + digits * range < x) {
@ClearNB
ClearNB / Solution.java
Last active April 3, 2019 06:46
Integer right triangles (Java 8 ver) Pre-Sample2 by ClearNB
import java.util.Scanner;
public class Solution {
// Supported Language: Japanese (日本語)
// Coded by ClearNB (CLEAR STUDIOS.)
// Website: https://clearstudios.weebly.com/
// Programming Language: Java 8 (JDK 1.8.0_201)
public static void main(String[] args) {
@ClearNB
ClearNB / Solution.java
Last active April 3, 2019 06:19
Integer right triangles (Java 8 ver) Pre-Sample by ClearNB (Age match game - binary searching)
import java.util.Scanner;
public class Solution {
// Supported Language: Japanese (日本語)
// Coded by ClearNB (CLEAR STUDIOS.)
// Website: https://clearstudios.weebly.com/
// Programming Language: Java 8 (JDK 1.8.0_201)
public static void main(String[] args) {