Readable executable C language resume source file _c language

Source: Internet
Author: User
Tags readable

Hacker News here? The author updated his CV with code, is not very grounded gas, especially in line with the programmer's forced lattice. This is a readable executable of C language source files, but also the author's coding style embodiment.

C language Genius wrote a resume

#include <stdio.h> #include <time.h> typedef struct {union {char * company;
    char * SCHOOL;
  char * project;
  };
    Union {char * location;
  char * URL;
  };
    Union {char * title;
  char * program;
 
  };
  time_t started;
 
  time_t left;
char * description[];
 
} thing_t;
typedef thing_t JOB_T;
typedef thing_t SCHOOL_T;
 
typedef thing_t PROJECT_T; #define CURRENT 0/* I wasn ' t alive at the Unix epoch and so ' ll work *///contact information/char * name = "Kevin R .
Lange ";
char * email = "klange@toaruos.org";
 
char * address = "1045 Mission St, Apt 440n" "San Francisco, CA 94103";
  /* Education/school_t UIUC = {. School = "University of Illinois at Urbana-champaign",. Location = "Urbana, IL", program = "BS Computer science",. started = 1251158400,. left = 1336608000,. Description = {"Minor in Inter
 
National studies in Engineering, Japan "," focused on systems software courses ", NULL}}; school_t hit = {. School = "Hiroshima Institute of Technology",. Location = "Hiroshima, Japan",. Program = "Study Abroad",.
 
started = 1274745600,. left = 1278288000,. Description = {"Cultural exchange program", NULL}};
 
school_t * schools[] = {&uiuc, &hit, NULL}; /* Projects/project_t Compiz = {. Project = Compiz window Manager,. url = "Http://compiz.org",. title = "Dev Eloper ",. started = 1201392000,. left = 1264291200,. Description = {" Minor plugin contributor "," various R
 
Esearch projects ", NULL}}; project_t toaruos = {. Project = "Toaruos",. url = "Https://github.com/klange/toaruos",. title = "Lead",. Start ed = 1295049600,. left = current,. Description = {"Hobby x86 unix-like kernel and userspace", "Advanced in-h
 
Ouse GUI with compositing window Manager ", NULL}};
 
project_t * projects[] = {&toaruos, &compiz, NULL};
  /* Employment History * * job_t yelp = {Company = "Yelp, Inc.",. Location = "San Francisco, CA",. title = "Software Engineer, i18n",. Started = 1339977600 ,. left = current,. Description = {"Developed several internal tools and libraries", provided critical
 
UT and design work for Yelp ' s launch in Japan, NULL}}; job_t apple_internship = {. Company = "Apple Inc.",. Location = "Cupertino, CA",. title = "Software Engineering Int Ern ",. started = 1306886400,. left = 1314662400,. Description = {" Built software framework for testing and VE
 
Rification of desktop Retina display Modes ", assisted other interns with Unix fundamentals", NULL}};
 
job_t * jobs[] = {&yelp, &apple_internship, NULL};
  void Print_thing (thing_t * thing) {char started[100];
  Char left[100];
  struct TM * TI;
 
  int i = 0;
 
  printf ("%s at%s-%SN", Thing->title, Thing->company, thing->location);
  TI = localtime (&thing->started); Strftime (started, 1, "%B%d,%Y", TI);
  if (Thing->left = = current) {printf ('%s to Nown ', started);
    else {ti = localtime (&thing->left);
    Strftime (left, MB, "%B%d,%Y", TI);
  printf ('%s to%sn ', started, left);
  char * * desc = thing->description;
    while (*DESC) {printf ("-%sn", *DESC);
  desc++;
 
  int main (int argc, char * * argv) {printf ("%sn%sn%snn", name, email, address);
  Puts ("Educationn");
  school_t * s = schools;
    while (*s) {print_thing (*s);
    Puts ("");
  s++;
  } puts ("Employmentn");
  job_t * * j = jobs;
    while (*j) {print_thing (*j);
    Puts ("");
  j + +;
  } puts ("PROJECTSN");
  project_t * p = projects;
    while (*p) {print_thing (*p);
    Puts ("");
  p++;
return 0; }


After Wossoneri compiled, we see the resume

The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.