Skip to content

Instantly share code, notes, and snippets.

David David-Else

Block or report user

Report or block David-Else

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@David-Else
David-Else / centos8-ultimate-setup-script.sh
Last active Oct 16, 2019
centos8 ultimate setup script
View centos8-ultimate-setup-script.sh
#!/bin/bash
# FINAL tested 16/10/19
GREEN=$(tput setaf 2)
BOLD=$(tput bold)
RESET=$(tput sgr0)
if [ "$(id -u)" = 0 ]; then
echo "You're root! Run script as user" && exit 1
@David-Else
David-Else / centos8-ultimate-install-script.sh
Last active Oct 16, 2019
centos8 ultimate install script
View centos8-ultimate-install-script.sh
#!/bin/bash
# select SOFTWARE / Software Selection / Base Environment > Workstation
# when you create user tick 'make user administrator'
# FINAL tested 16/10/19, still unreleased ntfs-3g borgbackup syncthing wine
#==============================================================================
# script settings and checks
#==============================================================================
set -euo pipefail
@David-Else
David-Else / vuejs-natural-expression-calculator-app.html
Created Jun 25, 2018
vuejs-natural-expression-calculator-app-html
View vuejs-natural-expression-calculator-app.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="./src/main.css">
<script type="module" src="./src/main.js"></script>
<title>9-Energy Natural Expression Generator</title>
@David-Else
David-Else / vuejs-natural-expression-calculator-app.js
Created Jun 22, 2018
vuejs-natural-expression-calculator-app
View vuejs-natural-expression-calculator-app.js
/* global Vue */
import {
primaryNumberMales,
primaryNumberFemales,
secondNumberMales,
secondNumberFemales,
thirdNumberArray,
} from './data.js';
Vue.component('results', {
@David-Else
David-Else / es6-zombie-attack-bundle.js
Last active Jun 20, 2018
es6-zombie-attack-bundle
View es6-zombie-attack-bundle.js
/* https://www.elsewebdevelopment.com/ */
class OnScreenObject {
constructor({ xPosition, yPosition }) {
this.xPosition = xPosition;
this.yPosition = yPosition;
}
move() {
this.xPosition += this.xSpeed;
this.yPosition += this.ySpeed;
View es6-zombie-attack.js
/* http://www.elsewebdevelopment.com/ */
(function () {
'use strict';
const utils = {
events: {},
// utils.subscribe("nameofevent", callback);
// utils.publish("nameofevent", 4);
// utils.unsubscribe("nameofevent", callback);
You can’t perform that action at this time.