| Models | Examples |
|---|---|
| Display ads | Yahoo! |
| Search ads |
This file contains hidden or 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
| gifify() { | |
| if [[ -n "$1" ]]; then | |
| if [[ $2 == '--good' ]]; then | |
| ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png | |
| time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif | |
| rm out-static*.png | |
| else | |
| ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif | |
| fi | |
| else |
This file contains hidden or 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
| From bmc Mon Oct 2 15:12:34 2000 | |
| Subject: Undergrad systems curriculum | |
| To: [email protected] | |
| Date: Mon, 2 Oct 2000 15:12:34 -0700 (PDT) | |
| X-Mailer: ELM [version 2.4ME+ PL31H (25)] | |
| MIME-Version: 1.0 | |
| Content-Type: text/plain; charset=US-ASCII | |
| Content-Transfer-Encoding: 7bit | |
| Content-Length: 4065 | |
| Status: RO |
Since this is on Hacker News and reddit...
- No, I don't distribute my résumé like this. A friend of mine made a joke about me being the kind of person who would do this, so I did (the link on that page was added later). My actual résumé is a good bit crazier.
- I apologize for the use of
_tin my types. I spend a lot of time at a level where I can do that; "reserved for system libraries? I am the system libraries". - Since people kept complaining, I've fixed the assignments of string literals to non-const
char *s. - My use of
type * name, however, is entirely intentional. - If you're using an older compiler, you might have trouble with the anonymous unions and the designated initializers - I think gcc 4.4 requires some extra braces to get them working together. Anything reasonably recent should work fine. Clang and gcc (newer than 4.4, at le
This file contains hidden or 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
| We’ve built a new communication protocol that sends messages with a restricted syntax. | |
| We need to write a function which determines whether a given message is syntactically valid or not. | |
| Here are the rules: | |
| 1. There are 15 valid characters in the protocol: the lower-case characters ‘a’ through ‘j’ | |
| and the uppercase characters ‘Z’, ‘M’, ‘K’, ‘P’, and ‘Q’. | |
| 2. Every lower-case character in isolation is a valid message, e.g., ‘a’ is a valid message. | |
| 3. If σ is a valid message then so is Zσ. | |
| 4. If σ and τ are valid messages then so are Mστ , Kστ , Pστ , and Qστ . | |
| 5. All other messages are invalid. |
NewerOlder