Stopping a Jekyll server with ctrl-z can cause issues as the process is not stopped fully. To kill it:
$ lsof -wni tcp:4000
$ kill -9 <PID of process>
And next time, use crtl-c to stop.
| <?php | |
| # Clue : Membuat perulangan di dalam perulangan / nested loop dimana panjang perulangan kedua | |
| # menurut pada perulangan pertama, dan setelah melakukan perulangan pertama akan membuat baris baru. | |
| for($i=0; $i<=10; $i++){ // Perulangan dimulai dari 0 sampai kurang dari sama dengan 10 | |
| for($a=0; $a<=$i; $a++){ // Perulangan dimulai dari 0 sampai kurang dari sama dengan nilai var $i | |
| echo '*'; // Menampilkan string * | |
| } | |
| echo '</br>'; // Menampilkan string garis baru |
| start_of_year = Time.new(2016, 1, 1) | |
| # p start_of_year | |
| # p start_of_year - 180 # second | |
| # p start_of_year - (60 * 60 * 24) | |
| def find_day_of_year_by_number(number) | |
| current_date = Time.new(2016, 1, 1) | |
| one_day = 60 * 60 * 24 | |
Stopping a Jekyll server with ctrl-z can cause issues as the process is not stopped fully. To kill it:
$ lsof -wni tcp:4000
$ kill -9 <PID of process>
And next time, use crtl-c to stop.
I hereby claim:
To claim this, I am signing this object:
| require 'bcrypt' | |
| # if u not ready with bcrypt u can install by typing 'gem install bcrypt' | |
| accounts = [ | |
| { username: 'choirul', password: 'passwd' }, | |
| { username: 'harpi', password: 'strongpass' }, | |
| { username: 'mahendra', password: 'isverysecret' } | |
| ] | |
| def create_hash(string) |
| /* | |
| source from bulma issues, thanks to @furey | |
| https://github.com/jgthms/bulma/issues/451#issuecomment-331758839 | |
| */ | |
| $sizeUnit: rem; | |
| $marginKey: 'm'; | |
| $paddingKey: 'p'; | |
| $separator: '-'; | |
| $spacing-sizes: ( |
| {% for post in site.posts %} | |
| {% capture current_year %} | |
| {{post.date | date: "%Y"}} | |
| {% endcapture %} | |
| {% if current_year != previous_year %} | |
| {% assign previous_year = current_year %} | |
| <h4 class="post-header"> | |
| <span role="img" aria-label="icon-book" aria-hidden="true">🎉</span> | |
| {{ current_year }} | |
| </h4> |
| border: no | |
| license: MIT |