This file contains hidden or 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 requests | |
| r = requests.get('[URL]') | |
| print(r.url) | |
| print(r.status_code) | 
  
    
      This file contains hidden or 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
    
  
  
    
  | #OddOccurrencesInArray | |
| def solution(A): | |
| ans = 0 | |
| for i in A: | |
| cnt = 0 | |
| for j in A: | |
| if j == i: | |
| cnt+=1 | |
| if cnt == 1: | 
  
    
      This file contains hidden or 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
    
  
  
    
  | def solution(A, K): | |
| for idx in range(K): | |
| last_item = A.pop() | |
| A.insert(0, last_item) | |
| return A | |
| if __name__ == "__main__": | |
| A = [0,0,0] | |
| K = 1 | 
  
    
      This file contains hidden or 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 random | |
| def solution(N): | |
| # write your code in Python 3.6 | |
| print("integer:" + str(N)) | |
| binStr = bin(N)[2:] | |
| print("binary:" + binStr) | |
| arr1 = [] | |
| for idx, value in enumerate(binStr): | |
| if value == "1": | 
  
    
      This file contains hidden or 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
    
  
  
    
  | from datetime import datetime, timedelta | |
| timedelta(days=1) | |
| timedelta(seconds=3) | |
| timedelta(hours=3) | |
| timedelta(weeks=3) | |
| print(datetime.now() - timedelta(hours=3)) # ํ์ฌ๋ณด๋ค 3์๊ฐ ์  | |
| #์ฐธ๊ณ ๋ก months ์ต์ ์ ์๊ณ ๋ฐ๋ก ์ ํธ๋ฆฌํฐ๋ฅผ ์ฌ์ฉํ๋๊ฐ ์์ ๋ฐ์ดํฐ๋ฅผ ์ด์ฉํด์ ๊ณ์ฐํด์ผ ํ๋ค | 
  
    
      This file contains hidden or 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
    
  
  
    
  | var arr = [-1, 11, 2, 5, 1, 6, 4, 10, 8, 9, 7]; | |
| var count = 0; | |
| var s_index = 0; | |
| var e_index = arr.length-1; | |
| var s_max = arr[s_index]; | |
| var e_max = arr[e_index]; | |
| var max = 0; | |
| for (var i = 1; i<arr.length; i++) { | |
| count++; | 
  
    
      This file contains hidden or 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
    
  
  
    
  | $pyenv install -list | |
| $pyenv install 3.4.3 | |
| $pyenv virtualenv 3.4.3 python_xlsxwriter | |
| $pyenv versions | |
| $pyenv local python_xlsxwriter | |
  
    
      This file contains hidden or 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
    
  
  
    
  | //html | |
| <input type="text" placeholder="Your Name" /> | |
| //js | |
| $('[placeholder]').focus(function(){ | |
| var input = $(this); | |
| if(input.val() == input.attr('placeholder')) { | |
| input.val(''); | |
| input.removeClass('placeholder'); | |
| } | |
| }).blur(function(){ | 
  
    
      This file contains hidden or 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
    
  
  
    
  | <input type="tel" value="์ซ์ ํจ๋๋ง ๋์์"> | 
  
    
      This file contains hidden or 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
    
  
  
    
  | var getAge = function(yyyymmdd) { | |
| //REQUIRED: yyyymmdd ํ์ด๋ ์๋ ์์ผ์ด์์. ์) 19800205 | |
| var | |
| //๋ฆฌํดํ ๋ง ๋์ด | |
| age; | |
| var yyyy = parseInt(String(yyyymmdd).substring(0,4),10); | |
| var mmdd = String(yyyymmdd).substring(4,6) + String(yyyymmdd).substring(6,8); | 
NewerOlder