Skip to content

Instantly share code, notes, and snippets.

View tkc's full-sized avatar
🏠
Working from home

Tkc tkc

🏠
Working from home
  • Japan
View GitHub Profile
@tkc
tkc / HatebuCss
Last active August 18, 2016 09:31
/* <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;
go get github.com/PuerkitoBio/goquery"
@tkc
tkc / Class
Last active August 13, 2016 18:39
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 {
application: ********
version: 1
runtime: go
api_version: go1
handlers:
- url: /.*
script: _go_app
package handler
import (
"strconv"
"net/http"
"github.com/labstack/echo"
"github.com/tkc/go-echo-server-sandbox/models/user"
)
type (
package userModel
import (
"time"
"github.com/tkc/go-echo-server-sandbox/db"
_ "github.com/jinzhu/gorm/dialects/mysql"
)
type User struct {
Id int64
package main
import (
"fmt"
)
type (
user struct {
ID int `json:"id"`
Name string `json:"name"`
package main
import (
"fmt"
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/mysql"
)
type Product struct {
## HOST側
netstat -ant | grep 27017
## 操作
sudo service mongodb stop
sudo service mongodb start
import UIKit
class NoticeCustomViewCell: UITableViewCell
{
private var myButton: UIButton!
override func awakeFromNib() {
super.awakeFromNib()
}