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
| #include "pch.h" | |
| #include <iostream> | |
| #include <stdio.h> | |
| #include <Windows.h> | |
| #include <ctime> | |
| #include <cstdlib> | |
| using namespace std; | |
| //Почему ты назвал структуру Branch ?? | |
| //Может ты прекратишь копипастить из интеренета и начнешь сам писать ?? |
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
| f, err := elf.Open(filename) | |
| if err != nil { | |
| return err | |
| } | |
| defer f.Close() | |
| symbols, err := f.Symbols() | |
| if err != nil { | |
| return err | |
| } |
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 ( | |
| "github.com/gocraft/web" | |
| "net/http" | |
| ) | |
| type Context struct { | |
| HelloCount 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 "github.com/go-martini/martini" | |
| func main() { | |
| m := martini.Classic() | |
| m.Get("/", func() string { | |
| return "Hello world!" | |
| }) | |
| m.Run() |
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" | |
| ) | |
| func handler(w http.ResponseWriter, r *http.Request) { | |
| w.Write([]byte("Hello world")) | |
| } |
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
| //Prepare buffers for reading: one time before read first chunk | |
| treader.rawBuffer = make([]sql.RawBytes, len(treader.columns)) | |
| // rows.Scan wants '[]interface{}' as an argument, so we must copy the | |
| // references into such a slice | |
| // See http://code.google.com/p/go-wiki/wiki/InterfaceSlice for details | |
| treader.scanCallArgs = make([]interface{}, len(treader.rawBuffer)) | |
| for i := range treader.rawBuffer { | |
| treader.scanCallArgs[i] = &treader.rawBuffer[i] | |
| } |
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
| netstat -tan | grep ':63790 ' | awk '{print $6}' | sort | uniq -c |
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
| boborders = read.csv("in_data/boborders.csv", TRUE, ",") | |
| gatransactions = read.csv("in_data/Transactions.csv", TRUE, ",") | |
| orderswithgroup <- merge(boborders, gatransactions, by.x = "order_nr", by.y = "Transaction") | |
| write.csv(orderswithgroup, file="out_data/orderswithgroup.csv") | |
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
| sudo docker -d -D |
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
| for cont in $(sudo docker ps -a | grep "Exit" | cut -d " " -f 1); do sudo docker rm $cont; done |