作业要有目的性; 班级的培养目标是什么? 什么是「计算机科学家」? 实际上, 抑或是「工程师」?
目的直接决定了课程设置的方向和思路。
自顶向下? 自底向上? 实验入手? whatever?
grammar Heredoc; | |
@lexer::members { | |
public boolean heredocValid (String str) { | |
String[] lines = str.split("\n"); | |
String first = lines[0], last = lines[lines.length - 1]; | |
return first.substring(2).equals(last); | |
} | |
} |
// -*- mode: Rust; -*- | |
class Complex ( | |
RealType extends Math.Field = Float, | |
ImagType extends Math.Field = RealType, | |
) extends Math.Field { | |
constructor (real: RealType, imag: ImagType) {} | |
fn + (that: Complex) = Complex(real + that.real, imag + that.imag) | |
fn +-inverse = Complex(-real, -imag) | |
fn abs = (this * conj).real.sqrt() |
/** | |
* Usage: | |
* <app-bar> | |
* <teleport-target name="app-bar" /> | |
* </app-bar> | |
* And then: | |
* <teleport to="app-bar"> | |
* <h1>Hello World!</h1> | |
* </teleport> | |
*/ |
<template> | |
<main> | |
<p v-if="loading">Loading todos...</p> | |
<p v-else-if="loadError">Error loading todos: {{ loadError }}</p> | |
<template v-else> | |
<p>Add a todo: <input v-model="newTodo"> <button @click="addTodo">add</button></p> | |
<ul> | |
<li v-for="todo in todos" :key="todo.localId"><button @click="removeTodo(todo)">Remove</button> {{ todo.content }}</li> | |
</ul> | |
</template> |
#!/usr/bin/env node | |
const readline = require('readline') | |
const printer = require('node-native-printer') | |
const [ ,, filePath, pageCount, printerName ] = process.argv | |
if (!filePath || !pageCount) process.exit(-1) | |
const print = function (options) { | |
const res = printer.print(filePath, options, printerName || 'HP_LaserJet_Professional_M1136_MFP') | |
if (!res) throw 'No result from CUPS' |
const ᆖ=9007199254740991,ᆖ=67108864,ᆖ=1145141,ᆖ=1,f=ᆖ=>ᆖ>ᆖ&&ᆖ*ᆖ<ᆖ&&ᆖ===ᆖ&&!((ᆖ,ᆖ,ᆖ,ᆖ,ᆖ,ᆖ)=>ᆖ=ᆖ=>--ᆖ>ᆖ?((ᆖ=ᆖ=>--ᆖ>ᆖ?((ᆖ=ᆖ=>--ᆖ>ᆖ?(ᆖ=(ᆖ*ᆖ)%ᆖ,ᆖ=(ᆖ*ᆖ)%ᆖ,ᆖ()):ᆖ)(),ᆖ()):ᆖ)(),ᆖ()):ᆖ&&ᆖ)(ᆖ,ᆖ,ᆖ)() |
I hereby claim:
To claim this, I am signing this object:
# TODO | |
import librosa | |
import json | |
import time | |
__version__ = 1 | |
__authors__ = ['Alan-Liang'] | |