Scheme programs can define and use new derived expression types, called macros. Program-defined expression types have the syntax
(<keyword> <datum> ...)
where is an identifier that uniquely determines the
\documentclass[a4]{article} | |
\usepackage[utf8]{inputenc} | |
\usepackage[english]{babel} | |
\usepackage{mla} | |
\begin{document} | |
\begin{mla}{Shou}{Ya}{Nathan Engquist}{Theory of Knowledge}{\today} | |
\phantom{first} |
1.upto(17) do |x| | |
1.upto(10) do |y| | |
url = "http://media.pearsoncmg.com/intl/ema/9780435074968_" \ | |
"Garry_Wazir/workedsolutions/HL_Exercise_" \ | |
"#{x}.#{y}_Worked_Solutions.pdf" | |
`wget -c #{url}` | |
end | |
url = "http://media.pearsoncmg.com/intl/ema/9780435074968_" \ | |
"Garry_Wazir/workedsolutions/" \ |
x(l,x0) := if equal(l,1) then | |
x0[2] * t - x0[1] * t + x0[1] | |
else | |
expand(x(1,[x(l-1,makelist(x0[i],i,1,length(x0)-1)), | |
x(l-1,makelist(x0[i],i,2,length(x0)))])); | |
usage: | |
factor(x(2,[x[0],x[1],x[2]])); |
; -*- scheme -*- | |
(define (derivative expr var) | |
(cond | |
((number? expr) 0) | |
((variable? expr) (if (eq? expr var) 1 0)) | |
((sum? expr) | |
(make-sum (derivative (addend expr) var) | |
(derivative (augend expr) var))) |
Scheme programs can define and use new derived expression types, called macros. Program-defined expression types have the syntax
(<keyword> <datum> ...)
where is an identifier that uniquely determines the
#!/bin/sh | |
## | |
## This file is for replace the typical init program, do some | |
## pre-checking work before shutting down or other stuff. | |
## | |
## Written by Shou Ya, at 23 June, 2012 | |
## | |
## |
#!/usr/bin/env bash | |
# -*- shell-script -*- | |
# cas - c as script | |
# A script which support act C language code as a script. | |
# | |
# Usage: | |
# cas [COMPILE_OPTIONS] [source_file] [EXECUTE_ARGUMENTS] | |
# the source_file should be appoint otherwise it'll use /dev/stdin automically. | |
# |
# | |
# This script is a convenient tool that takes colordict history from stdin | |
# and filters all starred vocabularies, queries the dict for meaning, then outputs | |
# a file for anki to import. | |
# | |
# Requires: | |
# * sdcv (stardict commandline version) | |
# | |
# | |
# This script is licensed by WTFPL. |
int __stdcall UnLockPwd(int a1, int a2) | |
{ | |
signed int v2; // esi@1 | |
int v3; // edx@1 | |
int v4; // ecx@1 | |
signed int v5; // edi@1 | |
int v6; // eax@2 | |
int i; // esi@2 | |
signed int j; // esi@6 | |
signed int k; // esi@11 |