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
| #!/bin/bash | |
| # Reference https://gist.github.com/haukurk/a6e0751a8b8746265f8b2c55d9476230 | |
| declare -a containers | |
| containers[0]=container_name_1 | |
| containers[1]=container_name_2 | |
| containers[2]=container_name_3 | |
| # more containers... |
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
| package main | |
| import ( | |
| "fmt" | |
| "math" | |
| ) | |
| func main() { | |
| sum := summation(2000000) | |
| fmt.Println(sum) |
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
| class Primes | |
| def prime?(n) | |
| return false if n < 2 | |
| max = Math.sqrt(n).floor | |
| (2..max).none? { |k| (n % k).zero? } | |
| end | |
| def below(limit) | |
| primes = [2] |
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
| google-chrome www.youtube.com | |
| off_day() { | |
| echo "Off Day, Happy Weekend" | |
| } | |
| working_day() { | |
| echo "Happy Working" |
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
| require 'uri' | |
| require 'net/http' | |
| require 'pp' | |
| require 'json' | |
| natega = File.new('natega.txt', 'w') | |
| seat_number = 427_360 # write start seat number | |
| count = 10 | |
| (seat_number..seat_number + count).each do |seat| |