Skip to content

Instantly share code, notes, and snippets.

View johanmcos's full-sized avatar

Johan M. Cos johanmcos

  • Comcast Corporation
  • Lehigh Valley, PA
View GitHub Profile
@johanmcos
johanmcos / resume.json
Last active September 25, 2021 18:43
Resume
{
"basics": {
"name": "Johan M. Cos",
"label": "Software Developer at Comcast Corporation",
"image": "https://avatars.githubusercontent.com/u/11396737?v=4",
"email": "johanmcos@me.com",
"summary": "I'm a mid-level software developer, with key areas of expertise in Go, Python, TypeScript, and Linux.\n\nI'm passionate about technology and innovation. I love working in teams of similarly minded people to leverage emerging technologies in order to solve key problems. \n\nI find great joy in collaboration with others, and strongly believe in treating everyone with empathy and respect. If I had one motto, it would be “act in good faith in everything you do”. \n\nI think nurturing a sense of psychological safety is critical. For a team to flourish, every member must feel that they're able to express themselves without fear of their ideas being belittled or dismissed arbitrarily. ",
"profiles": [
{
"network": "GitHub",
@johanmcos
johanmcos / json_encoding.go
Last active August 27, 2021 14:06
example of JSON encoding
package main
import (
"encoding/base64"
"encoding/json"
"fmt"
)
const appVersion string = "v1"
@johanmcos
johanmcos / export_installed_flatpaks.md
Created October 15, 2020 16:53
export import-able list of installed flatpaks

I was switching to a new computer today and wanted to install all the flatpaks on my old one, without having to do anything manually of course

It turned out to be pretty easy, but I didn't find any obvious guide on the internet, so I figured I would document my solution

At first I tried the command: flatpak list --app --columns=application > installed_flatpaks.txt This will give you a list of only the application ID's, but each will be on a newline

The issue is that each ID is on its own line. To fix this, I added a second part to the command: flatpak list --app --columns=application | xargs echo -n > installed_flatpaks.txt

@johanmcos
johanmcos / index.html
Created August 13, 2020 14:48
three.js point cloud example
<div id="canvas-holder">
<canvas id="maincanvas" width="300" height="300"></canvas>
</div>
@johanmcos
johanmcos / script.js
Created August 13, 2020 14:47
Three Js Point Cloud Experiment
(function() {
'use strict';
// 'To actually be able to display anything with Three.js, we need three things:
// A scene, a camera, and a renderer so we can render the scene with the camera.'
// - https://threejs.org/docs/#Manual/Introduction/Creating_a_scene
var scene, camera, renderer;
// I guess we need this stuff too
var container, HEIGHT,
@johanmcos
johanmcos / Dockerfile
Last active August 12, 2020 16:01
jupyter trimesh-notebook
###
# Trimesh-Notebook, Jupyter notebook pre-installed with Trimesh and bundled with their example files.
# Copyright (C) 2020 Johan M. Cos
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,