Import protobuf models into other and compile them
tsjd [To short, just do];
- Define go_package option something like:
option go_package = "github.com/meysampg/project_name/pb/folder_name_which_compiled_model_must_be_on_it";
server { | |
listen 80; | |
listen [::]:80; | |
root PATH_OF_DEVELOPMENT_DIRECTORY; | |
index index.php index.html; | |
server_name DOMAIN.FAKE; |
set nocompatible " Just use ViImporved! | |
"# Enable generic configurations | |
set backspace=indent,eol,start " Set backspace behavior normal as other editors | |
set number " Activate line numbers | |
set expandtab " Extends tab by default | |
set tabstop=4 " A tab actually is 4 spaces | |
set shiftwidth=4 " Number of spaces to use for autoindenting | |
set smarttab | |
set autoindent " Always auto indent based on previous |
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
const total = 5 * time.Second | |
type process struct { |
#!/usr/bin/env php | |
<?php | |
/** | |
* Zeshter function remove all comments and docblocks from a given | |
* php file or a folder of php files. Yep, it just mirine into file. | |
* | |
* @param string|null $path path of a php file or a folder contains php files | |
*/ | |
function zeshter(?string $path, bool $debugMode = false) | |
{ |
curl --create-dirs --silent --output /OUTPUT/ADRESS/FILE.tar.gz -L https://api.github.com/repos/OWNER/REPOSITORY/tarball/VERSION?access_token=TOKEN |
func main() { | |
reader := bufio.NewReaderSize(os.Stdin, 1024 * 1024) | |
stdout, err := os.Create(os.Getenv("OUTPUT_PATH")) | |
checkError(err) | |
defer stdout.Close() | |
writer := bufio.NewWriterSize(stdout, 1024 * 1024) |
<?php | |
// Data from stackoverflow | |
$a = array( | |
array('id'=>100, 'parentid'=>0, 'name'=>'a0'), | |
array('id'=>102, 'parentid'=>101, 'name'=>'a012'), | |
array('id'=>103, 'parentid'=>101, 'name'=>'a011'), | |
array('id'=>101, 'parentid'=>100, 'name'=>'a01'), | |
array('id'=>104, 'parentid'=>100, 'name'=>'a02'), | |
); |
package main | |
import "fmt" | |
func main() { | |
// this is a function which accept an int and return a function which accept an int and return an int :D | |
var add func(int) func(int) int = func(n int) func(int) int { | |
return func(a int) int { | |
return a + n | |
} |
package main | |
import "fmt" | |
import "math/rand" | |
import "time" | |
func constantSeed() int64 { | |
return 100 | |
} |