-
Sites can very quickly put up what you might call Queue-Walls in front of their sites. Ocado appears to be using Traffic Defender. "Virtual Waiting Room"
-
It really helps the user if a Queue-Wall gives you an idea of where you are in the queue. Contrast ASDA "you are now in a queue" with Ocado "You are position 28220 of 31978. Your wait time will be more than four hours." Ocado has bad news, but its better than ASDA where you just don't know.
- Developers should adopt a code of ethics. The ACM has a nice example, if you need one.
- Be kind, always.
- Bigotry and intolerance of others is not ever OK.
- In code, people, everything, seek to understand before judging.
- It's OK to judge, provided you're also kind.
- It's hard to create good software. Be respectful.
- It's easy to criticise and tear down. Don't be an arse.
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
| use strict;use warnings; | |
| my %ipaddrs; | |
| while (<DATA>) { | |
| while (/\b(\d+\.\d+\.\d+\.\d+)\b/g) { | |
| $ipaddrs{$&}++; | |
| } | |
| } |
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
| using System; | |
| using System.IO; | |
| using System.Security.Cryptography; | |
| class test { | |
| static void Main(string[] args) { | |
| string file = ""; | |
| if (args.Length > 0) { |
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
| using System; | |
| namespace Power | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| var a = new DateRange { Start = new DateTime(2014, 01, 10), End = new DateTime(2014, 01, 20) }; | |
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
| grep {/sql|asp\.net/i} <> and print ‘CV is perfect!’; |
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
| perl -e "$_=`mode`;/ns:\s+(\d+)/;print '='x$1" |
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
| /* | |
| A script to highlight leaders on HN | |
| Uses zeptojs | |
| */ | |
| Zepto(function($) { | |
| $('.subtext,.comhead').each(function() { | |
| var link = $(this).children('a').first(); |
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
| /// <summary> | |
| /// Use this to make sure A is set | |
| /// </summary> | |
| public int A | |
| { | |
| set | |
| { | |
| try | |
| { | |
| lock (lockObj) |
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
| sub findRemainder { | |
| map {return $_[0] % ($_[1] || 1) } @_ = sort { $b <=> $a } @_; | |
| } | |
| print findRemainder(142,1000),"\n"; | |
| print findRemainder(1000,142),"\n"; | |
| print findRemainder(1000,0),"\n" |
NewerOlder