View Program.cs
1 2 3 4 5 6 7 8 9 10
using Microsoft.Owin;
using Microsoft.Owin.Hosting;
using Owin;
using System;
using System.Net.Http;
 
namespace SelfHost
{
public class Program
{
View 0001-Allow-block-placement-when-a-the-placer-can-t-see-th.patch
1 2 3 4 5 6 7 8 9 10
From 556f679be36aa5423deda3681efaa66b4e7fb95e Mon Sep 17 00:00:00 2001
From: Dykam <kramieb@gmail.com>
Date: Thu, 16 Jan 2014 13:38:19 +0100
Subject: [PATCH] Allow block placement when a the placer can't see the player
blocking
 
 
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java
index cb21133..41806b2 100644
--- a/src/main/java/net/minecraft/server/World.java
View README
1 2
A small non-complete example design and implementation of Observables/Tasks integrated into events.
It is inspired by a mix of classic Observables and .NET's Tasks/SynchronizationContext.
View interfaces.java
1 2 3 4 5 6
interface TextMessage {}
interface RawTextMessage extends TextMessage { String getValue(); }
interface Style extends TextMessage { TextStyle getStyle(); TextMessage getMessage(); }
interface Action extends TextMessage { TextAction getAction(); TextEvent getEvent(); TextMessage getMessage(); }
/* Combines multiple texts */
interface Combined extends TextMessage { List<TextMessage> getMessages(); }
View Java 6 or 7.java
1 2 3 4 5 6 7 8 9 10
// When using Java 6 or 7
Observable<Vector> positions =
server.events.playerMove().map(new Fn<PlayerMoveEvent, Vector>() {
public Vector call(PlayerMoveEvent event) {
return event.getPlayer().getPosition();
}
})
.async() // continue on threadpool
.map(new Fn<Vector, Vector>() {
public Vector call(Vector vector) {
View StringUtils.java
1 2 3 4 5 6 7 8 9 10
public static final <T> T bestMatch(String search, Collection<T> options, double threshold) {
T bestObj = null;
double bestScore = 0.0D;
for (T obj : options) {
double score = LiquidMetal.score(obj.toString(), search);
if (score > bestScore) {
bestObj = obj;
bestScore = score;
} else if (score == bestScore) {
bestObj = null;
View pom.xml
1 2 3 4 5 6 7 8 9 10
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
 
<groupId><!--groupId--></groupId>
<artifactId><!--artifactId-->Debug</artifactId>
<version><!--version--></version>
<packaging>pom</packaging>
View Result.html
1 2 3 4 5 6 7 8 9 10
<div class="InfoWindow">
<div><span>description</span></div>
<fieldset class="Directions">
<legend>Route</legend>
<div class="Container">
<label>Van</label><input type="text" class="Dest" />
<label>naar</label><span class="Wrapped">address</span><input type="submit" value="Route zoeken" class="Search" />
</div>
</fieldset>
</div>
View README.md

Fixing your skip links.

Read Damon Muma on this. He proposes the following jQuery solution (inspired by Thompson, fixed by me):

// Apply focus properly when accessing internal links with keyboard in WebKit browsers.
$("a[href^='#']").not("a[href='#']").click(function() {
   $("#"+$(this).attr("href").slice(1)+"").focus();
});
View Source.js
1 2 3 4 5 6 7 8 9 10
// ==ClosureCompiler==
// @output_file_name default.js
// @compilation_level ADVANCED_OPTIMIZATIONS
// ==/ClosureCompiler==
 
(function () {
var el = document.createElement('div'),
b = document.getElementsByTagName('body')[0];
otherlib = false, msg = '';
el.style.position = 'fixed';
Something went wrong with that request. Please try again.