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
(setq inferior-lisp-program "/usr/bin/sbcl") | |
(add-to-list 'load-path "~/.emacs.d/site-lisp/slime/") | |
(require 'slime) | |
(defun smp/set-up-slime-repl-auto-complete() | |
"Bind TAB to 'indent-for-tab-command', as in regular Slime buffers" | |
(local-set-key (kbd "TAB") 'indent-for-tab-command)) | |
(eval-after-load 'slime |
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
PS1='\[\e[0;31m\]\u\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\e[0;31m\]\$ \[\e[m\]\[\e[\ | |
0;32m\]' |
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
! | |
! Swap Caps_Lock and Control_L | |
! | |
remove Lock = Caps_Lock | |
remove Control = Control_L | |
keysym Control_L = Caps_Lock | |
keysym Caps_Lock = Control_L | |
add Lock = Caps_Lock | |
add Control = Control_L |
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
import requests | |
import random | |
def random_c(): | |
rand = random.randint(0,35) | |
if rand < 10: | |
ch = str(rand) | |
else: | |
ch = chr(rand + 55) | |
return ch |
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
#! /usr/bin/env python -tt | |
# Author: Bank | |
# 1. ask for draft file path: default -> ./draft | |
# 2. add info at the front of new file | |
# 3. add draft at the end of the file | |
# 4. git add [filename] | |
# 5. git commit -m [filename] | |
# 6. git push site |
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
# contains by Bank | |
(defun contains (E L) | |
(cond | |
((null L) nil) | |
((eq E (car L)) t) | |
(t (contains E (cdr L))))) |
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
你的名字叫陈璜骁,你是南京大学09级计算机科学与技术系的一名学生。 | |
你从小立志成才,你的终极理想是通过自己的努力使祖国更加繁荣,世界更加美好,人们生活得更加幸福。其实,小时候,你的报国理想非常纯真,也许用哲学术语来说可以称作朴素的爱国主义。每当你佩戴着鲜艳的红领巾,站在旗杆下看五星红旗冉冉升起时,你就感到无比光荣;每当你听到庄严的国歌奏响时,你就有一种神圣的使命感;每当你看到历史书上近代中国被迫求和的屈辱,你就感到特别愤慨,发誓一定要努力学习,用自己的力量为新中国的建设做出贡献。随着年龄的增长,你阅读了许多书籍,经历了许多事情,对人生的价值有了更深的理解。你想,你的理想已不仅限于建设祖国了,你所追求的是世界的和谐,人类的幸福。你发现,世界上还有很多人生活在苦难之中,天灾也许在所难免,但人祸却本是不必要的。为什么人类之间有这么多不公平?为什么国与国之间要发生战争?为什么有些人很富有,但却穷得只剩下钱了?为什么有些人会为了金钱甘愿铤而走险,步入犯罪的深渊?太多的为什么时常触发你的沉思,你想,你应该做点什么,为世界上还痛苦着的人们做点什么。这个是你的终极目标,也是你所认为人生一世的价值。当然现在谈这个理想有点遥远,毕竟你还只是个普通的大学生。所以,你的近期目标是好好学习,不断提高自己的各方面能力,将来成就自己的事业,实现个人的成功,当你拥有一定的能力和号召力时,你再向着更崇高的方向奋斗。 | |
正因为有远大的志向,所以你目标明确,自强不息。从小,你就刻苦努力,勤奋好学。你成绩优异,小升初和中考时分别进入了苏州最好的初中和高中,高考中你也发挥了应有的水平,考上了南京大学。然而,你认真学习,远非单纯为了成绩,你觉得分数只是衡量和检测知识掌握程度的一种评判准则,你们学习,更重要的是要学到知识,学到发现、分析、思考、解决问题的能力。与此同时,你也积极参与班级事务,担任过班长、副班长、中队长、大队委等职务,你热心为同学服务,竭诚为班级出力,在摸索中探寻科学、高效、民主的班级管理方法,在同学和老师之间架起沟通的桥梁。你的兴趣爱好也很广泛,你喜欢临摹柳公权的楷体,喜欢用画笔描绘心中的美景,喜欢哼唱优美的歌曲,喜欢结交志同道合的朋友。总之,你总是以积极乐观的心态认真地对待每一天,你相信你的未来不是梦。 | |
你想你的这种心态造就了你平和开朗的性格。你从不急功近利,追求浮夸的成功与虚荣,因为一切荣誉只能代表 |
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
#include "stdlib.h" | |
#include <iostream> | |
using namespace std; | |
int | |
main(int argc, char** argv){ | |
char* text = "Hello World!\n" | |
//This is a comment | |
cout << text << endl; |