分享一份C语言写的简历

开发 后端
这里黑客新闻吗?作者用代码更新了自己的简历,是不是很接地气,特符合程序员的逼格。这是一份可读可执行的C语言源文件,也是作者编码风格的体现。

[[129908]]

这里黑客新闻吗?作者用代码更新了自己的简历,是不是很接地气,特符合程序员的逼格。这是一份可读可执行的C语言源文件,也是作者编码风格的体现。

  1. #include <stdio.h> 
  2. #include <time.h> 
  3.  
  4. typedef struct { 
  5.     union { 
  6.         char * company; 
  7.         char * school; 
  8.         char * project; 
  9.     }; 
  10.     union { 
  11.         char * location; 
  12.         char * url; 
  13.     }; 
  14.     union { 
  15.         char * title; 
  16.         char * program; 
  17.     }; 
  18.  
  19.     time_t started; 
  20.     time_t left; 
  21.  
  22.     char * description[]; 
  23. } thing_t; 
  24.  
  25. typedef thing_t job_t; 
  26. typedef thing_t school_t; 
  27. typedef thing_t project_t; 
  28.  
  29. #define CURRENT 0 /* I wasn't alive at the Unix epoch, so that'll work */ /* Contact Information */ char * name = "Kevin R. Lange"
  30. char * email = "klange@toaruos.org"
  31. char * address = "1045 Mission St, Apt 440\n" "San Francisco, CA 94103"
  32.  
  33. /* Education */ 
  34. school_t uiuc = { 
  35.     .school   = "University of Illinois at Urbana-Champaign"
  36.     .location = "Urbana, IL"
  37.     .program  = "BS Computer Science"
  38.     .started  = 1251158400
  39.     .left     = 1336608000
  40.     .description = { 
  41.         "Minor in International Studies in Engineering, Japan"
  42.         "Focused on systems software courses"
  43.         NULL 
  44.     } 
  45. }; 
  46.  
  47. school_t hit = { 
  48.     .school   = "Hiroshima Institute of Technology"
  49.     .location = "Hiroshima, Japan"
  50.     .program  = "Study Abroad"
  51.     .started  = 1274745600
  52.     .left     = 1278288000
  53.     .description = { 
  54.         "Cultural exchange program"
  55.         NULL 
  56.     } 
  57. }; 
  58.  
  59. school_t * schools[] = { 
  60.     &uiuc, 
  61.     &hit, 
  62.     NULL 
  63. }; 
  64.  
  65. /* Projects */ 
  66. project_t compiz = { 
  67.     .project = "Compiz Window Manager"
  68.     .url     = "http://compiz.org"
  69.     .title   = "Developer"
  70.     .started = 1201392000
  71.     .left    = 1264291200
  72.     .description = { 
  73.         "Minor plugin contributor"
  74.         "Various research projects"
  75.         NULL 
  76.     } 
  77. }; 
  78.  
  79. project_t toaruos = { 
  80.     .project = "ToAruOS"
  81.     .url     = "https://github.com/klange/toaruos"
  82.     .title   = "Lead"
  83.     .started = 1295049600
  84.     .left    = CURRENT, 
  85.     .description = { 
  86.         "Hobby x86 Unix-like kernel and userspace"
  87.         "Advanced in-house GUI with compositing window manager"
  88.         NULL 
  89.     } 
  90. }; 
  91.  
  92. project_t * projects[] = { 
  93.     &toaruos, 
  94.     &compiz, 
  95.     NULL 
  96. }; 
  97.  
  98. /* Employment History */ 
  99.  
  100. job_t yelp = { 
  101.     .company  = "Yelp, Inc."
  102.     .location = "San Francisco, CA"
  103.     .title    = "Software Engineer, i18n"
  104.     .started  = 1339977600
  105.     .left     = CURRENT, 
  106.     .description = { 
  107.         "Developed several internal tools and libraries"
  108.         "Provided critical input and design work for Yelp's launch in Japan"
  109.         NULL 
  110.     } 
  111. }; 
  112.  
  113. job_t apple_internship = { 
  114.     .company  = "Apple Inc."
  115.     .location = "Cupertino, CA"
  116.     .title    = "Software Engineering Intern"
  117.     .started  = 1306886400
  118.     .left     = 1314662400
  119.     .description = { 
  120.         "Built software framework for testing and verification of desktop retina display modes"
  121.         "Assisted other interns with Unix fundamentals"
  122.         NULL 
  123.     } 
  124. }; 
  125.  
  126. job_t * jobs[] = { 
  127.     &yelp, 
  128.     &apple_internship, 
  129.     NULL 
  130. }; 
  131.  
  132. void print_thing (thing_t * thing) { 
  133.     char started[100]; 
  134.     char left[100]; 
  135.     struct tm * ti; 
  136.     int i = 0
  137.  
  138.     printf ("%s at %s - %s\n", thing->title, thing->company, thing->location); 
  139.  
  140.     ti = localtime (&thing->started); 
  141.     strftime (started, 100"%B %d, %Y", ti); 
  142.  
  143.     if (thing->left == CURRENT)  { 
  144.         printf ("%s to now\n", started); 
  145.     } else { 
  146.         ti = localtime (&thing->left); 
  147.         strftime (left,    100"%B %d, %Y", ti); 
  148.         printf ("%s to %s\n", started, left); 
  149.     } 
  150.  
  151.     char ** desc = thing->description; 
  152.     while (*desc) { 
  153.         printf ("- %s\n", *desc); 
  154.         desc++; 
  155.     } 
  156.  
  157. int main (int argc, char ** argv) { 
  158.  
  159.     printf ("%s\n%s\n%s\n\n", name, email, address); 
  160.  
  161.     puts ("Education\n"); 
  162.     school_t ** s = schools; 
  163.     while (*s) { 
  164.         print_thing (*s); 
  165.         puts (""); 
  166.         s++; 
  167.     } 
  168.  
  169.     puts ("Employment\n"); 
  170.     job_t ** j = jobs; 
  171.     while (*j) { 
  172.         print_thing (*j); 
  173.         puts (""); 
  174.         j++; 
  175.     } 
  176.  
  177.     puts ("Projects\n"); 
  178.     project_t ** p = projects; 
  179.     while (*p) { 
  180.         print_thing (*p); 
  181.         puts (""); 
  182.         p++; 
  183.     } 
  184.  
  185.     return 0

#p#

编译后,我们看到的简历如下

Kevin R. Lange

klange@toaruos.org

1045 Mission St, Apt 440

San Francisco, CA 94103

Education

BS Computer Science at University of Illinois at Urbana-Champaign – Urbana, IL

August 25, 2009 to May 10, 2012

- Minor in International Studies in Engineering, Japan

- Focused on systems software courses

Study Abroad at Hiroshima Institute of Technology – Hiroshima, Japan

May 25, 2010 to July 05, 2010

- Cultural exchange program

Employment

Software Engineer, i18n at Yelp, Inc. – San Francisco, CA

June 18, 2012 to now

- Developed several internal tools and libraries

- Provided critical input and design work for Yelp’s launch in Japan

Software Engineering Intern at Apple Inc. – Cupertino, CA

June 01, 2011 to August 30, 2011

- Built software framework for testing and verification of desktop retina display modes

- Assisted other interns with Unix fundamentals

Projects

Lead at ToAruOS - https://github.com/klange/toaruos

January 15, 2011 to now

- Hobby x86 Unix-like kernel and userspace

- Advanced in-house GUI with compositing window manager

Developer at Compiz Window Manager - http://compiz.org

January 27, 2008 to January 24, 2010

- Minor plugin contributor

- Various research projects

责任编辑:王雪燕
相关推荐

2012-11-27 09:54:57

简历创业项目

2009-03-11 13:32:12

简历求职应聘

2011-05-25 16:59:20

前端工程师

2018-07-29 15:33:04

2012-07-11 23:26:10

bug测试

2019-12-02 08:58:09

SQL脚本语言MySQL

2023-05-19 06:53:58

GPT分析报告

2020-10-29 09:24:50

算法开源工具

2019-07-17 07:07:54

MySQL数据库索引

2015-07-14 13:56:10

2023-03-21 09:44:34

模型AI

2019-12-05 07:55:47

监控指标巡检指标数据库

2019-12-10 08:06:16

数据库1NF数据库范式

2019-08-12 08:47:14

脚本语言数据库MySQL

2017-11-02 14:20:44

数据科学简历数据科学家

2020-07-15 15:38:15

人脸识别照片活化手机

2019-10-12 00:39:23

MySQL数据库Oracle

2019-11-26 08:31:50

Oracle数据库SYSAUX表空间

2021-04-03 12:44:16

编程语言数据Python

2019-03-24 14:14:40

代码阅读源代码
点赞
收藏

51CTO技术栈公众号