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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Net.Sockets; | |
namespace smb2bsod | |
{ | |
class Program | |
{ |
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
# automatic dependency generation for C | |
%.c.dep: %.c | |
@echo Generating dependencies for $<.. | |
@$(CC) -MM -MF $@ $(CPPFLAGS) -c $< | |
-include $(SOURCES:.c=.c.dep) |
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
public Model( string filename ) | |
{ | |
var doc = new XmlDocument(); | |
geoms = doc.Elements("//path").Select( | |
e => Pair.New( | |
e.Elements(".//v").Select( | |
v => ReadVec2(v)).ToArray(), | |
Color.FromName(e.GetAttribute("color")))).ToArray(); |
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
static void Main(string[] args) | |
{ | |
var server = new Server("http://localhost:6120/farmnet/") | |
{ | |
Routes = new[] | |
{ | |
Server.ServeFolder( "/farmnet/static/", "static/" ), | |
Server.ServeError( "/farmnet/", 404, "Not found" ), | |
}, | |
}; |
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
farmnet_spawn({ | |
id: "example-component-1", | |
name: "SDK Example Component", | |
light: "green", | |
summary: "I'm in your <b>base</b> killing your <b>dudes</b>", | |
details: "Some details" | |
}); |
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
function farmnet_init() | |
{ | |
jQuery.tag = function(e) { return $(document.createElement(e)); } | |
} | |
function do_expand() | |
{ | |
$(this).toggleClass('toggle_expanded'); | |
$(this).parent().next().toggleClass('details_expanded'); | |
} |
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
.loader_wrap { position: absolute; | |
top: 50%; | |
left: 50%; | |
width: auto } | |
.loader { padding: 10px; | |
border: solid 1px #cccccc; | |
background-image: url("itemgradient.png"); | |
background-position: left; | |
position: relative; |
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
:: recursively grab submodules in git. | |
@call git submodule init | |
@call git submodule update | |
@call git submodule foreach cmd /k update-rec.cmd |
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
#include <cstdio> | |
void f() { puts( "meep" ); } | |
template< typename T > | |
class A | |
{ | |
public: void f() { puts( "fail" ); } | |
}; |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Farmworks.Utils; | |
using Farmworks.Gateway.Client; | |
namespace farmnet_soil | |
{ | |
class DualMaster : Device |
OlderNewer