Dir['*.js']
#=> ["diff.js", "index.js", "patch.js", "screen-buffer.js", "test-patch.js"]สมมติว่าเรามีอาร์เรย์อยู่ เราสามารถแทรกข้อมูลที่ตำแหน่งใดก็ได้ใน Array โดยใช้เมธอด Array#insert แบบนี้
arr = [6, 7, 2, 3]
arr.insert(0, "first")
#=> ["first", 6, 7, 2, 3]
arr.insert(3, "second")
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 java.io.BufferedReader; | |
| import java.util.Scanner; | |
| import javax.swing.JOptionPane; | |
| interface Dialog { | |
| void say(String message); | |
| String ask(String question); | |
| } |
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
| <style scoped> | |
| .container { max-width: 100%; } | |
| </style> | |
| <h1>Task and Schedule</h1> | |
| <h2>Tasks</h2> | |
| <table class="table table-bordered"> | |
| <thead> |
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
| <h1>TSP Status Report</h1> | |
| <h2>Week 10 (Cycle 2.1)</h2> | |
| <table class="table"> | |
| <thead> | |
| <tr> | |
| <th></th> | |
| <th class="text-center">Plan</th> | |
| <th class="text-center">Actual</th> |
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
| gets.to_i.times { puts gets.strip | |
| .gsub(/^([^aeiou]*)([aeiou]\w*)( [^aeiou]*)([aeiou]\w*)$/, '\\1\\4\\3\\2') | |
| .gsub(/^([^aeiou]*)([aeiou]\w*)( \w+ [^aeiou]*)([aeiou]\w*)$/, '\\1\\4\\3\\2') | |
| .gsub(/^(\w+ [^aeiou]*)([aeiou]\w*)( \w+ [^aeiou]*)([aeiou]\w*)$/, '\\1\\4\\3\\2') | |
| .gsub(/^(\w+ [^aeiou]*)([aeiou]\w*)( \w+ \w+ [^aeiou]*)([aeiou]\w*)$/, '\\1\\4\\3\\2') | |
| .gsub(/^(\w+ \w+ [^aeiou]*)([aeiou]\w*)( \w+ \w+ [^aeiou]*)([aeiou]\w*)$/, '\\1\\4\\3\\2') | |
| .gsub(/^(\w+ \w+ [^aeiou]*)([aeiou]\w*)( \w+ \w+ \w+ [^aeiou]*)([aeiou]\w*)$/, '\\1\\4\\3\\2') } |
ควนผำเป็นวิทำสลับคี วิธีกวนสร้างคำผาร ร่าเวียก กำผวนคาร
จี๊ข้อโนทย์ ให้แครมเขียนโปรกุณ ผำควน ห้อยใหน่
กรณางค์มีหลายพยี ให้ใช้กี่ดังต่อไปน้ฏ
- 2 พยางค์ ผีพยางค์ท่วน 1 กับ 2