/remind “Hi @devs, it’s time for Sprint Planning! - Please join https://gojek.zoom.us/my/link” every biweekly March 27 at 04:00pm
This file contains 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 ( | |
"database/sql" | |
"fmt" | |
"log" | |
"sync" | |
"time" | |
"github.com/bwmarrin/snowflake" |
This file contains 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
#!/usr/bin/env bash | |
# mockgen will generates a mock file based on interface changes | |
# example: | |
# there is changes on the following interface | |
# /pkg/sharedcontract/httpconnector.go | |
# then the mock will be generated to: | |
# /test/fixture/mock/httpconnector_mock.go | |
# | |
# for further mock usage, refer to https://github.com/golang/mock |
This file contains 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
**.idea | |
**.vscode | |
**.DS_STORE | |
**main | |
**vendor | |
coverage.out |
This file contains 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
; http://editorconfig.org/ | |
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
insert_final_newline = true | |
trim_trailing_whitespace = true | |
indent_style = space |
This file contains 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
def midpoint(points) | |
return [] if points.blank? | |
coords = points.map {|p| new(*p).to_radians if p.present?}.compact | |
# convert to Cartesian coordinates | |
x = [] | |
y = [] | |
z = [] | |
coords.each do |p| |
This file contains 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 'json' | |
require 'benchmark' | |
require 'set' | |
class Bencmarking | |
def prepare | |
write_config | |
end | |
def run |
This file contains 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 'json' | |
require 'benchmark' | |
class BaseRuntime | |
def figlet | |
puts "starting service..." | |
end | |
end | |
class MainRuntime < BaseRuntime |
This file contains 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 | |
func main() { | |
println("string yang super simpel ini akan diprint/dicetak pada terminal kita") | |
} |
This file contains 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" | |
"os" | |
"runtime" | |
) | |
var template = ` | |
nama mesin %33v |
NewerOlder