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
| Configuration: | |
| Appenders: | |
| Console: | |
| PatternLayout: | |
| pattern: '%d{${LOG_DATEFORMAT_PATTERN:-yyyy-MM-dd HH:mm:ss.SSS}} %highlight{${LOG_LEVEL_PATTERN:-%5p}}{FATAL=red blink, ERROR=red, WARN=yellow bold, INFO=green, DEBUG=green bold, TRACE=blue} %style{${sys:PID}}{magenta} [%15.15t] %style{%-40.40C{1.}}{cyan} : %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}' | |
| name: ConsoleLogger | |
| target: SYSTEM_OUT | |
| File: | |
| - PatternLayout: | |
| pattern: '%d{${LOG_DATEFORMAT_PATTERN:-yyyy-MM-dd HH:mm:ss.SSS}} %highlight{${LOG_LEVEL_PATTERN:-%5p}}{FATAL=red blink, ERROR=red, WARN=yellow bold, INFO=green, DEBUG=green bold, TRACE=blue} %style{${sys:PID}}{magenta} [%15.15t] %style{%-40.40C{1.}}{cyan} : %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}' |
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
| <dependencies> | |
| <dependency> | |
| <groupId>org.springframework.boot</groupId> | |
| <artifactId>spring-boot-starter-web</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.springframework.boot</groupId> | |
| <artifactId>spring-boot-starter</artifactId> | |
| <exclusions> | |
| <exclusion> |
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
| var GetMasterDb = func() *sqlx.DB { | |
| masterOnce.Do(func() { | |
| var err error | |
| conf := base.GetConfig() | |
| args := fmt.Sprintf( | |
| "%v:%v@tcp(%v:%v)/%v", | |
| conf.Mysql.Master.User, | |
| conf.Mysql.Master.Pass, | |
| conf.Mysql.Master.Host, | |
| conf.Mysql.Master.Port, |
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 logger | |
| import ( | |
| "github.com/sirupsen/logrus" | |
| "os" | |
| "sync" | |
| ) | |
| var log *logger | |
| var once sync.Once |
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
| #!/usr/bin/env bash | |
| BIN_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| ROOT_DIR="$(dirname "$BIN_DIR")" | |
| cd $BIN_DIR | |
| rm -f social-contact-feed-go | |
| CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o social-contact-feed-go-linux ../main/main.go | |
| go build -o social-contact-feed-go-mac ../main/main.go |
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 base | |
| import ( | |
| "gopkg.in/yaml.v2" | |
| "io/ioutil" | |
| "os" | |
| "path/filepath" | |
| "sync" | |
| ) |
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
| $.notify({ | |
| title: 'EVERYTHING IS CRASHING!', | |
| message: 'Working families Global South working alongside NGO research breakthrough insights public-private partnerships. Tackle contribution, equal opportunity, design thinking.' | |
| },{ | |
| type: 'pastel-danger', | |
| delay: 5000, | |
| template: '<div data-notify="container" class="col-xs-11 col-sm-3 alert alert-{0}" role="alert">' + | |
| '<span data-notify="title">{1}</span>' + | |
| '<span data-notify="message">{2}</span>' + | |
| '</div>' |
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 url(http://fonts.googleapis.com/css?family=Old+Standard+TT:400,700); | |
| [data-notify="container"][class*="alert-pastel-"] { | |
| background-color: rgb(255, 255, 238); | |
| border-width: 0px; | |
| border-left: 15px solid rgb(255, 240, 106); | |
| border-radius: 0px; | |
| box-shadow: 0px 0px 5px rgba(51, 51, 51, 0.3); | |
| font-family: 'Old Standard TT', serif; | |
| letter-spacing: 1px; | |
| } |
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
| @Component | |
| @WebFilter(urlPatterns = "/user/*") | |
| public class TokenMiddleware implements Filter { | |
| @Override | |
| public void init(FilterConfig filterConfig) throws ServletException { | |
| } | |
| @Override | |
| public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, |
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
| @Retention(RetentionPolicy.RUNTIME) | |
| @Target({ | |
| ElementType.METHOD | |
| }) | |
| public @interface DS { | |
| String value() default "M"; | |
| } |
NewerOlder