Skip to content

Instantly share code, notes, and snippets.

#台大合唱團冬季公演

##《覓秘-尋古典敘浪漫》 我們將延續 2014 年冬季公演《循尋》的合唱史脈絡,再次邀請車炎江老師擔任導聆人,從莫札特、海頓到羅西尼與布拉姆斯,演唱古典時期及浪漫時期的合唱經典曲目。下半場則為音樂劇《屋上提琴手》組曲,包含Tradition、If I Were a Rich Man、Sunrise, Sunset等著名曲目;另外,也將演唱中文經典歌曲與西洋流行老歌。

##票價優惠

  • 票價:400/600/800/1200
  • 除了1200是贊助票不打折,其它購票享九折優惠
  • 高中團體合購10張以上享八折優惠(無法與九折優惠合併)

#The TOY Assembly Language

The TOY language is an experimental ( educational ) assembly language target for TOY achitecture, and is a part of our final project C14-Assembler. Primary contributors to this project include: Andy , Tony and Borris.

##Directive

  • .DATA
  • .TEXT

Case-insensitive

; This is a sample TOY assembly language program
.DATA
foo 100
bar 200
.CODE
mov R1, 1 ; Initialize

#The TOY Machine Language

The TOY language is an experimental ( educational ) assembly language target for TOY achitecture, and is a part of our final project C14-Assembler. Primary contributors to this project include: Andy , Tony and Borris.

##Directive

  • .DATA
  • .TEXT

Case-insensitive

You kids these days have it great. You play with your Ruby or Python and just make objects and variables without any care for where they live. You don't care if it's on the "stack", and the heap? Fuggedaboutit. You don't even know, and you know what, chances are your language of choice doesn't even put the variables on stack at all. It's all heap, and you don't even know if it is.

A quote from Learn C the hard way

/* Problem statement at https://github.com/pangfengliu/programmingtasks/issues/270 */
#include<stdio.h>
#include<ctype.h>
#include<string.h>
#include<stdlib.h>
#include<assert.h>
#define MAX_VAR_LEN 8
#define MAX_VAR_NUM 100
#define MAX_LINE_NUM 1000
#define MAX_LINE_TOKENS 6

You remember, of course, what joy you felt when you laid aside the garments of boyhood and donned the man's toga, and were escorted to the forum; nevertheless, you may look for a still greater joy when you have laid aside the mind of boyhood and when wisdom has enrolled you among men. For it is not boyhood that still stays with us, but something worse, – boyishness. And this condition is all the more serious because we possess the authority of old age, together with the follies of boyhood, yea, even the follies of infancy. Boys fear trifles, children fear shadows, we fear both.

--From Seneca's letters to Lucilius, letter 4--


###What does "boys fear trifles" mean?

###Problem 1

Here's an excerpt from a model class in Play.

SQL("update entry set title={title}, content={content}, date={date} where id = {id}").on(
        'title -> entry.title,
        'content -> entry.content,
        'date -> entry.date,
 'id -&gt; entry.id
<?php
function convertToJSON($content){
$json = "[";
$row = explode("\n", $content);
$columnName = explode(",", $row[0]);
$len = count($row)-1;
$columnLen = count($columnName);
for ($i=0; $i < $columnLen; $i++) {
$columnName[$i] = trim($columnName[$i]);
}
<!DOCTYPE HTML>
<html>
<head>
<style>
.error {color: #FF0000;}
</style>
</head>
<body>
<?php