Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

Nate McMaster natemcmaster

💭
I may be slow to respond.
View GitHub Profile
@natemcmaster
natemcmaster / project.diff
Created Jul 22, 2014
patch EF project json to build on mono
View project.diff
diff --git a/src/EntityFramework/project.json b/src/EntityFramework/project.json
index 9676c8f..1a130bf 100644
--- a/src/EntityFramework/project.json
+++ b/src/EntityFramework/project.json
@@ -33,16 +33,7 @@
"System.Runtime.Extensions": "4.0.10.0",
"System.Threading": "4.0.0.0"
}
- },
- ".NETPortable,Version=v4.6,Profile=Profile44": {
View gist:b407dd95528afe13e83b
public class SublimeWorkspace : Workspace
{
public SublimeWorkspace(string workspaceKind) : base(GetHost(), workspaceKind)
{
}
private static HostServices GetHost()
{
return MefHostServices.DefaultHost;
}
@natemcmaster
natemcmaster / gist:71d274cc975dfee3457a
Last active Aug 29, 2015
Output from Design Time Host
View gist:71d274cc975dfee3457a
{
"ProjectName": "DesignTimeHostDemo",
"Configurations": [
{
"FrameworkName": "net45",
"LongFrameworkName": ".NETFramework,Version=v4.5",
"FriendlyFrameworkName": ".NET Framework 4.5",
"CompilationSettings": {
"LanguageVersion": 6,
"Defines": [
View plugin.py
import sublime, sublime_plugin, os, sys
import subprocess
class CBluntEventlistener(sublime_plugin.EventListener):
"""docstring for CBluntEventlistener"""
def on_query_completions(self, view, prefix, locations):
pos = locations[0]
scopes = view.scope_name(pos).split()
if "source.cs" not in scopes:
return []
View nuget.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="AspNetVNext" value="https://www.myget.org/F/aspnetvnext/api/v2" />
<add key="NuGet.org" value="https://nuget.org/api/v2/" />
</packageSources>
</configuration>
View test.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Host;
using Microsoft.CodeAnalysis.Host.Mef;
@natemcmaster
natemcmaster / quicksort.js
Created Aug 18, 2014
Simple implementation of quicksort in JS
View quicksort.js
function quickSort(arr) {
sort(arr, 0, arr.length - 1);
return arr;
}
function swap(arr, m, n) {
var tmp = arr[m];
arr[m] = arr[n];
arr[n] = tmp;
}
View keybase.md

Keybase proof

I hereby claim:

  • I am natemcmaster on github.
  • I am natemcmaster (https://keybase.io/natemcmaster) on keybase.
  • I have a public key whose fingerprint is 7A31 3DC2 CB0F 494B 84E9 69B8 AE49 AC45 8DE4 0A8E

To claim this, I am signing this object:

@natemcmaster
natemcmaster / README.md
Last active Aug 29, 2015
YSA 172: Nov. 7 Service Project
View README.md

TL;DR

Nov 7, 7:30pm

5455 Heritage School Dr, Provo

Service project, hosting a dance for Scenic View Academy (speical education school).


This Friday is our service project and dance!

@natemcmaster
natemcmaster / index.html
Created Nov 22, 2014
Tithing Settlement Schedule
View index.html
<html>
<head>
<meta name=Title content="Tithing Settlement">
<meta name=Keywords content="">
<meta http-equiv=Content-Type content="text/html; charset=macintosh">
<meta name=ProgId content=Excel.Sheet>
<meta name=Generator content="Microsoft Excel 14">
<link rel=File-List href="tithing_settlement_files/filelist.xml">
<title>Tithing Settlement</title>
You can’t perform that action at this time.