This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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('/') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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"> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |