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
``` | |
Serial port /dev/cu.usbserial-0001 | |
Connecting...................................... | |
A fatal error occurred: Failed to connect to ESP32: Wrong boot mode detected (0x13)! The chip needs to be in download mode. | |
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html | |
선택돤 시리얼 포트For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.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
[{"idDrink": "14029", "strDrink": "'57 Chevy with a White License Plate", "strVideo": null, "strCategory": "Cocktail", "strIBA": null, "strAlcoholic": "Alcoholic", "strGlass": "Highball glass", "strInstructions": "1. Fill a rocks glass with ice 2.add white creme de cacao and vodka 3.stir", "strDrinkThumb": "https://www.thecocktaildb.com/images/media/drink/qyyvtu1468878544.jpg", "strIngredient1": "Creme de Cacao", "strIngredient2": "Vodka", "strIngredient3": "", "strIngredient4": "", "strIngredient5": "", "strIngredient6": "", "strIngredient7": "", "strIngredient8": "", "strIngredient9": "", "strIngredient10": "", "strIngredient11": "", "strIngredient12": "", "strIngredient13": "", "strIngredient14": "", "strIngredient15": "", "strMeasure1": "1 oz white ", "strMeasure2": "1 oz ", "strMeasure3": " ", "strMeasure4": " ", "strMeasure5": " ", "strMeasure6": " ", "strMeasure7": " ", "strMeasure8": "", "strMeasure9": "", "strMeasure10": "", "strMeasure11": "", "strMeasure12": "", "strMeasure13": "", "strMeasure14": |
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
class Test { | |
fun testFunc(view: WebView, url: String): Boolean { | |
println("hi!") | |
for(i in 0..10) { | |
println("*") | |
} | |
} | |
fun testFunc2(view: WebView?, url: String): Boolean { | |
println("hi!") |
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
CompositeDisposable disposable = new CompositeDisposable(); | |
disposable.add( | |
Observable.just("hi").delay(1000, TimeUnit.MILLISECONDS).subscribe(data -> System.out.println("hi")) | |
); | |
disposable.dispose(); | |
disposable.add( | |
Observable.just("hi").delay(1000, TimeUnit.MILLISECONDS).subscribe(data -> System.out.println("hi")) |
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
class Solution { | |
public Solution() { | |
} | |
public int[][] markMine(int n, int[][] map) { |
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 final class FlingBehavior extends AppBarLayout.Behavior { | |
private boolean isPositive; | |
private float mFlingFriction = ViewConfiguration.getScrollFriction(); | |
private float DECELERATION_RATE = (float) (Math.log(0.78) / Math.log(0.9)); | |
private final float INFLEXION = 0.35f; | |
private float mPhysicalCoeff; |
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 -*- | |
from flask import Flask, request, make_response, Response | |
from flask import jsonify | |
import os | |
import json | |
import requests | |
from slackclient import SlackClient |
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
#db dump script | |
#ex) mysqldump -uroopt -p1234 db > "dbbackup_$(date '+%Y-%m-%d').sql" | |
#result : dbbackup_2017-04-18.sql | |
mysqldump -uID -pPW DBNAME > "dbbackup_$(date '+%Y-%m-%d').sql" | |
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
class DictDiffer(object): | |
def __init__(self, past_dict, current_dict): | |
self.current_dict, self.past_dict = current_dict, past_dict | |
self.set_current, self.set_past = set(current_dict.keys()), set(past_dict.keys()) | |
self.intersect = self.set_current.intersection(self.set_past) | |
def added(self): | |
return self.set_current - self.intersect | |
def removed(self): |
NewerOlder