This file contains 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
{"lastUpload":"2020-01-14T00:43:01.806Z","extensionVersion":"v3.4.3"} |
This file contains 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
# User guide: | |
# make input=<inputfile> app=<appname> | |
# This will create a directory `app` and generate code into it | |
# if this script doesn't run, try running `pip2 uninstall sysl` or | |
# `pip uninstall sysl` as make might be running an old sysl version | |
TMP = .tmp# Cache the server lib directory in tmp | |
SERVERLIB = /var/tmp | |
TRANSLOCATION = .tmp/server-lib/codegen/transforms | |
TRANSFORMS= svc_error_types.sysl svc_handler.sysl svc_interface.sysl svc_router.sysl svc_types.sysl |
This file contains 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
/* A simple client program for server.c | |
To compile: gcc client.c -o client | |
To run: start the server, then the client */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <strings.h> |
This file contains 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
all:uni | |
PROJECTNAME=webscraper | |
PRIVATEKEY=/Users/joshcarp/private_keys/jcarpeggiani_key | |
SERVER=jcarpeggiani@111.111.111.111 | |
uni: | |
scp -i $(PRIVATEKEY) -r ../$(PROJECTNAME) $(SERVER):~/$(PROJECTNAME) | |
ssh -i $(PRIVATEKEY) $(SERVER) |
This file contains 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
FROM gcc:9.2 | |
COPY . /usr/src/myapp | |
WORKDIR /usr/src/myapp | |
RUN make | |
CMD ["./main"] |
This file contains 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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "(gdb) Launch", | |
"type": "cppdbg", | |
"request": "launch", | |
"program": "${workspaceRoot}/bin/client.o", // Path to your executable, DONT INCLUDE ARGS | |
"args": ["google.com"], // Arguments here as strings, seperated: ["arg1", "arg2"] | |
"cwd": "${workspaceFolder}", |
This file contains 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
--- | |
id: Package-{{.PackageName}} | |
title: {{.PackageName}} | |
sidebar_label: {{.PackageName}} | |
--- | |
## Integration diagram | |
{{.Integration.Img}} |
This file contains 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 mapsorter | |
import ( | |
"reflect" | |
"sort" | |
) | |
func SortedKeys(m interface{}) []string { | |
keys := reflect.ValueOf(m).MapKeys() | |
ret := make([]string, 0, len(keys)) |
This file contains 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 website_from_gcs | |
import ( | |
"archive/zip" | |
"github.com/joshcarp/gop" | |
gop3 "github.com/joshcarp/gop/gop" | |
"github.com/joshcarp/gop/gop/gop_gcs" | |
"github.com/spf13/afero" | |
"github.com/spf13/afero/zipfs" | |
"mime" |
This file contains 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
#!/bin/bash | |
module=$(cat go.mod | grep module | cut -d " " -f2) | |
mkdir -p ./vendor/$module | |
cp -r pkg go.mod go.sum ./vendor/$module | |
echo "moving files to $module" | |
rm -rf go.mod go.sum |
OlderNewer