Hotodogo: Night-City
#Hello Edgerunners, welcome to the Night-City.

Welcome!

Scheme 003:Table

作为Lisp语言大家族的一员,Scheme同样擅长于处理表。你应该理解表以及有关表的操作以掌握Scheme。表在在后面章节中的递归函数和高阶函数中扮演重要角色。 在本章中,讲解基本的表操作,例如cons,car,cdr,list和quote。 3.2 Cons单元和表 3.2.1 Cons单元 首先,让我解释一下表的元素:Cons单元 (Cons cells) 。Cons单元是一个存放了两个地址的内存空间。Cons单元可用函数cons生成。 在前端输入(cons 1 2) (cons 1 2) ;Value 11: (1 . 2) 系统返回(1 . 2)。如图一所示,函数cons给两个地址...

Scheme 002:Calculate

2.1 简介 让我们把Scheme解释器当作计算器来使用。 2.2 将Scheme作为一个计算器 点击 开始 → 所有程序 → MIT Scheme → Scheme 来启动Scheme解释器以及如下图所示的控制台。 首先,让我们计算1加2的值,在提示符中输入(+ 1 2): 1 ]=> (+ 1 2) ;Value: 3 1 ]=> 解释器返回3作为答案。请注意以下三点: 一对括号代表了一次计算的步骤。本例中,(+ 1 2)代表步骤1+2。 左括号后紧跟着一个函数的名字,然后是参数。Scheme中大多数的操作符都是函数。在本例中,函数+首先出现,然后紧跟两个参数:1...

Scheme 001:Install MIT-Scheme

1.1 为什么使用Scheme 使用Scheme,你可以: 编写漂亮的程序。 享受编程的乐趣。 这些就是为什么要学习Scheme的原因。在你用Scheme编写一些实用程序的时候会遇到一些困难。 然而,正因为这是一门值得学习的语言,所以许多卓越的黑客钟爱Scheme。事实上,计算机程序的构造和解释 (Structure and Interpretation of Computer Programs,SICP) ——最好的计算机科学教科书之一——使用Scheme来描述演示程序。GNU也使用Scheme (一种被称作guile的实现) 作为其应用软件的通用脚本语言。guild相当于M...

Renaming Variables in Xcode

For both persons and programming variables, a good name is an invitation to a prosperous life. Luckily for your Objective-C variables, changing their name is easier than the legal trouble of changing your own name to 'Max Power'. Find out how: 'Edit All In Scope' To rename a symbol present solely in...

Pebble Smart-watch, Xcode 5 and OS X Mavericks

After stumbling a few times while setting up my development environment for the Pebble Smart-watch, I decided to write a step-by-step guide on the topic to save time and sanity to other developers coding their first application for Pebble using Xcode 5 under OS X Mavericks and iOS. Things You'll Wi...

Command that Terminal

In case somebody else is using the left and right arrows to navigate through typed commands, I've compiled a list of useful shortcuts for the Terminal: Ctrl + A: Go to the beginning of the line. Ctrl + E: Go to the end of line. Ctrl + F: Move the cursor position one space forward. Ctrl + B: Move th...

UNIX/Linux : 让 man 手册变为彩色

用过 Unix/Linux 的朋友一定知道 man 指令,但是黑白的 man 手册看起来还是蛮费劲的。那就让我们来把它变为彩色吧。 首先,你当然要知道自己所使用的 shell 是什么,你可以使用 echo $SHELL 来查看。这里我以 Mac OS X 10.3 之后使用的 bash 为例。 编辑 ~/.bash_profile 或 /etc/bashrc 文件,插入下面的内容: # HIGHLIGHT MANUAL PAGE CONTENTS export LESS_TERMCAP_mb=$'\E[01;33m' export LESS_TERMCAP_md=$'\...

The data beyond the JPEG

JPEG files from a digital camera include lots of information beyond the actual picture. Camera settings, serial numbers, flash setups and more are included in one of many formats like Exif, IPTC, JFIF or TIFF. To simplify the extraction and reading of all those properties, I've programmed Bravo, an ...

RegEx: Syntax

正则表达式是一种文本模式,包括普通字符 (例如,a 到 z 之间的字母) 和特殊字符 (称为"元字符) 。模式描述在搜索文本时要匹配的一个或多个字符串。 正则表达式示例 表达式 匹配 /^\s*$/ 匹配空行。 /\d{2}-\d{5}/ 验证由两位数字、一个连字符再加 5 位数字组成的 ID 号。 /<\s*(\S+)(\s[^>]*)?>[\s\S]*<\s*\/\1\s*>/ 匹配 HTML 标记。 正则表达式语法 字符 说明 \将下一字符标记为特殊字符、文本、反向引用或八进制转义符。例如,"n匹配字符"n。"\n匹配换行符。序列"\\匹配"\,...

OS X: Terminal Cheatsheet

Terminal Cheatsheet for Mac 快捷键 按键/命令 描述 Ctrl + A 移动光标至行首 Ctrl + E 移动光标至行尾 Ctrl + L 清屏 Command + K 清屏 Ctrl + U 删除光标前的所有文字。如果光标位于行尾则删除整行。 Ctrl + H 与退格键相同 Ctrl + R 检索使用过的命令 Ctrl + C 终止当前执行 Ctrl + D 退出当前shell Ctrl + Z 将执行中的任何东西放入后台进程。fg可以将其恢复。 Ctrl + W 删除光标之前的单词 Ctrl + K 删...

What's this?

The Night-City version of Hotodogo inspired by Cyberpunk 2077. Not finished yet.

Pinned Message

The Founder and CEO of Infeca Technology.

Developer, Designer, Blogger.

Big fan of Apple, Love of colour.

Feel free to contact me.

反曲点科技创始人和首席执行官。

开发、设计与写作皆为所长。

热爱苹果、钟情色彩。

随时恭候 垂询