분류 썸네일형 리스트형 Font setting in ubuntu. 수아파파님 https://launchpad.net/~suapapa/+archive/ubuntukofonts 더보기 나의 .emacs in ubuntu (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(column-number-mode t) '(inhibit-startup-buffer-menu t) '(inhibit-startup-screen t) '(save-place t nil (saveplace)) '(scroll-bar-mode nil) '(show-paren-mode.. 더보기 Ubuntu Wireless 설정 sudo service network-manager stop sudo rm /var/lib/NetworkManager/NetworkManager.state sudo service network-manager startreference : http://ubuntuforums.org/showthread.php?t=1314747 더보기 [Problem 8] 연속되는 5자리의 곱중 최대값 # -*- coding: utf-8 -*- # 문제 : # http://projecteuler.net/index.php?section=problems&id=8 # 첫자리 숫자가 있다. 연속되는 5개의 곱이 가장 큰 값을 찾아보자 # # 접근 : # 두 가지 함수가 필요하다고 판단 # 1) 주어진 인덱스에서 연속 되는 5개의 값을 찾는 함수 # 2) 1에서 만들어진 5개의 값을 곱한 결과는 찾는 함수 # # 해결 : # 0부터 1000 - 4 까지 돌면서 연속된 5개의 숫자를 곱하며, # 최대값을 찾는다. # # s_bignum = ''' 73167176531330624919225119674426574742355349194934 9698352031277450632623957831801698480186947.. 더보기 SyntaxHighlighter 사용법 글이란 한번 쓰여지지만, 여러번 읽힌다. 그래서 읽는 이를 고려하여 읽기 편하게 만드는 것이 자기 글을 홍보하는 방법중에 하나가 아닐까. 블로그에서 사용하는 기능 중에 소스코드를 보기 편하게 해주는 SyntaxHighlighter 가 있다. 사용법 1. SyntaxHighlighter 설치 2. 소스를 등록할 때, 아래와 같이 소스를 감싼다. [소스코드] 언어: 원하는 syntax의 언어 gutter: false; -> 줄번호 제거 Brush nameBrush aliasesFile name ActionScript3 as3, actionscript3 shBrushAS3.js Bash/shell bash, shell shBrushBash.js ColdFusion cf, coldfusion shBrushCol.. 더보기 [Problem 6] 합의 제곱과 제곱의 합 차이 # -*- coding: utf-8 -*- # # 문제 : # http://projecteuler.net/index.php?section=problems&id=6 # 숫자가 1부터 100까지 있다. # 각 숫자의 합을 제곱한 결과에서 # 각 숫자 제곱을 합한 결과의 차이를 구하라. # # 접근 : # 두 가지 함수가 필요하다고 판단 # 1) 넘겨받은 파라메터까지 합한 결과의 제곱 # 2) 넘겨받은 파라메터까지 제곱값을 합한 결과 # # 해결 : # 각 함수에서 원한는 값을 주어 결과를 구하고, 그 차이를 출력한다. # # import sys # 제곱을 합한 결과 def sum_pow(num ): s = 0 for cnt in range(1,num): s = s + pow(cnt, 2) return s #.. 더보기 나의 .emacs (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(column-number-mode t) '(inhibit-startup-buffer-menu t) '(inhibit-startup-screen t) '(save-place t nil (saveplace)) '(scroll-bar-mode nil) '(show-paren-mode.. 더보기 [Problem 49]네자리 수의 등차소수 찾기 [EP 049] 네자리 소수가 만드는 등차수열 에서 나온 문제입니다. 접근하기 쉽지 않은 문제였지만, 해답을 보면서 큰 도움이 되었습니다. 직접 실행해본 결과 조건 하나가 맞지 않는다고 판단해서 다시 적용해 보았습니다. 코드가 좀 지저분해진거 같은데, 잘못된 점 찾아주시면 정말 감사하겠습니다. if set(str(p)) == set(str(q)): # this condition isn't quite exact def process(num): primes = [2, 3] cnt = 4 result = [] while cnt cnt: break if cnt % prime == 0: isPrime =.. 더보기 이전 1 ··· 20 21 22 23 24 다음