Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
namespace smb2bsod
{
class Program
{
# automatic dependency generation for C
%.c.dep: %.c
@echo Generating dependencies for $<..
@$(CC) -MM -MF $@ $(CPPFLAGS) -c $<
-include $(SOURCES:.c=.c.dep)
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();
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" ),
},
};
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"
});
function farmnet_init()
{
jQuery.tag = function(e) { return $(document.createElement(e)); }
}
function do_expand()
{
$(this).toggleClass('toggle_expanded');
$(this).parent().next().toggleClass('details_expanded');
}
.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;
:: recursively grab submodules in git.
@call git submodule init
@call git submodule update
@call git submodule foreach cmd /k update-rec.cmd
#include <cstdio>
void f() { puts( "meep" ); }
template< typename T >
class A
{
public: void f() { puts( "fail" ); }
};
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