Skip to content

Instantly share code, notes, and snippets.

Head in the Clouds

Colin Nelson orthros

Head in the Clouds
  • Seattle
Block or report user

Report or block orthros

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View validPR.json
"pull_request" : {
"action": "opened"
View updateBounty.sql
begin tran
if exists (select * from dbo.BountyfulUsers with (updlock,serializable) where dbo.BountyfulUsers.UserName = '#[payload.userId]')
update dbo.BountyfulUsers set BountiesCompleted += 1
where dbo.BountyfulUsers.UserName = '#[payload.userId]'
insert into dbo.BountyfulUsers (UserName, BountiesCompleted)
values ('#[payload.userId]', 1)
View mulesoftBounty.xml
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:db="" xmlns:dw="" xmlns:metadata="" xmlns:http="" xmlns="" xmlns:doc=""
View dashboardView.cs
@model IEnumerable<BountyCount.BountyfulUser>
ViewBag.Title = "Dashboard";
<h2>Top Bounty Hunters!</h2>
<table class="table">
@Html.DisplayNameFor(model => model.UserName)
View bountyDashboardController.cs
public class DashboardController : Controller
UserBounty db = new UserBounty();
// GET: Dashboard
public ActionResult Index()
var topUsers = db.Users
.OrderByDescending(x => x.BountiesCompleted)
orthros / bountyfulUser.cs
Last active Jun 28, 2017
Class for a user bounty
View bountyfulUser.cs
public class BountyfulUser
public int Id { get; set; }
public string UserName { get; set; }
public int BountiesCompleted { get; set; }
orthros / isseEvent.json
Created Jun 28, 2017
GitHub Issue Event
View isseEvent.json
"action": "created",
"issue": {
"url": "",
"labels_url": "{/name}",
"comments_url": "",
"events_url": "",
"html_url": "",
"id": 73464126,
"number": 2,
You can’t perform that action at this time.