Skip to content

Instantly share code, notes, and snippets.

View 200even's full-sized avatar
🍎

Scott Ferguson 200even

🍎
View GitHub Profile
@200even
200even / Contraction.html
Created September 16, 2015 13:25
Contraction Timer JS
@model IEnumerable<DigiDou.Web.Models.Contraction>
@{
ViewBag.Title = "Index";
}
<h2>Contraction Timer</h2>
<div>
<div align="center"><button class="stopwatch hvr-pulse" value="stopped">00:00:00</button></div>
<div class="col-md-offset-4">
@200even
200even / Seed function with static resize function
Created August 14, 2015 16:53
Seed function with static resize function
protected override void Seed(Week7_Lab.Models.PinterestDbContext context)
{
var roleManager = new RoleManager<IdentityRole>(new RoleStore<IdentityRole>(context));
var userManager = new UserManager<PinterestUser>(new UserStore<PinterestUser>(context));
if (userManager.FindByName("ahudson") == null)
{
var aaron = new PinterestUser() { FirstName = "Aaron", LastName = "Hudson", Email = "aaron@theironyard.com", UserName = "aaron@theironyard.com" };
userManager.Create(aaron, "Password123!");
}
@200even
200even / Scott - Week5.Day1 SQL Basics
Created July 27, 2015 20:51
Scott - Week5.Day1 SQL Basics
--Create a table for cities
create table cities
(Place varchar(30),
estimate2013 int,
census2010 int,
change decimal(9,4));
--Insert data for each row
insert into cities
(Place, estimate2013,census2010,change)
@200even
200even / Scott - Week3.Day1Bob
Created July 13, 2015 21:50
Scott - Week3.Day1 Bob
public class Bob
{
public string Hey(string remark)
{
if (remarkIsSilence(remark))
{
return "Fine. Be that way!";
}
else if (asking_a_question(remark))
{
@200even
200even / Blackjack - Card Class
Last active August 29, 2015 14:24
Scott - Week2.Day4 - Blackjack
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Blackjack
{
public class Card
{
@200even
200even / Scott - Week2.Day3 -SecretSanta
Last active August 29, 2015 14:24
Scott - Week2.Day3 - Secret Santa
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Week2Day3_SecretSanta
{
@200even
200even / Scott Week 2 Day 2 - Mechanic Shop
Created July 7, 2015 21:05
Scott Week 2 Day 2 - Mechanic Shop
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Mechanic_Shop
{
class Program
{
@200even
200even / Scott Week 2 Day 1 Humans Pandas Robots
Created July 6, 2015 21:31
Scott Week 2 Day 1 Humans Pandas Robots
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Humans_Robots_and_Pandas
{
public interface IAllBeings
{
@200even
200even / Scott Day 4 Planet Express
Last active August 29, 2015 14:24
Scott Day 4 Planet Express
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace PlanetDeliveries
{
class Program
@200even
200even / Day 3.cs
Last active August 29, 2015 14:24
Scott Day 3 Pig Dice Game
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Pig_Game
{
//class Player
//{