- Turing model (Note: Mathematical model of computation)
- Data Processor (Note: Like a function)
- Programmable Data Processor
- The universal turing machine
- The Von Neumann Model
- concept: program state stored in memory, program stored as binary patterns
- 4 subsystems: Memory, Arithmatic logic unit, control unit, I/O
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from numpy import * | |
def compute_error_function(dataset, current_m, current_c): | |
error = 0 | |
for i in range(0, len(dataset)): | |
x = dataset[i, 0] | |
y = dataset[i, 1] | |
error += (y - (current_m * x + current_c)) ** 2 | |
return (error / float(len(dataset))) * 0.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32.502345269453031 | 31.70700584656992 | |
---|---|---|
53.426804033275019 | 68.77759598163891 | |
61.530358025636438 | 62.562382297945803 | |
47.475639634786098 | 71.546632233567777 | |
59.813207869512318 | 87.230925133687393 | |
55.142188413943821 | 78.211518270799232 | |
52.211796692214001 | 79.64197304980874 | |
39.299566694317065 | 59.171489321869508 | |
48.10504169176825 | 75.331242297063056 | |
52.550014442733818 | 71.300879886850353 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function cardAt(n) { | |
const a = ['C', 'D', 'H', 'S'], | |
b = [2, 3, 4, 5, 6, 7, 8, 9, 0, 'J', 'Q', 'K', 'A'] | |
const c = Math.floor(n / b.length), | |
d = n - (b.length * c) | |
return b[d] + a[c] | |
} |
- Coming soon (Static Site)
- Landing Page (Static Site + Firebase + Google Drive)
- Candidate Annoucement
- Homework Upload
- Payment Verify
- Interview Queue (Static Site)
- Registration (Static Site) => Make it reuse next time
- Grading System (Static Site) => Maybe Reuse
- Backend Service for Regis & Grading (NodeJS, Mongo) => Maybe Reuse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Trigger, Events & String (Hello World) | |
on click: | |
the clicked block is a bedrock | |
message "§aHello World, I'm §l%player%" | |
# Custom Command (/car - Riding a horse) | |
command /car: | |
executable by: players | |
trigger: | |
spawn a horse at player |
OlderNewer