Skip to content

Instantly share code, notes, and snippets.

View SpaceK33z's full-sized avatar

Kees Kluskens SpaceK33z

  • Amsterdam, The Netherlands
View GitHub Profile
@SpaceK33z
SpaceK33z / points.ts
Created June 4, 2019 12:13
Modulaser out of bounds code
export function streamFrame(_points: Point[]) {
// TODO: dunno how expensive this function call is but it could be done less
const applyPerspective = dacConfig.projectionMap
? projectionMap(dacConfig.projectionMap)
: DEFAULT_PROJECTION_MAP;
let blankedPrevious = false;
scene.points = _points.reduce((acc: Point[], p: Point) => {
let { x, y } = p;
@SpaceK33z
SpaceK33z / macos-to-windows.md
Last active March 8, 2023 16:11
macOS to Windows Project [WIP]

Package manager

Chocolatey seems to be the king. Make sure to install this first since you can install almost all apps below with it!

File exploring

Seer is a good Spotlight alternative.

I need to find a quick way to access the downloads/screenshots folder like on macOS from the dock, preferably without opening the Explorer.

Best unzip/extract tool? I guess 7zip?

@SpaceK33z
SpaceK33z / index.js
Last active January 23, 2018 10:31
mobx-spine url param binding pseudocode
class MyScreen extends Component {
componentWillMount() {
this.store = new Store();
this.urlParamBinding = UrlParamBinding(this.store, {
// This are the default props
});
}
componentWillUnmount() {
if (this.urlParamBinding) {
@SpaceK33z
SpaceK33z / gist:c511d124d21ef7e3399b
Last active August 29, 2015 14:21
PC Remote Control Webapp

Allows you to execute shell commands from a webapp. It lists commands as a card with an icon.

Use cases:

  • Party.
  • Lying on bed and being lazy.

For example: I'm lying on bed and I want to view some series. I tap on 'Open Plex' in the webapp, open the Plex Android app and setup a serie. After finishing, I want to listen to Spotify. I tap on 'Open Spotify' and continue controlling Spotify with their app. After that I want to go to sleep. I tap on 'Shutdown'.

Main file: commands.json Lists all the commands you want to be able to execute from the webapp. Only these commands can be executed.

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDk5ysLZs1yE68Zz+uFSo9EAnwQ1Sviu/42VysGubzGPvv87Rgqd33h4pwDfUIepabarnZ7p8kWJ/Vh0AhPxY0iMVqr1dHJM4Xus/YqzTBYaurqm1P1IDK8EQ58GQFfGzSH0fpozYgnu5kljukxBU7Wgj77Og5kJNNbh911HBAKxeEfluDygoo1yzoK9aofrfb3qF75miGFz+dvJP4yKMNAaF8SlpOKpX9EEQaGEio45cbE7sTRcqk51DOgp0LR60OlWwwVFJVA2jaBz8+4g08VJh2aXydLJmEJmb7OqGDuC8qSHJnRAjUPok1DEh+NF+dizpJCyEuR5AQKql9fef+j kees@MBPrKees.local
@SpaceK33z
SpaceK33z / .bash_aliases
Last active August 29, 2015 14:01
bash_aliases
# 'easy extract'
extract () {
if [ -f "$1" ] ; then
case $1 in
*.tar.bz2) tar xjf "$1" ;;
*.tar.gz) tar xzf "$1" ;;
*.bz2) bunzip2 "$1" ;;
*.rar) unrar e "$1" ;;
*.gz) gunzip "$1" ;;
*.tar) tar xf "$1" ;;