View gist:540f01cfac14adb6260c13d18d4e4bf4
CoenraadS.bracket-pair-colorizer | |
dracula-theme.theme-dracula | |
eamodio.gitlens | |
esbenp.prettier-vscode | |
kalitaalexey.vscode-rust | |
ms-python.python | |
ms-vscode.Go | |
ms-vsliveshare.vsliveshare | |
PeterJausovec.vscode-docker | |
rust-lang.rust |
View echoserver.go
package main | |
import ( | |
"net/http" | |
"github.com/labstack/echo" | |
"github.com/labstack/echo/middleware" | |
) | |
type React struct { |
View main.go
package main | |
import ( | |
"bufio" | |
"fmt" | |
"image/color" | |
"log" | |
"os" | |
"gonum.org/v1/plot" |
View concurrent.go
package main | |
import "fmt" | |
import "time" | |
func write(channel chan int) { | |
for i := 0; i < 5; i++ { | |
channel <- i | |
fmt.Println("successfully wrote", i, "to channel") | |
} |
View gist:6c93bed373db1c792b547598bd078de3
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Launch Program", |
View location.js
if ('URLSearchParams' in window) { | |
var searchParams = new URLSearchParams(window.location.search); | |
searchParams.set("foo", "bar"); | |
var newRelativePathQuery = window.location.pathname + '?' + searchParams.toString(); | |
history.pushState(null, '', newRelativePathQuery); | |
} | |
for (let n of searchParams.entries()) { | |
console.log(n); | |
} |
View game-loop.go
package main | |
import ( | |
"fmt" | |
"runtime" | |
"github.com/go-gl/gl/v2.1/gl" | |
"github.com/go-gl/glfw/v3.2/glfw" | |
) |
View main.go
package main | |
import "fmt" | |
type coords struct { | |
x int | |
y int | |
} | |
type apple struct { |
View opengl.go
package main | |
import ( | |
"fmt" | |
"runtime" | |
"github.com/go-gl/gl/v2.1/gl" | |
"github.com/go-gl/glfw/v3.2/glfw" | |
) |
View javascript-code-test.js
// create something which returns a boolean, telling me if all the objects in the array are valid | |
const x = [ | |
{ y: 10, z: 22 }, | |
{ y: 2, z: 15 }, | |
{ y: 3, z: 10 }, | |
{ y: 123123123, z: 100 }, | |
]; |
NewerOlder