We have some systems at work that use the database as a queue. I've been thinking about this a bit. So have other people.
This file contains 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
(ns phpon.core | |
(:require [instaparse.core :as insta])) | |
(def parse-awful | |
(insta/parser | |
" | |
<S> = (ARRAY / INTEGER / STRING) | |
ARRAY = <'a:'> SIZE <':'> REST | |
INTEGER = <'i:'> INT <';'> | |
STRING = <'s:'> SIZE <':\"'> REST |
This file contains 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 have some systems at work that use the database as a queue. I've been thinking about this a bit. So have other people. | |
* [5 subtle ways you’re using MySQL as a queue, and why it’ll bite you](https://blog.engineyard.com/2011/5-subtle-ways-youre-using-mysql-as-a-queue-and-why-itll-bite-you) | |
* [A Look At Using Your Database As a Queue](http://it.toolbox.com/blogs/programming-life/a-look-at-using-your-database-as-a-queue-49143) | |
* [What’s the Best Way to Manage a Database Queue?](http://johnnycoder.com/blog/2007/06/20/whats-the-best-way-to-manage-a-database-queue/) | |
* [Looking for example design of using an SQL database as a queue for throttling web service requests of multiple users](http://dba.stackexchange.com/questions/17385/looking-for-example-design-of-using-an-sql-database-as-a-queue-for-throttling-we) | |
* [Using Tables as Queues](http://rusanu.com/2010/03/26/using-tables-as-queues/) |
This file contains 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
var wac = new webkitAudioContext(); | |
var ringGain = wac.createGainNode(); | |
ringGain.gain.setValueAtTime(0, 0); | |
var ringCarrier = wac.createOscillator(); | |
ringCarrier.type = ringCarrier.SINE; | |
ringCarrier.frequency.setValueAtTime(2500, 0); | |
var url = "Ring_Modulation-Original_sample.ogg"; |
This file contains 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
>84*>:#v_55+"ude.ub@yelruta">:#,_@>188*+>\02p\12p\:22p#v_$ 55+,1- v | |
^ 0 v +1\ _^#-+*< >22g02g*"_@"*-!1- #v_v> | |
>:>::3g: ,\188 ^^ -1\g21\g22<p3\"_":< | |
________________________________@_________________________________^ p3\"@":< |
To use this, just:
- Modify the source to use your keys.
- Put pnnotify.pl in your .irrsi/script directory and run "/script load pnnotify.pl" in irssi.
- Put the .html and .js files in a directory and server the up in a web server.
- Open up http://yourserverhere/notify.html in a browser.
Now, whenever you get a message in IRC, you'll know.
This file contains 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
"x" |
This file contains 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
if know_code = true | |
print "forward this email to 5 friends." | |
else | |
print "teach me how to code!" | |
end |
This file contains 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
#!/bin/bash | |
if [ -z "$(which pep8)" ]; | |
then | |
echo "Could not find pep8" | |
exit 1 | |
fi | |
if [ -z "$(which pylint)" ]; | |
then |