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
import webcaret.application; | |
import heaploop.looping; | |
import std.string; | |
void main() { | |
loop ^^ { | |
auto app = new Application; | |
app.router.get("/") ^ (req, res) { | |
res.write("Hello World"); | |
}; |
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/sh | |
root=$(pwd) | |
echo "Downloading GNU Go 3.8..." | |
curl http://mirrors.kernel.org/gnu/gnugo/gnugo-3.8.tar.gz -s -o - | tar xzf - -C . | |
cd gnugo-* | |
echo "Compiling..." | |
./configure |
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
package main | |
import "fmt" | |
func abs(x float64) float64 { | |
if x > 0 { | |
return x | |
} else { | |
return -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
body{background-image:url("/assets/bg-ef8538157f3dc9558b9443c31ccd896c.jpg")} |
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
diff -r 67ee979a1807 src/applications/model/onoff-application.cc | |
--- a/src/applications/model/onoff-application.cc Tue Apr 08 14:07:33 2014 -0700 | |
+++ b/src/applications/model/onoff-application.cc Sun May 18 14:18:06 2014 -0500 | |
@@ -39,6 +39,7 @@ | |
#include "ns3/trace-source-accessor.h" | |
#include "onoff-application.h" | |
#include "ns3/udp-socket-factory.h" | |
+#include "ns3/qos-tag.h" | |
#include "ns3/string.h" | |
#include "ns3/pointer.h" |
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
diff -r 67ee979a1807 src/applications/model/onoff-application.cc | |
--- a/src/applications/model/onoff-application.cc Tue Apr 08 14:07:33 2014 -0700 | |
+++ b/src/applications/model/onoff-application.cc Sun May 18 20:00:09 2014 -0500 | |
@@ -39,8 +39,10 @@ | |
#include "ns3/trace-source-accessor.h" | |
#include "onoff-application.h" | |
#include "ns3/udp-socket-factory.h" | |
+#include "ns3/qos-tag.h" | |
#include "ns3/string.h" | |
#include "ns3/pointer.h" |
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
RegularWifiMac:RegularWifiMac(0x7f82ebd2f830) | |
MacRxMiddle:MacRxMiddle() | |
MacRxMiddle:SetForwardCallback() | |
[mac=00:00:00:00:00:00] MacLow:MacLow(0x7f82ebd0f040) | |
DcfManager:DcfManager(0x7f82ebd261d0) | |
DcfManager:SetupLowListener(0x7f82ebd261d0, 0x7f82ebd0f040) | |
DcaTxop:DcaTxop(0x7f82ebd2c720) | |
DcaTxop:SetMinCw(0x7f82ebd2c720, 15) | |
DcaTxop:SetMaxCw(0x7f82ebd2c720, 1023) | |
DcaTxop:SetAifsn(0x7f82ebd2c720, 2) |
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
diff -r 13017af6d1b0 src/applications/model/onoff-application.cc | |
--- a/src/applications/model/onoff-application.cc Thu May 15 16:09:51 2014 -0700 | |
+++ b/src/applications/model/onoff-application.cc Tue May 20 14:12:58 2014 -0500 | |
@@ -39,8 +39,10 @@ | |
#include "ns3/trace-source-accessor.h" | |
#include "onoff-application.h" | |
#include "ns3/udp-socket-factory.h" | |
+#include "ns3/qos-tag.h" | |
#include "ns3/string.h" | |
#include "ns3/pointer.h" |
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
class CountryChecker | |
COUNTRY_DB = nil # FIX | |
def initialize(app, options = {}) | |
@app = app | |
@ip_override = options[:allow_ip_override] | |
end | |
def call(env) | |
request = Rack::Request.new(env) |
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
let individualScores = [75, 43, 103, 87, 12] | |
var teamScore = 0 | |
for score in individualScores { | |
if score > 50 { | |
teamScore += 3 | |
} else { | |
teamScore += 1 | |
} | |
} | |
teamScore |
OlderNewer