Skip to content

Instantly share code, notes, and snippets.

View tonyxiahua's full-sized avatar
🎯
Focusing

Xia Hua tonyxiahua

🎯
Focusing
  • @home
  • Riverside↔Cupertino↔Guangzhou
  • 23:44 (UTC -12:00)
View GitHub Profile
@tonyxiahua
tonyxiahua / asus c201.md
Created September 15, 2017 18:43 — forked from jcs/asus c201.md
Disabling SPI write protection, reflashing, and unbricking an Asus Chromebook C201

####Disabling SPI write protection

Put the Chromebook in developer-mode:

  • With machine powered off, hold down Esc and Refresh(F3) while hitting power button
  • At warning prompt, hit Control+D, then Enter at prompt about enabling developer mode
  • Machine will format itself

Now remove the write-protect screw to enable flashrom to flash new Coreboot/Libreboot.

Flip powered-off machine over and remove 8 philips-head screws. 2 are located under rubber feet.

/**
Project: Star Search
A particular talent competition has five judges, each of whom awards a score between
0 and 10 to each performer. Fractional scores, such as 8.3, are allowed.
A performerís final score is determined by dropping the highest and the lowest score
received, then averaging the three remaining scores. Write a program that calculates
the score of each performer and determines the winner.
Assume thereís only one winner!
Input: Read data from an input file named performers.txt.