{{ post.title }}
10 |{{ post.text|linebreaks }}
11 |├── iOS
├── Swift.md
├── 02_storyboard.md
└── 01_xcode_fundamental.md
├── .gitignore
├── Python
├── Django
│ ├── source
│ │ └── django_girls_blog_tutorial
│ │ │ ├── blog
│ │ │ ├── __init__.py
│ │ │ ├── migrations
│ │ │ │ ├── __init__.py
│ │ │ │ ├── 0002_post_nothing.py
│ │ │ │ └── 0001_initial.py
│ │ │ ├── tests.py
│ │ │ ├── apps.py
│ │ │ ├── admin.py
│ │ │ ├── forms.py
│ │ │ ├── templates
│ │ │ │ └── blog
│ │ │ │ │ ├── post_edit.html
│ │ │ │ │ ├── post_list.html
│ │ │ │ │ ├── post_detail.html
│ │ │ │ │ └── base.html
│ │ │ ├── urls.py
│ │ │ ├── models.py
│ │ │ ├── static
│ │ │ │ └── css
│ │ │ │ │ └── blog.css
│ │ │ └── views.py
│ │ │ ├── mysite
│ │ │ ├── __init__.py
│ │ │ ├── wsgi.py
│ │ │ └── urls.py
│ │ │ ├── README.md
│ │ │ ├── db.sqlite3
│ │ │ ├── static
│ │ │ └── admin
│ │ │ │ ├── fonts
│ │ │ │ ├── README.txt
│ │ │ │ ├── Roboto-Bold-webfont.woff
│ │ │ │ ├── Roboto-Light-webfont.woff
│ │ │ │ └── Roboto-Regular-webfont.woff
│ │ │ │ ├── img
│ │ │ │ ├── tooltag-arrowright.svg
│ │ │ │ ├── README.txt
│ │ │ │ ├── tooltag-add.svg
│ │ │ │ ├── icon-addlink.svg
│ │ │ │ ├── icon-changelink.svg
│ │ │ │ ├── icon-deletelink.svg
│ │ │ │ ├── icon-yes.svg
│ │ │ │ ├── search.svg
│ │ │ │ ├── icon-alert.svg
│ │ │ │ ├── icon-no.svg
│ │ │ │ ├── inline-delete.svg
│ │ │ │ ├── icon-unknown.svg
│ │ │ │ ├── icon-unknown-alt.svg
│ │ │ │ ├── icon-clock.svg
│ │ │ │ ├── gis
│ │ │ │ │ ├── move_vertex_off.svg
│ │ │ │ │ └── move_vertex_on.svg
│ │ │ │ ├── icon-calendar.svg
│ │ │ │ ├── calendar-icons.svg
│ │ │ │ ├── LICENSE
│ │ │ │ └── sorting-icons.svg
│ │ │ │ ├── js
│ │ │ │ ├── prepopulate.min.js
│ │ │ │ ├── jquery.init.js
│ │ │ │ ├── collapse.min.js
│ │ │ │ ├── vendor
│ │ │ │ │ ├── xregexp
│ │ │ │ │ │ └── LICENSE-XREGEXP.txt
│ │ │ │ │ └── jquery
│ │ │ │ │ │ └── LICENSE-JQUERY.txt
│ │ │ │ ├── collapse.js
│ │ │ │ └── prepopulate.js
│ │ │ │ └── css
│ │ │ │ ├── fonts.css
│ │ │ │ ├── dashboard.css
│ │ │ │ └── login.css
│ │ │ └── manage.py
│ └── 010_image_file.md
├── codewars
│ ├── 046_recursive_reverse_string.md
│ ├── 057_find_employee_role.md
│ ├── 054_build_a_pile_of_cubes.md
│ ├── 028_where_my_anagrams_at.md
│ ├── 041_least_common_multiple.md
│ ├── 058_multiplication_tables.md
│ ├── 061_linkedlist_01.md
│ ├── 056_playing_with_digits.md
│ ├── 010_narcissistic_number.md
│ ├── 007_vowel_count.md
│ ├── 055_double_cola.md
│ ├── 002_square_digits.md
│ ├── 052_function_iteration.md
│ ├── 014_feynman_square_question.md
│ ├── 015_lambda_open_closed_principle.md
│ ├── 063_linkedlist_03.md
│ ├── 040_common_denominators.md
│ ├── 059_take_a_ten_minute_walk.md
│ ├── 021_trailing_zeros.md
│ ├── 004_what_dominates_your_array.md
│ ├── 013_digital_root.md
│ ├── 006_you_are_a_square.md
│ ├── 039_rgb_to_hex_conversion.md
│ ├── 053_regex_validate_pin_code.md
│ ├── 038_convert_camel_snake.md
│ ├── 064_linkedlist_04.md
│ ├── 051_pete_the_baker.md
│ ├── 008_sequence_sum.md
│ ├── 026_counting_duplicates.md
│ ├── 020_camel_case.md
│ ├── 049_WeIrD_StRiNg_CaSe.md
│ ├── 017_sum_of_many_ints.md
│ ├── 050_format_a_string_of_names.md
│ ├── 016_castle_grayskull.md
│ ├── 045_explosive_sum.md
│ ├── 044_strip_url_params.md
│ ├── 001_filter_the_number.md
│ ├── 024_nesting_structure_comparison.md
│ ├── 009_linked_lists-get_nth_node.md
│ ├── 012_title_case.md
│ ├── 048_pagination_helper.md
│ ├── 034_find_the_parity_outlier.md
│ ├── 060_dont_eat_the_last_cake.md
│ ├── 018_order_weight.md
│ ├── 037_metric_units_1.md
│ ├── 042_get_perfect_power.md
│ ├── 062_linkedlist_02.md
│ ├── 047_evil_autocorrect_prank.md
│ └── 005_find_the_longest_gap.md
├── spyder.md
├── argparse.md
├── crawling
│ └── web_crawling.md
└── tkinter_gui.md
├── Data_science
└── README.md
├── Ruby_on_Rails
├── Coderbyte
│ ├── easy
│ │ ├── first_reverse.rb
│ │ ├── simple_adding.rb
│ │ ├── word_count.rb
│ │ ├── vowel_count.rb
│ │ ├── time_convert.rb
│ │ ├── alpahbet_soup.rb
│ │ ├── ex_oh.rb
│ │ ├── first_factorial.rb
│ │ ├── palindrome.rb
│ │ ├── check_nums.rb
│ │ ├── letter_capitalize.rb
│ │ ├── longest_word.rb
│ │ ├── array_addition_I.rb
│ │ ├── ab_check.rb
│ │ ├── letter_changes.rb
│ │ ├── arith_geo.rb
│ │ ├── second_great_low.rb
│ │ └── letter_count.rb
│ ├── .DS_Store
│ ├── README.md
│ ├── medium
│ │ ├── prime_time.rb
│ │ ├── binary_converter.rb
│ │ ├── arith_geo_II.rb
│ │ └── prime_mover.md
│ └── LICENSE.md
├── ProjectEuler
│ ├── README.md
│ ├── source
│ │ ├── P001_ThreeFive.rb
│ │ ├── P003_PrimeFactor.rb
│ │ └── P002_Fibonacci.rb
│ └── LICENSE.md
├── standard_controller_actions.md
└── request-response_cycle.md
├── C
├── algorithm
│ ├── README.md
│ ├── 011_num_cnt.md
│ ├── 002_str_rev.md
│ ├── 012_word_cnt.md
│ ├── 015_fraction.md
│ ├── 008_palindrome.md
│ ├── 010_ox_quiz.md
│ ├── 003_atoi.md
│ ├── 013_han_num.md
│ ├── 014_str_repeat.md
│ └── 005_n_queen.md
└── list.md
├── Data_structure
└── README.md
├── config.ru
├── Home.md
├── JavaScript
├── requirejs.md
├── codewars
│ ├── 006_sort_object.md
│ ├── 020_find_the_mine.md
│ ├── 005_descending_order.md
│ ├── 032_the_coupon_code.md
│ ├── 023_bit_calculator.md
│ ├── 014_largest_5digit_number.md
│ ├── 021_unique_in_order.md
│ ├── 028_squares_sequence.md
│ ├── 012_your_order_please.md
│ ├── 018_convert_hex_to_rgb.md
│ ├── 019_array_helpers.md
│ ├── 026_regex_count_lowercase_letters.md
│ ├── 002_sort_with_arrow_function.md
│ ├── 029_sum_all_the_arrays.md
│ ├── 004_insert_dashes.md
│ ├── 031_object_extend.md
│ ├── 007_search_for_letters.md
│ ├── 022_luck_check.md
│ ├── 009_replace_with_alphabet_position.md
│ ├── 027_rotate_for_a_max.md
│ ├── 016_rot13.md
│ ├── 001_monotone_travel.md
│ ├── 030_math_issues.md
│ ├── 010_decode_the_morse_code.md
│ ├── 003_vampire_number.md
│ ├── 015_guess_the_gifts.md
│ ├── 011_good_vs_evil.md
│ └── 017_human_readable_time.md
├── leafletjs.md
├── es6_map_set.md
├── promise.md
├── apply_bind_call.md
├── React
│ └── weather_ajax_tutorial.md
├── ajax_getstarted.md
├── Meteor
│ └── rocketchat_streamer.md
└── canvas_svg
│ └── canvas_svg_s65_3.md
├── Algorithm
├── exercises
│ ├── gcd.md
│ ├── Reverse_str_recursion.md
│ ├── the_sieve_of_Eratosthenes.md
│ ├── permutation.md
│ ├── recursive_power.md
│ ├── minimum_classroom.md
│ └── parenthesis.md
├── greedy_algorithm.md
├── Dijkstra.md
├── dynamic_programming.md
└── binary_search.md
├── Java
└── design_pattern
│ └── strategy_pattern.md
├── Server
├── heroku.md
└── nginx.md
├── README.md
├── LICENSE
├── Go
└── go_fundamental.md
├── HTML-CSS
└── purecss_fundamental.md
└── ETC
├── oh_my_zsh.md
├── crawling_facebook_replies.md
└── tmux.md
/iOS/Swift.md:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | restart.txt
3 | .ipynb_checkpoints
4 |
--------------------------------------------------------------------------------
/Python/Django/source/django_girls_blog_tutorial/blog/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Python/Django/source/django_girls_blog_tutorial/mysite/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Python/Django/source/django_girls_blog_tutorial/blog/migrations/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Data_science/README.md:
--------------------------------------------------------------------------------
1 | Moved to [TIL-DataScience](https://github.com/Gyubin/TIL-DataScience)
2 |
--------------------------------------------------------------------------------
/Python/Django/source/django_girls_blog_tutorial/README.md:
--------------------------------------------------------------------------------
1 | # foodgram
2 | Only food photos in Instagram.
3 |
--------------------------------------------------------------------------------
/Ruby_on_Rails/Coderbyte/easy/first_reverse.rb:
--------------------------------------------------------------------------------
1 | def FirstReverse(str)
2 | return str.reverse
3 | end
4 |
--------------------------------------------------------------------------------
/Ruby_on_Rails/Coderbyte/easy/simple_adding.rb:
--------------------------------------------------------------------------------
1 | def SimpleAdding(num)
2 | return num*(num+1)/2
3 | end
4 |
--------------------------------------------------------------------------------
/C/algorithm/README.md:
--------------------------------------------------------------------------------
1 | # C로 알고리즘 문제 풀기
2 |
3 | - 001-008: 42 school에서 풀었던 문제들 중 괜찮았던 것
4 | - 009-: 백준 온라인 저지
5 |
--------------------------------------------------------------------------------
/Ruby_on_Rails/Coderbyte/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gyubin/TIL/HEAD/Ruby_on_Rails/Coderbyte/.DS_Store
--------------------------------------------------------------------------------
/Ruby_on_Rails/Coderbyte/easy/word_count.rb:
--------------------------------------------------------------------------------
1 | def WordCount(str)
2 | return str.split(' ').count
3 | end
4 |
--------------------------------------------------------------------------------
/Ruby_on_Rails/Coderbyte/easy/vowel_count.rb:
--------------------------------------------------------------------------------
1 | def VowelCount(str)
2 | return str.scan(/[AEIOUaeiou]/).count
3 | end
4 |
--------------------------------------------------------------------------------
/Data_structure/README.md:
--------------------------------------------------------------------------------
1 | # Data structure
2 |
3 | Moved to this repository.
4 |
5 | https://github.com/Gyubin/Data-Structure
6 |
--------------------------------------------------------------------------------
/Python/Django/source/django_girls_blog_tutorial/blog/tests.py:
--------------------------------------------------------------------------------
1 | from django.test import TestCase
2 |
3 | # Create your tests here.
4 |
--------------------------------------------------------------------------------
/Ruby_on_Rails/Coderbyte/README.md:
--------------------------------------------------------------------------------
1 | # Coder byte by ruby
2 | Solve the coderbyte problem by ruby.
3 | go -> [coderbyte site](http://www.coderbyte.com/)
4 |
--------------------------------------------------------------------------------
/Python/Django/source/django_girls_blog_tutorial/blog/apps.py:
--------------------------------------------------------------------------------
1 | from django.apps import AppConfig
2 |
3 |
4 | class BlogConfig(AppConfig):
5 | name = 'blog'
6 |
--------------------------------------------------------------------------------
/Python/Django/source/django_girls_blog_tutorial/db.sqlite3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gyubin/TIL/HEAD/Python/Django/source/django_girls_blog_tutorial/db.sqlite3
--------------------------------------------------------------------------------
/Ruby_on_Rails/ProjectEuler/README.md:
--------------------------------------------------------------------------------
1 | # Project Euler by ruby.
2 | Solve the project euler quiz.
3 | go => [Project Euler Korea](http://euler.synap.co.kr)
4 |
--------------------------------------------------------------------------------
/config.ru:
--------------------------------------------------------------------------------
1 | require "gollum/app"
2 |
3 | Precious::App.set(:gollum_path, File.dirname(__FILE__))
4 | Precious::App.set(:wiki_options, {})
5 | run Precious::App
6 |
7 |
--------------------------------------------------------------------------------
/Ruby_on_Rails/Coderbyte/easy/time_convert.rb:
--------------------------------------------------------------------------------
1 | def TimeConvert(num)
2 | hours = num / 60
3 | minutes = num - hours*60
4 | return hours.to_s + ':' + minutes.to_s
5 | end
6 |
--------------------------------------------------------------------------------
/Ruby_on_Rails/Coderbyte/easy/alpahbet_soup.rb:
--------------------------------------------------------------------------------
1 | def AlphabetSoup(str)
2 | str_array = str.split(//).sort
3 | return str_array.join
4 | #return str.chars.sort.join
5 | end
6 |
--------------------------------------------------------------------------------
/Python/Django/source/django_girls_blog_tutorial/blog/admin.py:
--------------------------------------------------------------------------------
1 | from django.contrib import admin
2 | from .models import Post
3 |
4 | # Register your models here.
5 | admin.site.register(Post)
6 |
--------------------------------------------------------------------------------
/Ruby_on_Rails/Coderbyte/easy/ex_oh.rb:
--------------------------------------------------------------------------------
1 | def ExOh(str)
2 | if str.scan(/x/).count == str.scan(/o/).count
3 | return 'true'
4 | else
5 | return 'false'
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/Ruby_on_Rails/Coderbyte/easy/first_factorial.rb:
--------------------------------------------------------------------------------
1 | def FirstFactorial(num)
2 | result = 1
3 | while num>1
4 | result = result*num
5 | num = num -1
6 | end
7 | return result
8 | end
9 |
--------------------------------------------------------------------------------
/Python/Django/source/django_girls_blog_tutorial/static/admin/fonts/README.txt:
--------------------------------------------------------------------------------
1 | Roboto webfont source: https://www.google.com/fonts/specimen/Roboto
2 | Weights used in this project: Light (300), Regular (400), Bold (700)
3 |
--------------------------------------------------------------------------------
/Ruby_on_Rails/ProjectEuler/source/P001_ThreeFive.rb:
--------------------------------------------------------------------------------
1 | i = 1
2 | sum = 0
3 |
4 | while i < 1000
5 | if i % 3 == 0 || i % 5 == 0
6 | sum += i
7 | end
8 | i += 1
9 | end
10 |
11 | puts sum
12 |
--------------------------------------------------------------------------------
/Python/Django/source/django_girls_blog_tutorial/static/admin/fonts/Roboto-Bold-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gyubin/TIL/HEAD/Python/Django/source/django_girls_blog_tutorial/static/admin/fonts/Roboto-Bold-webfont.woff
--------------------------------------------------------------------------------
/Ruby_on_Rails/Coderbyte/easy/palindrome.rb:
--------------------------------------------------------------------------------
1 | def Palindrome(str)
2 | str = str.downcase.split(' ').join
3 | if str == str.reverse
4 | return 'true'
5 | else
6 | return 'false'
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/Python/Django/source/django_girls_blog_tutorial/static/admin/fonts/Roboto-Light-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gyubin/TIL/HEAD/Python/Django/source/django_girls_blog_tutorial/static/admin/fonts/Roboto-Light-webfont.woff
--------------------------------------------------------------------------------
/Python/Django/source/django_girls_blog_tutorial/static/admin/fonts/Roboto-Regular-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gyubin/TIL/HEAD/Python/Django/source/django_girls_blog_tutorial/static/admin/fonts/Roboto-Regular-webfont.woff
--------------------------------------------------------------------------------
/Ruby_on_Rails/Coderbyte/easy/check_nums.rb:
--------------------------------------------------------------------------------
1 | def CheckNums(num1,num2)
2 | if num2 > num1
3 | return 'true'
4 | elsif num1 == num2
5 | return '-1'
6 | else
7 | return 'false'
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/Home.md:
--------------------------------------------------------------------------------
1 | #TIL - Today I Learned.
2 | ================================
3 | 어제보다 조금 더 많이 알기만 하면 된다. 다른 사람과 비교하지 말고 나와 비교하자. 화이팅.
4 |
5 | -2015.10.14 시작-
6 | ```js
7 | function test() {
8 | console.log("Hello TIL.");
9 | }
10 | ```
11 |
--------------------------------------------------------------------------------
/Python/Django/source/django_girls_blog_tutorial/blog/forms.py:
--------------------------------------------------------------------------------
1 | from django import forms
2 | from .models import Post
3 |
4 | class PostForm(forms.ModelForm):
5 |
6 | class Meta:
7 | model = Post
8 | fields = ('title', 'text',)
9 |
--------------------------------------------------------------------------------
/Ruby_on_Rails/Coderbyte/easy/letter_capitalize.rb:
--------------------------------------------------------------------------------
1 | def LetterCapitalize(str)
2 | str_array = str.split
3 | result = ""
4 | str_array.each do |a|
5 | result = result + " " + a.capitalize
6 | end
7 | return result
8 | end
9 |
--------------------------------------------------------------------------------
/Ruby_on_Rails/Coderbyte/medium/prime_time.rb:
--------------------------------------------------------------------------------
1 | def PrimeTime(num)
2 | limit = Math.sqrt(num)
3 |
4 | (2...limit).to_a.each do |n|
5 | if num % n == 0
6 | return 'false'
7 | end
8 | end
9 | return 'true'
10 | end
11 |
--------------------------------------------------------------------------------
/Ruby_on_Rails/ProjectEuler/source/P003_PrimeFactor.rb:
--------------------------------------------------------------------------------
1 | #not completed yet
2 | def prime(number)
3 | i = 1
4 | while number != 1
5 | i += 1
6 | number /= i until number % i != 0
7 | end
8 | p i
9 | end
10 |
11 | prime(600851475143)
12 |
--------------------------------------------------------------------------------
/JavaScript/requirejs.md:
--------------------------------------------------------------------------------
1 | # RequireJS
2 |
3 | Javascript가 쓰이는 프론트엔드, 백엔드 모든 곳에서 점점 규모가 커지고 복잡해지고 있다. 관리 개념에서 모듈화가 필요해졌는데 JavaScript 기본적으로 관련 기능을 제공하지 않는다. 협업할 때도 불편하고, 의존도 파악도 어렵다. ES6에서부터는 기능이 추가되었지만 RequireJS 라이브러리가 유용하게 사용되어왔다.
4 |
5 | ## 1. 설치
6 |
7 | `npm install requirejs`
8 |
--------------------------------------------------------------------------------
/Algorithm/exercises/gcd.md:
--------------------------------------------------------------------------------
1 | # GCD, Greatest Common Divisor
2 |
3 | 유클리드 호제법을 이용해 최대 공약수를 재귀용법으로 풀었다.
4 |
5 | 유클리드 호제법이란 A, B가 있을 때 최대공약수는 A를 B로 나누었을 때 나머지와 B의 최대공약수가 같다는 정의다.
6 |
7 | ```py
8 | def gcd(x, y) :
9 | if y == 0:
10 | return x
11 | else:
12 | return gcd(y, x % y)
13 | ```
14 |
--------------------------------------------------------------------------------
/Ruby_on_Rails/Coderbyte/medium/binary_converter.rb:
--------------------------------------------------------------------------------
1 | def BinaryConverter(str)
2 | binary_array = str.split(//)
3 | len = binary_array.length
4 | i = 0
5 | sum = 0
6 |
7 | binary_array.each do |num|
8 | sum += num.to_i * (2**(len-1-i))
9 | i += 1
10 | end
11 |
12 | return sum.to_s
13 | end
14 |
--------------------------------------------------------------------------------
/Python/Django/source/django_girls_blog_tutorial/manage.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 | import os
3 | import sys
4 |
5 | if __name__ == "__main__":
6 | os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings")
7 |
8 | from django.core.management import execute_from_command_line
9 |
10 | execute_from_command_line(sys.argv)
11 |
--------------------------------------------------------------------------------
/Python/Django/source/django_girls_blog_tutorial/static/admin/img/tooltag-arrowright.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/Java/design_pattern/strategy_pattern.md:
--------------------------------------------------------------------------------
1 | # Strategy Pattern
2 |
3 | 참고: 헤드퍼스트 디자인패턴, [hyeonstorage 블로그](http://hyeonstorage.tistory.com/m/post/146)
4 |
5 | ~~(상속과 인터페이스 구현을 파이썬으로 해보려했는데 파이썬은 Duck typing을 하기 때문에 사실상 의미가 없었다. 자바로 수정)~~
6 |
7 | ## 1. 개념
8 |
9 | - 디자인 원칙: 변하는 부분과, 변하지 않는 부분 분리하기.
10 | - strategy pattern: 변하는 부분을 캡슐화하고, 인터페이스에 위임해서 어떤 행동을 할지 결정한다.
11 |
12 |
--------------------------------------------------------------------------------
/Python/Django/source/django_girls_blog_tutorial/blog/templates/blog/post_edit.html:
--------------------------------------------------------------------------------
1 | {% extends 'blog/base.html' %}
2 |
3 | {% block content %}
4 |
{{ post.text|linebreaks }}
13 |