Skip to content

Instantly share code, notes, and snippets.

{
"openapi": "3.0.1",
"info": {
"title": "My API",
"version": "v1"
},
"paths": {
"/Test/Get": {
"get": {
"tags": [
{
"openapi": "3.0.1",
"info": {
"title": "My API",
"version": "v1"
},
"paths": {
"/Test/Get": {
"get": {
"tags": [
{
"openapi": "3.0.1",
"info": {
"title": "My API",
"version": "v1"
},
"paths": {
"/Test/Get": {
"get": {
"tags": [
{
"openapi": "3.0.1",
"info": {
"title": "My API",
"version": "v1"
},
"paths": {
"/Test/Get": {
"get": {
"tags": [
{
"openapi": "3.0.1",
"info": {
"title": "My API",
"version": "v1"
},
"paths": {
"/Test/Get": {
"get": {
"tags": [
{
"openapi": "3.0.1",
"info": {
"title": "My API",
"version": "v1"
},
"paths": {
"/Test": {
"get": {
"tags": [
@danzel
danzel / enumfunc.cs
Last active August 29, 2015 14:07 — forked from rje/enumfunc.cs
public T ReadEnum<T>(string tok) where T : struct
{
if(typeof(T).IsEnum == false)
{
throw new Exception("Generic type " + typeof(T).Name + " passed to ReadEnum<T> is not an enum type");
}
T toReturn = default(T);
try
{
@danzel
danzel / gist:b6158ecf53aaf8b552e1
Created September 1, 2014 21:28
p4merge git extensions
Tools, Settings
Mergetool: Choose p4merge
Difftool: type "p4merge" (no quotes)
Path: C:/Program Files/Perforce/p4merge.exe
Command: "C:/Program Files/Perforce/p4merge.exe" "$LOCAL" "$REMOTE"
@danzel
danzel / gist:179ac8eb09fc19090cd2
Last active August 29, 2015 14:01
gfycat support for jabbr
jabbr now supports custom content providers, making it very easy to add gfycat support.
Hit the administration link, scroll to the bottom and enter this:
Name: gfycat
Domains: http://gfycat.com/;http://www.gfycat.com/;https://gfycat.com/;https://www.gfycat.com/
Extract: .*gfycat\.com\/(\w+)
Output:
<video width="425" height="344" autoplay="" loop="" muted="muted" style="display: block;" poster="//thumbs.gfycat.com/{0}-poster.jpg">
@danzel
danzel / distance.csv
Last active January 2, 2016 18:29 — forked from tmcw/distance.csv
totalseconds totalmeters starttime sport
2924 0 2010-05-26T00:00:00.000Z Running
315 2731 2010-09-27T00:00:00.000Z Running
1602 13782 2010-09-28T00:00:00.000Z Running
656 5470 2010-09-29T00:00:00.000Z Running
631 5465 2010-09-30T00:00:00.000Z Running
1580 13880 2010-10-01T00:00:00.000Z Running
5449 53844 2010-10-02T00:00:00.000Z Running
19278 442971 2010-10-03T00:00:00.000Z Running
4096 11007 2010-10-04T00:00:00.000Z Running