1️⃣
🐦🍐🌳
2️⃣
🐢🐦 🐢🐦
🐦🍐🌳
1️⃣
🐦🍐🌳
2️⃣
🐢🐦 🐢🐦
🐦🍐🌳
{ | |
// ... | |
Competition: '', | |
Participants: [ | |
{ | |
Name: "Manchester United", | |
Players: [ | |
{ | |
Name: "Fred Fredfredfred", | |
ShortName: "Fred", |
// generic type: | |
public class Bag<T> {} | |
// simple usage: | |
Bag<Fruit> myBag; | |
myBag = new Bag<Fruit>(); | |
// so far so good |
git config --global --add alias.pretty "log --oneline --abbrev-commit --branches=* --graph --decorate" |
<!-- | |
It's all about "forcing" with MS stuff. *Force* IIS to serve a header which will | |
*force* IE not to use it's shitty compatibility mode, even if it's an intranet | |
site and the client has "display intranet sites in compatibility view" ticked in | |
their compatibility prefs. | |
The alternative is to include the equivalent <meta http-equiv...> in your | |
markup, but that will sometimes be ignored. | |
This header is discouraged by MS for production environments. Then again, MS is |
n3dst4@lesster2:~/438231 (master) $ date; w | |
Sun Mar 17 17:05:27 EDT 2013 | |
17:09:52 up 4:18, 0 users, load average: 139.84, 120.85, 91.34 | |
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT |
--> | |
POST /tasks/autofiller/101 | |
{ | |
object: { | |
id: 101, | |
description: 123, | |
building: 234, | |
site: 345, | |
reporter: 456 |
pageModel.registerExceptionHandler("FeedbackNeeded", function (exception, ready) { | |
doStuff(exception); | |
doSomethingAsynchronousWithACallback(function(response){ | |
if (response.good) { | |
exception.handled = true; | |
} | |
ready(); // tell the exception broker we're ready to go on | |
}); | |
}); |
public string ZoneDataJSON | |
{ | |
get | |
{ | |
var newCount = 0L; | |
if (EntityInstance.IsNew()) return BlankZoneDataJSON; | |
var members = IoCContainer.Resolve<IZoneService>(). | |
GetImmediateZoneMembers(this.EntityId).ToList<IZoneMember>(). | |
Select(mem => new | |
{ |
// Original: even without reading the code, it looked wrong. Lots of very | |
// obvious repetition. And switches are so often a code smell. | |
switch (modeName) { | |
case "Manual": | |
alert(self.options.messages.pleaseSet + self.options.messages.Manual); | |
break; | |
case "Automatic": | |
alert(self.options.messages.pleaseSet + self.options.messages.Automatic); | |
break; |