Skip to content

Instantly share code, notes, and snippets.

View spboyer's full-sized avatar
💭
Coding, contributing, supporting, mentoring, learning, all of the right verbs

Shayne Boyer spboyer

💭
Coding, contributing, supporting, mentoring, learning, all of the right verbs
View GitHub Profile
@spboyer
spboyer / GulpTypeScript
Created January 5, 2015 17:58
Simple example for using gulp.js to compile TypeScript
{
var gulp = require('gulp'),
tsc = require('gulp-tsc'),
shell = require('gulp-shell'),
seq = require('run-sequence'),
del = require('del');
var paths = {
ts: {
src: [
@spboyer
spboyer / _Layout.cshtml
Created March 6, 2015 18:41
Gulp file that installs bower dependencies, moves main files to wwwroot\lib and uses gulp-inject to inject resources into _Layout.cshtml
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - My ASP.NET Application</title>
<!-- inject:css -->
<link rel="stylesheet" href="/lib/bootstrap-touch-carousel.css">
<link rel="stylesheet" href="/lib/bootstrap.css">
@spboyer
spboyer / gulpfile.js
Created March 6, 2015 18:45
Gulp equivalent of grunt for VS2015 web template
var gulp = require('gulp');
var mainBowerFiles = require('main-bower-files');
var $ = require('gulp-load-plugins')({
lazy: true
});
gulp.task('bower', function () {
return $.bower()
});
@spboyer
spboyer / gulpfile.json
Created March 9, 2015 20:55
gulpfile options for generator-aspnet, as well as the Web Starter Template for ASP.NET 5 in Visual Studio
var gulp = require('gulp');
var bower = require('gulp-bower');
var del = require('del');
var project = require('./project.json');
var lib = project.webroot + '/lib';
gulp.task('default', ['bower:install'], function () {
return;
});
@spboyer
spboyer / a_small_note.md
Last active September 15, 2015 19:11 — forked from addyosmani/a_small_note.md
clone.sh

This let's me git clone a template repo, cd into and fire up a new template in my editor of choice:

$ clone starter # clones https://github.com/addyosmani/starter (a personal boilerplate)

$ clone h5bp html5-boilerplate # get me HTML5 Boilerplate

$ clone angular angular-seed # same for AngularJS seed

$ clone polymerlabs seed-element # same for a new Polymer element
@spboyer
spboyer / Azure Ghost Deployment Log
Created September 18, 2015 16:49
Ghost Deployment Log
Command: "D:\home\site\deployments\tools\deploy.cmd"
Handling node.js deployment.
The iisnode.yml file explicitly sets nodeProcessCommandLine. Automatic node.js version selection is turned off.
> [email protected] install D:\home\site\wwwroot\node_modules\sqlite3
@spboyer
spboyer / gist:de826bc191409de34516
Created November 19, 2015 11:26
dotnet cli bridage
### dnvm list ...
### dnx web -> dotnet run
### dnx run -> dotnet run
### dnu publish -> dotnet publish
### dnu build -> dotnet compile
### dnu restore -> dotnet restore
### dnu install -> dotnet install
function dotnet() {
local c=$1;
@spboyer
spboyer / create-and-push-to-repo.txt
Last active November 21, 2015 15:56
Create github repo
## inits, adds the README and push -u
function git-create() {
local user="USERNAME"
local repo=$1;
echo "# " $repo >> README.md
git init
git add README.md
git commit -m "first commit"
@spboyer
spboyer / glimpse -resolve-dump.txt
Created November 21, 2015 02:45
OmniSharp Glimpse dump
Starting OmniSharp server (pid:18683)
OmniSharp Location: /Users/shayneboyer/.atom/packages/omnisharp-atom/node_modules/omnisharp-client/roslyn/omnisharp
Change the location that OmniSharp is loaded from by setting the OMNISHARP environment variable
OmniSharp Path: /Users/shayneboyer/spboyer/cleanshave
Omnisharp server running using stdio at location '/Users/shayneboyer/spboyer/cleanshave' on host 18665.
Using runtime '/Users/shayneboyer/.k/runtimes/kre-mono.1.0.0-beta3'.
Scanning '/Users/shayneboyer/spboyer/cleanshave' for DNX projects
Found project '/Users/shayneboyer/spboyer/cleanshave/project.json'.
Listening on port 62558
Running DesignTimeHost on port 62558, with PID 18690
@spboyer
spboyer / travis-build-csharp.yml
Created December 1, 2015 20:20
Travis example for building a csharp solution
language: csharp
solution: myapp.sln
sudo: false
mono:
- latest
install:
- curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_BRANCH=dev sh && source ~/.dnx/dnvm/dnvm.sh
- dnvm upgrade
- dnu restore
os: