Skip to content

Instantly share code, notes, and snippets.

heroku login
git init
git add .
git commit "init"
heroku create
git push heroku master
module Heaven
# Top-level module for providers.
module Provider
# The capistrano provider.
class Capistrano < DefaultProvider
.....
def execute
return execute_and_log(["/usr/bin/true"]) if Rails.env.test?
unless File.exist?(checkout_directory)
payload: {
"name": "repo_name",
"robotName": "yourrobot",
"hosts": "",
"notify": {
"adapter": "slack",
"room": "123456789",
"user": "123456789",
"user_name": "kjj6198"
},
package reports
type reporter interface {
FetchData()
ReportFormat() string
}
package reports
var DailyReports = []reporter{
&Countdown{},
&Stock{},
&News{},
&Job{},
}
package reports
import (
"fmt"
"time"
)
type Countdown struct {
Remained float64
}
func main() {
configo.Load("env.yml")
var reportHTML []string
for _, report := range reports.DailyReports {
report.FetchData()
reportHTML = append(reportHTML, report.ReportFormat())
}
fetch(`${hostname}/cookie`, {
method: 'POST',
credentials: 'include'
});
Access to fetch at 'http://localhost:3001/cookie' from origin 'http://localhost:3000' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'.
Access to fetch at 'http://localhost:3001/cookie' from origin 'http://localhost:3000' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Credentials' header in the response is '' which must be 'true' when the request's credentials mode is 'include'.