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
EventLoopGroup group = new NioEventLoopGroup(); | |
ChannelGroup channels = new DefaultChannelGroup(group.next()); | |
try { | |
for(UdpLoadBalancerConfig config : configList) { | |
System.out.println("Started load balancer on port: " + config.port + " and with servers: " + java.util.Arrays.toString(config.servers)); | |
Bootstrap b = new Bootstrap(); | |
b.group(group) | |
.channel(NioDatagramChannel.class) | |
.option(ChannelOption.SO_BROADCAST, true) | |
.handler(new UdpLoadBalancerHandler(config.servers, debug)); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Paperjs - ImportSVG to Symbol</title> | |
<script type="text/javascript" src="js/lib/paper.js"></script> | |
<script type="text/paperscript" canvas="canvas"> | |
function SVGSymbol(elem){ | |
var a = new Symbol(paper.project.importSvg(elem)); | |
elem.parentNode.removeChild(elem); |
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
#!/bin/bash | |
# Sometimes you need to move your existing git repository | |
# to a new remote repository (/new remote origin). | |
# Here are a simple and quick steps that does exactly this. | |
# | |
# Let's assume we call "old repo" the repository you wish | |
# to move, and "new repo" the one you wish to move to. | |
# | |
### Step 1. Make sure you have a local copy of all "old repo" | |
### branches and tags. |
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
body { | |
background: #f9f9f9; | |
font-family: 'Open Sans', sans-serif; | |
text-align: center; | |
} | |
#container { | |
position: relative; | |
z-index: 2; | |
padding-top: 100px; |
NewerOlder