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" | |
| "net/http" | |
| "time" | |
| "sync" | |
| ) | |
| var wg=sync.WaitGroup{} |
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 ( | |
| "net/http" | |
| _ "github.com/lib/pq" | |
| "github.com/astaxie/beego/orm" | |
| "encoding/json" | |
| ) | |
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
| public static async Task<string> CalculateDistance(string origins, string destination) | |
| { | |
| string url = string.Format(urlBase, origins, destination); | |
| RestClient client = new RestClient(url); | |
| var request = new RestRequest(); | |
| var response = await client.ExecuteGetTaskAsync(request); | |
| DistanceModel model = JsonConvert.DeserializeObject<DistanceModel>(response.Content); |
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
| # List all stopped containers | |
| docker ps --filter "status=exited" | |
| # Remove all stopped containers | |
| docker rm $(docker ps --filter "status=exited" -aq --no-trunc) | |
| # Remove all unused images (http://stackoverflow.com/a/32723127) | |
| docker rmi $(docker images --filter "dangling=true" -q --no-trunc) | |
| #Remove dangling Images |
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" | |
| func main() { | |
| v := []int{ | |
| 1, | |
| 2, | |
| 3, |
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
| appname = central-api | |
| httpport = 8080 | |
| runmode = dev | |
| autorender = false | |
| copyrequestbody = true | |
| EnableDocs = true | |
| RedisHost=172.17.0.2 | |
| RedisPort=6379 | |
| MySQL=readonly:readonly*34@tcp(146.185.158.165:3306)/container |
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 service | |
| import "os" | |
| type DirExistCreator interface { | |
| Exist(path string) bool | |
| Create(path string) bool | |
| } | |
| type DirService 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
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| "encoding/json" | |
| "github.com/gobuffalo/pop" | |
| ) |
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
| { | |
| "passBundle":[{ | |
| "name": "Vodafone İletişim Pass", | |
| "headerIcon": "URLpath/x.png", | |
| "availableAppsIcon":{ | |
| "availableAppsTitle": "Kullanabileceğin uygulamalar", //Max karakter sayısı iletilecektir. | |
| "icons":[ | |
| { | |
| "iconUrl": "URLpath/x.png", | |
| "iconDescription": "WhatsApp" //Max karakter sayısı iletilecektir. |
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
| gesture swipe up xdotool key ctrl+alt+Up | |
| gesture swipe left xdotool key ctrl+alt+Right | |
| gesture swipe right xdotool key ctrl+alt+Left | |
| gesture swipe down xdotool key ctrl+alt+Down |
OlderNewer