Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View viktorstrate's full-sized avatar
🐬

Viktor Strate Kløvedal viktorstrate

🐬
View GitHub Profile
@viktorstrate
viktorstrate / rushdurino.ino
Last active March 15, 2017 21:07
Blinks the pattern from the song "YYZ" by Rush. Using the built in LED on an arduino
/*
Name: rushdurino
Description: Blinks the pattern from the song "YYZ" by Rush
*/
int led = 13;
void setup() {
pinMode(led, OUTPUT);
}

Keybase proof

I hereby claim:

  • I am viktorstrate on github.
  • I am viktorstrate (https://keybase.io/viktorstrate) on keybase.
  • I have a public key whose fingerprint is C78D 0C37 2892 A598 8FEE 4C40 3F85 5605 109C 1E8A

To claim this, I am signing this object:

@viktorstrate
viktorstrate / socketio.js
Created December 14, 2016 17:31
An example of socket.io
/***
/* Example by Viktor Hundahl Strate
*/
// The server stored in the variable 'app', with the function on line 12 called 'handler'
var app = require("http").createServer(handler),
// Imports the socket.io in the folder 'node_modules'
io = require("socket.io").listen(app),
// Imports the file server
fs = require("fs");
@viktorstrate
viktorstrate / isoInstaller.sh
Last active January 2, 2016 15:15
A script for mac to install an ISO to a disk like a USB stick. Based on the guide by ubuntu http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx
#!/bin/sh
clear
echo "Install ISO on disk"
iso_path=""
# While $iso_path is empty
while [ -z $iso_path ]
do