Skip to content

Instantly share code, notes, and snippets.

View wolfspider's full-sized avatar
🔧
Tooling on FP

Jesse Bennett wolfspider

🔧
Tooling on FP
  • NCFL
View GitHub Profile
@wolfspider
wolfspider / DesignTimeHostManager.cs
Last active December 11, 2015 05:24
Design Time Host Socket Changes
using System;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Net.Sockets;
using Microsoft.Framework.Logging;
namespace OmniSharp.Dnx
{
public class DesignTimeHostManager
@wolfspider
wolfspider / DnxProjectSystem.cs
Last active December 11, 2015 05:20
Dnx Project System Changes
using System;
using System.Collections.Generic;
using System.Composition;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
@wolfspider
wolfspider / omnisharpServer.js
Created December 9, 2015 09:02
omnisharpServer launcher changes
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
'use strict';
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
@wolfspider
wolfspider / SocketConnection.cs
Last active December 11, 2015 15:51
Socket Connection Utility Class
using System;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using Microsoft.Framework.Logging;
namespace OmniSharp
{
public class SocketConnection
{
@wolfspider
wolfspider / ShapeTesting.swift
Created December 27, 2015 02:01
Swift Rounded Rect Playground
import SpriteKit
import XCPlayground
let view:SKView = SKView(frame: CGRectMake(0, 0, 1024, 768))
XCPlaygroundPage.currentPage.liveView = view
let scene:SKScene = SKScene(size: CGSizeMake(1024, 768))
scene.scaleMode = SKSceneScaleMode.AspectFit
@wolfspider
wolfspider / SVGParse.swift
Created September 30, 2017 21:39
Swift SVG playground
//: Playground - noun: a place where people can play
import SpriteKit
import PlaygroundSupport
import Foundation
let fileURL = Bundle.main.url(forResource: "blurplain", withExtension: "svg")
let content = try String(contentsOf: fileURL!, encoding: String.Encoding.utf8)
@wolfspider
wolfspider / data.inc
Created March 4, 2018 23:53
Microraptor formatted data file from Linux
typedef struct MrgData{const char *path;
int length;
const char *data;}MrgData;
static MrgData mrg_data[]={
{"css.html", 1754,
"<html><head><title>MicroRaptor Gui</title>\n"
" <style>\n"
" @import url(\"mrg.css\");\n"
" </style>\n"
" </head>\n"
@wolfspider
wolfspider / portrait.svg
Created April 19, 2018 19:53
Portrait created with InkScape entirely
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wolfspider
wolfspider / clock-prog.js
Created April 21, 2018 22:42
Dynamic Image ShaderWolf + Node-Canvas Clock FileStream
var fs = require('fs')
var path = require('path')
var Canvas = require('canvas')
function getX (angle) {
return -Math.sin(angle + Math.PI)
}
function getY (angle) {
return Math.cos(angle + Math.PI)
@wolfspider
wolfspider / NFSXHyve.txt
Last active February 15, 2020 07:07
Xhyve Mac OS NFS Instructions
***Super Simple XHyve NFS instructions***
1. Create a user account with the same login as MacOS account and add to group "wheel"
2. edit /etc/exports and add line to allow all clients to connect to host with specific user (for example):
/usr/home/jessebennett -alldirs -maproot=jessebennett
3. change the file /etc/rc.conf to enable nfs daemon on startup add these to the file: