https://speakerdeck.com/morizyun/four-reasons-to-learn-ruby-on-rails-in-your-first-web-programing
- html & css - https://www.codecademy.com/learn/web
- ruby - https://www.codecademy.com/learn/ruby
- rails - https://www.codecademy.com/learn/learn-rails
| ember install ember-pikaday | |
| ember g component --pod paper-pikaday |
| import Ember from 'ember'; | |
| import PikadayMixin from 'ember-pikaday/mixins/pikaday'; | |
| import PaperInput from 'ember-paper/components/paper-input'; | |
| import layout from 'ember-paper/templates/components/paper-input'; | |
| export default PaperInput.extend(PikadayMixin, { | |
| layout, | |
| didInsertElement() { | |
| this._super(...arguments); |
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle' | |
| }); |
| arrayToList = (elements) -> | |
| { value: elements.shift(), rest: if elements.length == 0 then null else arrayToList(elements) } | |
| listToArray = (list) -> | |
| if list.rest is null then [list.value] else [list.value].concat(listToArray(list.rest)) | |
| nth = (list, element_index, index) -> | |
| index = 0 if index is undefined | |
| if list is null | |
| null |
| countBs = (text) -> | |
| countChar text, 'B' | |
| countChar = (text, char) -> | |
| count = 0 | |
| for i in [0..text.length] | |
| count++ if text[i] == char | |
| count |
| chessBoard = (size, chars) -> | |
| result = '' | |
| for i in [1..size*size] | |
| result += chars[i % chars.length] | |
| if i % size is 0 | |
| result += '\n' | |
| if size % chars.length is 0 | |
| chars = [chars[1], chars[0]] | |
| i++ | |
| result |
| using System; | |
| using System.IO; | |
| using System.Text; | |
| using System.Linq; | |
| using System.Collections.Generic; | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { |