- Shower meters -- coming to Donlon!
- Dual-flush toilets
Awkward question, but how much human waste does Cornell produce each semester?
| #!/bin/sh | |
| for i in `seq 1 15`; | |
| do | |
| wget "https://s3.amazonaws.com/iq-cache/A9X6594/gallery/1000349181/1200/05003423($i).jpg" -O $i.jpg | |
| done |
| *~ | |
| *.o | |
| a.out |
| #!/bin/sh | |
| # 1. Add the Spotify repository signing key to be able to verify downloaded packages | |
| sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C19886 | |
| # 2. Add the Spotify repository | |
| echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list | |
| # 3. Update list of available packages | |
| sudo apt-get update |
| /** | |
| * Adapted from "Heathens" by Twenty One Pilots | |
| * (C) Warner/Chappell Music, Inc. | |
| * | |
| * All original modifications are (C) Aidan Fitzgerald and licensed under the | |
| * Creative Commons Attribution 4.0 International License. | |
| * https://creativecommons.org/licenses/by/4.0 | |
| */ | |
| function you() { | |
| friends.forEach(function(friend) { |
Short URL: https://git.io/vPNcb
| L = [x*x*x for x in range(10)] | |
| for i in L: | |
| print L |
| /** | |
| * Performs the subtraction p - q. | |
| * This is an alternative method to simply computing p + (-q). | |
| * TODO I'll prove why it works later. | |
| */ | |
| int alt_subtract(int p, int q) { | |
| // First, take the ones' complement of the minuend | |
| int p1 = ~p; | |
| // Next, add the subtrahend | |
| int sum = p1 + q; |
| enum Gender {MALE, FEMALE, GENDERLESS} |
| import java.util.BitSet; | |
| public class BitSort { | |
| public BitSet sort(BitSet bits) { | |
| // Count the number of ones: O(n) | |
| int numOnes = bits.cardinality(); | |
| // Overwrite the array with the ones first followed by the zeros | |
| bits.set(0, numOnes); |