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/fighterlyt/permutation" | |
| ) | |
| func main() { | |
| myInt := []int{1, 2, 3} | |
| perm, _ := permutation.NewPerm(myInt, nil) |
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/fighterlyt/permutation" | |
| "reflect" | |
| ) | |
| type Phone struct { | |
| ID int |
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" | |
| "sort" | |
| ) | |
| func main() { | |
| myString := []string{"Go", "C++", "PHP", "JavaScript", "Assembly"} | |
| myInt := []int{99, -1, -4, 50, 35} |
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" | |
| "sort" | |
| ) | |
| type Language struct { | |
| Trend int | |
| Name string |
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 hello | |
| import ( | |
| "fmt" | |
| "net/http" | |
| ) | |
| func init() { | |
| http.HandleFunc("/", handler) | |
| } |
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: helloworld | |
| 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
| /* app.main.js */ | |
| angular.module('app', ['app.product', 'app.invoice']; | |
| // TODO .. | |
| /* app.product.js */ | |
| angular.module('app.product', []); | |
| // TODO .. |
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
| /* cart-item.directive.js */ | |
| angular.module('app') | |
| .directive('cartItem', cartItem); | |
| cartItem.$inject = ['someService']; | |
| function cartItem(someService) { | |
| return { | |
| restrict: 'EA', |
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
| SELECT | |
| `p`.`id`, | |
| `t0`.`text` AS `name`, | |
| `t1`.`text` AS `description`, | |
| `p`.`created_at`, | |
| `p`.`updated_at` | |
| FROM `products` AS `p` | |
| INNER JOIN `translations` AS `t0` | |
| ON `p`.`i18n_name` = `t0`.`i18n_id` | |
| INNER JOIN `translations` AS `t1` |
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 ( | |
| "testing" | |
| "time" | |
| _ "github.com/go-sql-driver/mysql" | |
| "github.com/jinzhu/gorm" | |
| ) | |
OlderNewer