Skip to content

Instantly share code, notes, and snippets.

View Phlow2001's full-sized avatar

Jay Blanchard Phlow2001

  • Senior Principal Engineer
  • Tallahassee, FL
View GitHub Profile
@Phlow2001
Phlow2001 / gitflow-breakdown.md
Created October 23, 2020 16:38 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@Phlow2001
Phlow2001 / gitflow-breakdown.md
Created October 23, 2020 16:38 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

const fs = require('fs')
const separator = process.platform === 'win32' ? ';' : ':'
const paths = process.env.PATH.split(separator).map(p => `${p}/yarn.js`)
const yarnjsPaths = [
'c:/Program Files (x86)/yarn/bin/yarn.js',
'c:/Program Files/yarn/bin/yarn.js',
].concat(paths)
const yarnjsPath = yarnjsPaths.find(fs.existsSync)
void Main()
{
var thing = new MyClass<MyDerivedGeneric<ImplType>, ImplType>();
}
public interface IBase { }
public class ImplType : IBase { }
public class MyGenericBase<T> where T : IBase { }
public class MyDerivedGeneric<T> : MyGenericBase<T> where T : IBase { }
public class MyClass<T, U> where T : MyGenericBase<U> where U : IBase { }
@Phlow2001
Phlow2001 / gist:7751355
Last active December 30, 2015 00:39 — forked from anonymous/gist:7751324
public ActionResult Create(string cmsMenuId)
{
SelectList list = new SelectList(db.CmsMenus, "ID", "Name");
if (cmsMenuId != null) // or !string.IsNullOrEmpty(cmsMenuId) if it makes more sense
{
var selected = list.First(x => x.Value == cmsMenuId);
selected.Selected = true;
}
ViewBag.CmsMenuId = list;