Skip to content

Instantly share code, notes, and snippets.

View AndersonChoi's full-sized avatar
🇰🇷
안녕하세요

AndersonChoi AndersonChoi

🇰🇷
안녕하세요
View GitHub Profile
public class Person {
private final string name;
private final string blood;
private final int age;
private final int hairColor;
public static class Builder {
private final string name;
private final string blood;
private int age;
private int hairColor;
public class Person {
private final string name;
private final string blood;
private final int age;
private final int hairColor;
public Person(string name, string blood) {
this(name, blood, 0, 0);
}
public Person(string name, string blood, int age) {
this(name, blood, age, 0);
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle("종료 확인 대화 상자") .setMessage("앱을 종료 하시 겠습니까?").setCancelable(true)
.setPositiveButton("확인",new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,int whichButton) {
finish();
}
}
).setNegativeButton("취소",new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,int whichButton) {
dialog.cancel();
# -*- coding: utf-8 -*-
import os
import datetime
from flask import Flask, request, jsonify,url_for, send_from_directory
app = Flask(__name__)
global_temperature = 0
date_time = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
@app.route('/')
<!DOCTYPE html>
<html>
<head>
<title>Python Flask Starter Application</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
#include <SPI.h>
#include <WiFi.h>
#include <dht11.h>
dht11 DHT;
#define DHT11_PIN 4
char ssid[] = "coalamovement"; // your network SSID (name)
char pass[] = "11111111"; // your network password
int keyIndex = 0; // your network key Index number (needed only for WEP)
# -*- coding: utf-8 -*-
import os
from flask import Flask,request, jsonify
app = Flask(__name__)
@app.route('/')
def Welcome():
return app.send_static_file('index.html')
# Copyright 2015 IBM Corp. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
public class eleccar {
public static int[][] matrix;
public static int[][] arrayMatrix;
import java.util.Scanner;
import java.util.*;
public class Main {
static ArrayList<Route> aList = new ArrayList<Route>();
public static void main(String[] args) {
// https://www.acmicpc.net/problem/11403