Alteroot:~# 01 Oct 2014 on The problem : be able to cache a backend response if it took more than 5 seconds. If not, don't cache it! A good challenge from @florentsolt . He solves the problem with a nodejs reverse proxy behind nginx, but I prefer a pure nginx implementation ;) I needed that kind of configuration as a temporary workaround due to a proprietary backend which responds slowly to certain request, and quickly to anothers. So instead of let the client wait 10 seconds or more, it's better to render a cached response for next clients for 60 seconds, even if it's not the more up to date data. Finding no informations on the subject, here's my solution (maybe not the better, but it worked for my needs). If you have a better solution (even with another software), you can add a comment :). I use the "map" directive to set a variable and pass it via the X-Accel-Expires...
Translations from JavaScript console.log("Hello, world!"); ;; to print in browser console (.log js/console "Hello, world!") ;; to print at ClojureScript REPL (println "Hello, world!") // No native implementation (ns my.library) // No native implementation (ns my.library (:require [other.library :as other])) var foo = "bar"; (def foo "bar") function foo() { var bar = 1; } (defn foo [] (let [bar 1])) // JavaScript "hoists" variables to the top of // their scope. So the following function: function printName() { console.log('Hello, ' + name); var name = 'Bob'; } // is equivalent to this function: function printName() { var name; console.log('Hello, ' + name); name = 'Bob'; } printName(); // Hello, undefined ;; ClojureScript does not hoist variables ;; this function will issue a warning ...
index next | sh v1.08 documentation » ¶ sh (previously pbs ) is a full-fledged subprocess interface for Python that allows you to call any program as if it were a function: from sh import ifconfig print ( ifconfig ( "wlan0" )) Output: wlan0 Link encap:Ethernet HWaddr 00:00:00:00:00:00 inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: ffff::ffff:ffff:ffff:fff/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0 GB) TX bytes:0 (0 GB) More examples: # checkout master branch git . checkout ( "master" ) # print(the contents of this directory print ( ls ( "-l" )) # get the longest line of this file longest_line = wc (...
index next | sh v1.08 documentation » ¶ sh (previously pbs ) is a full-fledged subprocess interface for Python that allows you to call any program as if it were a function: from sh import ifconfig print ( ifconfig ( "wlan0" )) Output: wlan0 Link encap:Ethernet HWaddr 00:00:00:00:00:00 inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: ffff::ffff:ffff:ffff:fff/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0 GB) TX bytes:0 (0 GB) More examples: # checkout master branch git . checkout ( "master" ) # print(the contents of this directory print ( ls ( "-l" )) # get the longest line of this file longest_line = wc (...
index modules | next | previous | home | search | documentation » Using IPython for interactive work » Table Of Contents IPython as a system shell Overview Aliases Directory management Prompt customization String lists Real world example: remove all files outside version control The .s, .n, .p properties IPython reference A Qt Console for IPython Show Source Enter search terms or a module, class or function name. Note This documentation is for a development version of IPython. There may be significant differences from the latest stable release. ¶ ¶ It is possible to adapt IPython for system shell usage. In the past, IPython shipped a special ‘sh’ profile for this purpose, but it had been quarantined since 0.11 release, and in 1.0 it was removed altogether. Nevertheless, much of this section relies on machinery which does not require a...
Skip to content Sign up Sign in This repository Explore Features Enterprise Blog Star 2 Fork 0 mad4j / curses.js /.container /.repohead Code Issues Pull Requests Pulse Graphs HTTPS Subversion You can clone with HTTPS or Subversion . Download ZIP /.repository-sidebar Javascript porting of curses library using Emscripten 22 commits 2 branches 3 releases 1 contributor C 99.5% Other 0.5% C Other branch: master Switch branches/tags /.select-menu-header Branches Tags /.select-menu-tabs /.select-menu-filters gh-pages /.select-menu-item master /.select-menu-item Nothing to show /.select-menu-list v0.2.0 /.select-menu-item v0.1.1 /.select-menu-item v0.1.0 /.sel...
To use Google Groups Discussions, please enable JavaScript in your browser settings, and then refresh this page. . Search Images Maps Play YouTube News Gmail Drive More » Help | Report an issue about Google Groups | Keyboard shortcuts | Sign in ...
Skip to content Sign up Sign in This repository Explore Features Enterprise Blog Star 11,328 Fork 4,396 django / django /.container /.repohead Code Pull Requests Pulse Graphs HTTPS Subversion You can clone with HTTPS or Subversion . Download ZIP /.repository-sidebar base sha1: "3bec38888f6f4ee9245b004fcb9fe15b35cef469" head sha1: "73a57b06f9d8c963b9be2bdb83122a004a4a8b0b" #22667 replaced occurrences of master/slave terminology with leader/follower #2692 Merged alex merged 1 commit into django : master from unknown repository 4 months ago + 81 − 81 Conversation 742 Commits 1 Files changed 7 Apply labels to this issue /.select-menu-header /.select-menu-filters bug /.s...
<![endif] Skip to content Home Projects Resources Examples #site-navigation #masthead <h1 class="entry-title">Home</h1> Vote for Goodboy :D #slide-x Spell Up with Google #slide-x Projects #slide-x Pixi.js 1.4 released #slide-x Filters #slide-x Run Pixi Run #slide-x #featured-content .entry-content .entry-meta #post Pixi.js is a devoted rendering engine. There are a host of other engines covering game, sound and physics etc. and they all work beautifully with Pixi. We know developers have their favourites for all these components in their projects and they use them for their strengths. Pixi’s strength is speed. All-out, pedal-to-the-metal speed. When it comes to 2D rendering, Pixi is the fastest there is. End of! It’s all about cross platform support today. It’s something you hear often, but with Pixi.js you have a framework that supports all dev...
<![endif] CodePen Run Fork Share Share on Twitter Share on Facebook Share on G+ Save as GitHub Gist Export .zip Embed Direct links to code: .html .haml .css .scss .js Editor Details Get URL ? Full Page Get URL ? PRO Presentation Get URL ? Log In Sign Up %a.hoverme Hover Here .container .cube .half1 .side.s1 .side.s2 .side.s5 .half2 .side.s3 .side.s4 .side.s6 ! None Haml ? Markdown ? Slim ? Jade ? Add Class(es) to <html> Stuff for <head> $bg: #0b2331; $line: #fff; $perspective: 40000; body { background-color: $bg; font-family: Helvetica, sans-serif; } .cube,.half1,.half2,.container,.side { @include transfo...
Skip to content Sign up Sign in This repository Explore Features Enterprise Blog Star 3 Fork 1 nijotz / shitstream /.container /.repohead Code Issues Pull Requests Pulse Graphs HTTPS Subversion You can clone with HTTPS or Subversion . Download ZIP /.repository-sidebar Loading… New issue Queue songs automatically #29 Open nijotz opened this Issue September 02, 2014 · 0 comments Apply labels to this issue /.select-menu-header /.select-menu-filters prio:high /.select-menu-item prio:normal /.select-menu-item proi:low /.select-menu-item type:bug /.select-menu-item type:duplicate /.select-menu-item type:enhancement /.select-menu-item type:...
music merch Psychic Rites / 00:00 00:00 video Free Download Share / Embed 1. Killer 03:59 2. Z 04:54 3. What Limit 02:55 4. TEETH 03:01 5. Whispering of Eternal Things 03:58 6. Taking Hold Our Youth 04:16 7. I RUN 4 U 03:14 released 27 December 2012 All songs by Psychic Rites with help from Waver and Twilightcoil. Art by E. R. Siemens IV with help from L. Siemens tags: electronic witch house dance-pop dark electro darkwave electronic dance music experimental synth pop techno witch house witchhouse Japan all rights reserved feeds for this album , this artist Aural Sects Japan Born on the internet and alive in social media. Facebook Twitter Tumblr...
an extraordinarily optimizable, low-level subset of JavaScript specification (work in progress) frequently asked questions big web app? compile it! — slide deck by @kripken...
register tour sign in Home My Books Friends Recommendations Explore Genres Listopia Giveaways Popular Goodreads Voice Ebooks Fun Trivia Quizzes Quotes Community Groups Creative Writing People Events Discover new books on Goodreads Sign in to see your friends' reviews: Sign in with Facebook Sign in options Join Goodreads Other editions Enlarge cover Want to Read saving… Want to Read Currently Reading Read Error rating book. Refresh and try again. Rate this book Clear rating 1 of 5 stars 2 of 5 stars 3 of 5 stars 4 of 5 stars 5 of 5 stars by Donald A. Norman The Design of Everyday Things 4.14 of 5 stars 4.14 · rating details · 6,956 ratings · 590 reviews Anyone who designs a...
DW6 #BeginLibraryItem "/Library/navbar_6_2012.lbi" #EndLibraryItem This page was created to supplement the materials presented in the various courses Mr. O'Connell teaches at Oliver Ames High School, Easton, Massachusetts. You can reach Mr. O'Connell at: goconnell@easton.k12.ma.us Thanks for visiting. "Perfect is the enemy of good." (Proverb) "Perfectionism is usually just another avoidance maneuver." (Mr. O'Connell) faq Who coined the term "bug" as it pertains to computers? Q: Your html and CSS assignments are too hard for High School students. Can you please stop assigning them to us? A: I'm not so sure about that... Click he...
Show sidebar » Sign In Register Get Started! Tour FAQ Blog Forums Standardization About <form method="post" action="https://isocpp.org/" > <div class='hiddenFields'> <input type="hidden" name="ACT" value="6" /> <input type="hidden" name="XID" value="f15d935992451484a945ceb0e347d9a62d9ea954" /> <input type="hidden" name="RES" value="" /> <input type="hidden" name="meta" value="zYMKgX58Zs8+1aclN9tC7heLzqeMS/BIDf2KWaqfUPy9IuEVYHdFD1dlGh34VWoTLfYfqx2VVNOeAsrIgIvvoFDyH5RKx1rRrjSIJmrlV4WTNhwE+/Onu3ISLsbzAk2awqSU6A+hVvt+f/zJn30d7+qnYdsX9iFLWu40TELdyhIN7OvZg7LuJknFB0gZ7nQTklJ/9coWuk9SURbQpuERR2hTSI2C5xLtlwfiI61PqkKwyrlOKG6XDMBSEtvAIHOCp+adyiqHkYhNSPC8wgrdUEXu/O1ACVY3yqa/hYv3qY5COcgp3UflhKiNqQvGfAikDLrb28Jq5FJxzSTO4kcq1kRWnkMAIa+DJDX1Ri9lxnSoesPEDjJwSIcqjcXXIxh1l0qg2xNSdmuOrE+KB+C8x3zG6M/Rmrrfc9CHMGWIs3c=" /> <input type="hidden" name="site_id" value="1" /> </div> ...
Hub Johns Hopkins news network: Hub About the Hub Events For Media Hub/Pix Subscribe Explore by Topic Health Science+Technology Arts+Culture Politics+Society University News Student Life Athletics Voices+Opinion Johns Hopkins Magazine About the Magazine Past Issues Contact Giving Subscribe Gazette About the Gazette Past Issues Advertise Contact jhu.edu Search Archives Hub About Events For Media Hub/Pix Subscribe Share on Twitter Share on Facebook Print Comment Lauren Nelson / September 11, 2014 Posted in Health , Science+Technology Tagged tobacco control , hallucinogens Dried psilocybe cubensis, a species of psychedelic mushroom. Image: Erik Fenderson, via Wikimedia Commons Johns Hopkins researchers report that a small number of longtime smokers who had failed many attempts to drop the habit did so after ...