Skip to content

Instantly share code, notes, and snippets.

Avatar

Nick Olsen ncko

View GitHub Profile
View drone-agent-logs
{"level":"debug","msg":"successfully pinged the docker daemon","time":"2019-10-19T19:38:16Z"}
{"arch":"amd64","level":"debug","machine":"ncko-drone-server","msg":"runner: polling queue","os":"linux","time":"2019-10-19T19:38:16Z"}
2019/10/19 19:38:16 [DEBUG] POST https://[hidden]/rpc/v1/request
{"arch":"amd64","level":"debug","machine":"ncko-drone-server","msg":"runner: polling queue","os":"linux","time":"2019-10-19T19:38:16Z"}
2019/10/19 19:38:16 [DEBUG] POST https://[hidden]/rpc/v1/request
2019/10/19 19:38:46 [ERR] POST https://[hidden]/rpc/v1/request request failed: Post https://[hidden]/rpc/v1/request: dial tcp 138.68.237.101:443: i/o timeout
2019/10/19 19:38:46 [DEBUG] POST https://[hidden]/rpc/v1/request: retrying in 1s (30 left)
2019/10/19 19:38:46 [ERR] POST https://[hidden]/rpc/v1/request request failed: Post https://[hidden]/rpc/v1/request: dial tcp 138.68.237.101:443: i/o timeout
2019/10/19 19:38:46 [DEBUG] POST https://[hidden]/rpc/v1/request: retrying in 1s (30 left)
2019/10/19 19:39:16 [ERR] POST
View drone-server-log
license: ""
authn:
endpoint: ""
secret: ""
skipverify: false
agent:
disabled: false
azureblob:
containername: ""
storageaccountname: ""
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script src="https://wzrd.in/standalone/expect@latest"></script>
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script src="https://wzrd.in/standalone/expect@latest"></script>
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script src="https://wzrd.in/standalone/expect@latest"></script>
View FileInfo
export class FileInfo implements IFileInfo {
constructor(
public exists: boolean,
public length: number,
public physicalPath: string,
public name: string,
public displayName: string,
public lastModified: Date,
public validUntil: Date,
public isDirectory: boolean,
View gist:beab2a21902e4363dde7321548e0a720
const https = require("https");
const url =
"https://gbfs.citibikenyc.com/gbfs/en/station_information.json";
https.get(url, res => {
res.setEncoding("utf8");
let body = "";
res.on("data", data => {
body += data;
});
res.on("end", () => {
View gist:adb5c719a10e61e23de863c8e83a5999
Even Or Odd
Complexity: Constant Time O(1)
Reason: No looping or recursion.
Are You Here?:
Complexity: Polynomial Time O(n^2)
Reason: Worst case is that both arrays do not contain any overlapping values,
then for every element in array1, the algorithm loops through every element in array2.
View gist:7e46c588207f172c8a8c2022e1630d46
Live: http://nicklolsen.github.io/
Repo: http://github.com/nicklolsen/nicklolsen.github.io
View Portfolio written assets
# I'm Nick, a full stack developer and programming nerd.
## Bio
I am graduate of Thinkful's flex technology program. I'm interested in software engineering best practices, maintainability, scalability and high quality code. Software development is a big field and I have a lot learn, which I find pretty exciting.
I'm also utterly devoted to my wife and young daughter, for whom I try to be the best I can be. I'm a big believer in cleaning your room and slaying dragons.
## Projects
### BeerWeather