7 ms·
GitHub Zen API
- cliveowen 13y ago"Responsive is better than fast." I don't agree with this.
- easytiger 13y agoWhen you think about it, it doesn't even make sense.
- Spoygg 13y agoI don't.
- btown 13y agoI assume it's not a reference to responsive ("self-resizing") HTML, but rather things like user input lag (a common problem in apps.) Better to have a zero-lag async calculation than a nominally faster but UI-blocking synchronous calculation or request.
- derefr 13y agoI think it's actually meant to encourage putting up things like spinners, page transitions, etc. Make the user feel that something is happening, and they won't feel slowed down.
- lnanek2 13y agoI agree with it very much. When I'm zipping files on Linux and my system grinds to a halt due to hard drive contention, I don't want faster zip times, I just want the damn thing to be responsive while it zips in the background.
- opiumden 13y agoIf you're running zip from the command line, try setting the priority with 'nice' when you run it. That should allow you to continue using your system while zip crunches away in the background. If you forget to set the priority level at runtime, use 'renice' to set the priority level of a running process.
- hrjet 13y agoionice[1] is even better for this use-case. [1]: http://manpages.ubuntu.com/manpages/raring/man1/ionice.1.html
- arscan 13y agoNot that there is any right answer here (that's the whole point), but my interpretation is less a technical one than the ones suggested so far. Being fast gets you to far away places, but being responsive gets you places where you want to be.
- taf2 13y agoit just says "design for failure" ? [edit] okay i get it refreshing gives another message etc. etc.
- nekgrim 13y ago"Non-blocking is better than blocking." You don't say.
- technoweenie 13y agoFWIW this is not a statement about programming (node.js vs ruby or whatever)
- webignition 13y agoHow can you be sure? Just curious, not saying you're wrong.
- kdaigle 13y agotechnoweenie works at GitHub :)
- VeejayRampay 13y agoI wonder who would naturally equate blocking to Ruby specifically. Or non-blocking to Node.js for that matter. Is Node.js VS Ruby even a thing?
- seiji 13y agoThey're in constant battle for the hipster programmer crowd. Ruby is too old for "I used it before it was cool," but node is kinda still there.
- technoweenie 13y agoOh right! I meant to say Go vs Node.js. Only one walks away.
- seiji 13y agoGo has a weird subset of admin/programmer people who haven't discovered erlang and think they are too good for C. Node has a weird subset of web people who haven't discovered erlang and think they are too good for deploying a message/job dispatch queue with python or ruby. If you want to be really bored with all these "modern" programming advancements, learn erlang and lisp and smalltalk. Everything is just reinventing their aspects over and over and over again targeted to audiences as "new new new!"
- leddt 13y agoIs this used anywhere at all, or is it just an easter egg ?
- bryogenic 13y agoGreat fun with cowsay $ curl https://api.github.com/zen -s | cowsay _____________________ < Speak like a human. > -------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||
- Touche 13y agoAwesome, aliasing this as cowzen.
- gizzlon 13y agoHave you seen that it comes with other examples? ls /usr/share/cowsay | xargs -n1 -I{} cowsay -f {} foo | less Some of them are.. well.. "Cow Operation"? WTF
- seiji 13y agoBest ones: vomit cow and Kosh. Kosh works exceptionally well with tiny zen sayings. ______________________________________ < Mind your words, they are important. > -------------------------------------- \ \ \ ___ _____ ___ / \ / /| / \ | | / / | | | | | /____/ | | | | | | | | | | | | | {} | / | | | | |____|/ | | | | |==| | | | \___________/ | | | | |
- angersock 13y agowhoa whoa whoa there is a command-line vorlon available? what?
- jlgaddis 13y ago$ ls /usr/share/cows/ beavis.zen.cow dragon-and-cow.cow hellokitty.cow moofasa.cow sodomized.cow turtle.cow bong.cow dragon.cow kiss.cow moose.cow stegosaurus.cow tux.cow bud-frogs.cow elephant.cow kitty.cow mutilated.cow stimpy.cow udder.cow bunny.cow elephant-in-snake.cow koala.cow ren.cow supermilker.cow vader.cow cheese.cow eyes.cow kosh.cow satanic.cow surgery.cow vader-koala.cow cower.cow flaming-sheep.cow luke-koala.cow sheep.cow telebears.cow www.cow daemon.cow ghostbusters.cow meow.cow skeleton.cow three-eyes.cow default.cow head-in.cow milk.cow small.cow turkey.cow
- gizzlon 13y agoSurprisingly profound: Anything added dilutes everything else
- nfzufxjlidp 13y agoOf course this is false if you add more of the same. ;)
- IceyEC 13y agoexcept that it still DOES dilute everything except the thing that was added
- jxfgdxjvmhf 13y agono.
- samatman 13y agohttp://en.wikipedia.org/wiki/Le_Chatelier's_principle http://en.wikipedia.org/wiki/Le_Chatelier's_principle
- RobAley 13y agoThe comments below demonstrate that, while cute, virtually all of the statements it comes up with are entirely subjective, quite superficial, totally ambiguous, and useless for most things. Great conversation starter though!
- odiroot 13y agoCheck response headers. Pretty strict rate limiting.
- packetbeats 13y agoAfter curl-ing for a while in a loop, and sort -u: Anything added dilutes everything else. Approachable is better than simple. Avoid administrative distraction. Design for failure. Encourage flow. Favor focus over features. Half measures are as bad as nothing at all. It's not fully shipped until it's fast. Keep it logically awesome. Mind your words, they are important. Non-blocking is better than blocking. Practicality beats purity. Responsive is better than fast. Speak like a human.
- peterjmag 13y agoGot the same list after about 100 authenticated requests: https://gist.github.com/peterjmag/6551440 https://gist.github.com/peterjmag/6551440
- jlgaddis 13y agoYou could turn these into a data file for fortune[0]. I currently use the "Cluefire and Damnation"[1] fortunes and pipe it into ponysay[2] at login. [0]: https://en.wikipedia.org/wiki/Fortune_%28Unix%29 https://en.wikipedia.org/wiki/Fortune_%28Unix%29 [1]: http://www.cluefire.net/ http://www.cluefire.net/ [2]: https://github.com/erkin/ponysay/ https://github.com/erkin/ponysay/
- andmarios 13y agoI had made something like that with fortune and php many-many years ago. I wonder if GitHub has a static list of quotes (like fortune does) or they generate them dynamically.
- brbcoding 13y agoNever realized there was an emojis api too... https://api.github.com/emojis https://api.github.com/emojis
- losethos 13y agoAny genius can make it complicated. Run toward bugs, not away from bugs. Scaffolding. 100,000 lines... forever. ----- God says... Virtual-Notary.Org hereby notes that on Date: Friday September 13, 2013 10:55.32 EDT (UTC-0400) a random drawing in the range [1, 100000], inclusive, based on a hardware source of true randomness, yielded the following decision. Random Value: 29348 ---- run before him. 1:6 And his father had not displeased him at any time in saying, Why hast thou done so? and he also was a very goodly man; and his mother bare him after Absalom. 1:7 And he conferred with Joab the son of Zeruiah, and with Abiathar the priest: and they following Adonijah helped him. 1:8 But Zadok the priest, and Benaiah the son of Jehoiada, and Nathan the prophet, and Shimei, and Rei, and the mighty men which belonged to David, were not with Adonijah. 1:9 And Adonijah slew sheep and oxen and fat cattle by the stone of Zoheleth, which is by Enrogel, and called all his brethren the king's sons, and all the men of Judah the king's servants: 1:10 But Nathan the prophet, and Benaiah, and the mighty men, and Solomon his brother, he called not. 1:11 Wherefore Nathan spake unto Bathsheba the mother of Solomon, saying, Hast thou not heard that Adonijah the son of Haggith doth reign, and David our lord knoweth it not? 1:12 Now therefore come, let me, I pray thee, give thee counsel, that thou mayest save thine own life, and the life of thy son Solomon.
- Void_ 13y agoIf you wanna read short messages from which you won't benefit in any way, might as well try: http://whatthecommit.com http://whatthecommit.com
- ismaelc 13y agohttps://www.mashape.com/community/github-zen#!documentation https://www.mashape.com/community/github-zen#!documentation
- jlgaddis 13y ago$ grep bofh .bash_aliases alias bofh="nc bofh.jeffballard.us 666 | tail -n 1 | sed -e 's/Your excuse is: //'" $ bofh The air conditioning water supply pipe ruptured over the machine room
- burgeralarm 13y agoThis reminds me of a small project I tossed together: http://git-fortune.bclune.org http://git-fortune.bclune.org It grabs a random commit message from a github repo and displays it. By default, it pulls from a repo containing the original debian fortunes as commit messages. But you can point it to other repos like this: http://git-fortune.bclune.org/twbs/bootstrap http://git-fortune.bclune.org/twbs/bootstrap Inspired by What the Commit? and /usr/bin/fortune.
- talles 13y agoIs there anything related to the zen of python? I got "practicality beats purity", that is in it ("Special cases aren't special enough to break the rules. Although practicality beats purity.").
- arjunbajaj 13y ago$ npm install github-zens -g $ zen A Node Module which prints the zens (offline list). https://github.com/arjunbajaj/github-zens https://github.com/arjunbajaj/github-zens