This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
namespace MatrixAssignment | |
{ | |
class Matrix | |
{ | |
public static int[,] CreateGrid(int rows, int cols) | |
{ | |
int[,] grid = new int[rows, cols]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static string ShorterReverseLonger(string a, string b) | |
{ | |
if(a == null)a = "" ; | |
if (b == null) b = ""; | |
return (a.Length > b.Length || a.Length == b.Length) ? b + new string(a.ToCharArray().Reverse().ToArray()) + b : a + b.Reverse() + a; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html ng-app="ngApp"> | |
<head> | |
<link rel="stylesheet" href="style.css" /> | |
</head> | |
<body ng-controller="MainController"> | |
<h2>{{message}}</h2> | |
<div>{{error}}</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
var app = angular.module("ngApp", []); | |
var MainController = function ($scope, $http) { | |
var onUserComplete = function (response) { | |
$scope.user = response.data; | |
$http.get($scope.user.repos_url) | |
.then(onRepos, onError); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.profile-IMg{ | |
width: 150px; | |
height: 150px; | |
} | |
.displayUserName{ | |
font-family: Futura, "Trebuchet MS", Arial, sans-serif; | |
font-size: 35px; | |
font-style: normal; | |
font-variant: normal; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Main(string[] args) | |
{ | |
ApiClient test = new ApiClient("churchApiKey", "username", "password"); | |
var person = test.People.Individuals.Get(2, true); | |
var Person = new Individual() | |
{ | |
FirstName = person.FirstName, | |
LastName = person.LastName, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using RestSharp.Portable; | |
using RestSharp.Portable.Authenticators; | |
using RestSharp.Portable.HttpClient; | |
namespace ApiWrapper { | |
public class BaseApiSet<T> where T : new() | |
{ | |
private readonly string _baseUrl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#view-calendar ul > li.k-current-view { display: none; } | |
#view-calendar .k-scheduler-views li:nth-child(2) { | |
border-top-left-radius: 4px; | |
border-bottom-left-radius: 4px; | |
border-style: solid; | |
border-width: 1px 1px 1px 1px; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace StopWatch | |
{ | |
public class StopWatch | |
{ | |
private DateTime StartTime { get; set; } | |
public void Start() => this.StartTime = DateTime.Now; | |
public TimeSpan Stop() => DateTime.Now.Subtract(StartTime); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Data; | |
using System.Diagnostics.Eventing.Reader; | |
using System.Linq; | |
using System.Net; | |
using System.Security.Policy; | |
using System.Text; | |
using System.Threading.Tasks; |