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
| /* <system section="theme" selected="evergreen"> */ | |
| @import "/css/theme/evergreen/evergreen.css"; | |
| /* </system> */ | |
| body { | |
| font-family: "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, HiraginoSansGB, sans-serif; | |
| font-size: 18px; | |
| font-weight: 300; | |
| background: #fff; |
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
| go get github.com/PuerkitoBio/goquery" |
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 Alamofire | |
| import SwiftyJSON | |
| public class ApiConnection{ | |
| func getArticle(id:Int,callback: (String) -> Void) -> Void { | |
| let url = "http://0.0.0.0:8080/article/" + String(id) | |
| Alamofire.request(.GET, url) | |
| .responseJSON { |
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
| application: ******** | |
| version: 1 | |
| runtime: go | |
| api_version: go1 | |
| handlers: | |
| - url: /.* | |
| script: _go_app | |
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 handler | |
| import ( | |
| "strconv" | |
| "net/http" | |
| "github.com/labstack/echo" | |
| "github.com/tkc/go-echo-server-sandbox/models/user" | |
| ) | |
| type ( |
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 userModel | |
| import ( | |
| "time" | |
| "github.com/tkc/go-echo-server-sandbox/db" | |
| _ "github.com/jinzhu/gorm/dialects/mysql" | |
| ) | |
| type User struct { | |
| Id int64 |
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" | |
| ) | |
| type ( | |
| user struct { | |
| ID int `json:"id"` | |
| Name string `json:"name"` |
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" | |
| "github.com/jinzhu/gorm" | |
| _ "github.com/jinzhu/gorm/dialects/mysql" | |
| ) | |
| type Product struct { |
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
| ## HOST側 | |
| netstat -ant | grep 27017 | |
| ## 操作 | |
| sudo service mongodb stop | |
| sudo service mongodb start | |
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 UIKit | |
| class NoticeCustomViewCell: UITableViewCell | |
| { | |
| private var myButton: UIButton! | |
| override func awakeFromNib() { | |
| super.awakeFromNib() | |
| } |