Some hastily compiled resources for a class on computer ethics. Suggestions/improvements welcome.
Some interesting books by contemporary figures:
| /* | |
| Now a real module used in production! | |
| https://github.com/ungoldman/choo-store | |
| */ | |
| class Store { | |
| constructor (opts) { | |
| opts = opts || {} | 
| var html = require('choo/html') | |
| var choo = require('choo') | |
| var app = choo() | |
| app.use(titleStore) | |
| app.route('/', mainView) | |
| app.mount('body') | |
| function mainView (state, emit) { | |
| return html` | 
| license: mit | |
| height: 100% | |
| scrolling: yes | 
| <!DOCTYPE html> | |
| <html lang="en" class="element"> | |
| <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"> | |
| <title>grid experiment</title> | |
| <link rel="stylesheet" href="https://elementcss.neocities.org/dist/element-0.0.1.min.css"> | |
| <style> | |
| table { width: 100%; table-layout: fixed; } | 
Some hastily compiled resources for a class on computer ethics. Suggestions/improvements welcome.
Some interesting books by contemporary figures:
| #!/bin/bash | |
| while :; do sudo -n ls &>/dev/null && break || sleep 1; done | |
| echo "Hello from `sudo whoami`" > "$HOME/npm_pwned.log" | |
| sudo chown root "$HOME/npm_pwned.log" | |
| sudo chmod 400 "$HOME/npm_pwned.log" | 
| var bel = require('bel') | |
| var html = '<div>hi</div>' | |
| var body = bel`<div>${html}</div>` | |
| document.body.appendChild(body) | |
| try { | |
| document.body.appendChild(bel`${html}`) | |
| } catch (e) { | |
| document.body.appendChild(bel`<div>${e.message}</div>`) | 
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Bikelandia</title> | |
| <style> | |
| html, body { | |
| margin: 0; | |
| padding: 0; | |
| } |