Skip to content

Instantly share code, notes, and snippets.

View Xayer's full-sized avatar
👨‍💻
Coding

Frederik Rabøl Xayer

👨‍💻
Coding
View GitHub Profile
@Xayer
Xayer / RGB light test
Created November 26, 2019 18:28
RGB light test
input.onButtonPressed(Button.A, function () {
while (true) {
for (let index = 0; index <= 3; index++) {
pins.digitalWritePin(DigitalPin.P0, 1)
basic.pause(500)
pins.digitalWritePin(DigitalPin.P0, 0)
basic.pause(500)
}
}
})
@Xayer
Xayer / microbitTest.js
Created November 19, 2019 18:17
Microbit test code
const faces = {
initialize: [
`. . . . .
. # . # .
. . . . .
. . . . .
. . . . .
`,
`. . . . .
. # . # .
@Xayer
Xayer / willow-development.sh
Created May 14, 2019 08:45
Willow environment installer
base_dir=$(pwd)
branch_color='\033[1;46m'
dir_color='\033[47m'
symlink_color='\033[47m'
default_color='\033[0m'
backend_dir=bonnier/ivd/willow-backend/
backend_branch=development
frontend_dir=bonnier/ivd/willow-frontend/
frontend_branch=development
base_theme_dir=bonnier/willow-base-theme/
@Xayer
Xayer / Jira Ticket Finder for your Pull Requests
Last active March 8, 2019 11:44
Finds Jira Ticket names in your commit messages, and adds them to a variable. copy to your javascript console, and watch magic happen.
var jiraDomain = 'https://jira.bonnier.dk/browse/';
var loadMore = document.querySelector('.ajax-pagination-btn');
var ticketNames = [];
var uniqueArray = function(arrArg) {
return arrArg.filter(function(elem, pos,arr) {
return arr.indexOf(elem) == pos;
});
};
if(loadMore !== null){