Installer Xpenology sur un NAS ReadNas
Préparation
Le NAS utilisé ici est un NAS avec processeur Intel 64 bits, un Netgear ReadyNAS Ultra 2 (RNDU2000).
Liste de courses :
- une clé USB pour mettre XPEnoboot
class Anagram { | |
constructor(word) { | |
this.word = word; | |
} | |
get uniqChars() { | |
var chars = this.word.split('').filter((letter, index) => this.word.indexOf(letter,index+1) === -1); | |
chars.sort(); | |
return chars; | |
} |
class Snail { | |
static rotate(array) { | |
return array[0].map((_, lineIndex) => { | |
var lineLength = array[0].length; | |
return array.map((__, eltIndex) => { | |
return array[eltIndex][lineLength - lineIndex - 1]; | |
}); | |
}); | |
} |
// Sorry, I lost the tests.. | |
'use strict'; | |
class Fight { | |
constructor(knightPosition, kingPosition) { | |
this.knightPosition = Fight.cleanPosition(knightPosition); | |
this.kingPosition = Fight.cleanPosition(kingPosition); | |
} | |
static cleanPosition(rawPosition) { |
Le NAS utilisé ici est un NAS avec processeur Intel 64 bits, un Netgear ReadyNAS Ultra 2 (RNDU2000).
Liste de courses :
Le NAS utilisé ici est un NAS avec processeur Intel 64 bits, un Netgear ReadyNAS Ultra 2 (RNDU2000).
Liste de courses :
#!/bin/bash | |
# Stops accidental commits to master | |
# Inspired from https://gist.github.com/stefansundin/9059706 | |
# To download: curl -fL -o ".git/hooks/pre-commit" "https://gist.github.com/pierrecle/d04230da2e978af7c4fb/raw/pre-commit" && chmod +x .git/hooks/pre-commit | |
BRANCH=`git rev-parse --abbrev-ref HEAD` | |
if [[ "$BRANCH" == "master" ]]; then | |
echo "You are on branch $BRANCH. Are you sure you want to commit to this branch?" | |
echo "If so, commit with -n to bypass this pre-commit hook." |
{ | |
"version": "0.1.0", | |
"command": "gulp", | |
"isShellCommand": true, | |
"args": [ | |
"--no-color" | |
], | |
"tasks": [ | |
{ | |
"taskName": "test", |