Skip to content

Instantly share code, notes, and snippets.

View bolenton's full-sized avatar

Taurus Omejia bolenton

View GitHub Profile
using System;
using System.Collections.Generic;
namespace MatrixAssignment
{
class Matrix
{
public static int[,] CreateGrid(int rows, int cols)
{
int[,] grid = new int[rows, cols];
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;
}
<html ng-app="ngApp">
<head>
<link rel="stylesheet" href="style.css" />
</head>
<body ng-controller="MainController">
<h2>{{message}}</h2>
<div>{{error}}</div>
(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);
}
.profile-IMg{
width: 150px;
height: 150px;
}
.displayUserName{
font-family: Futura, "Trebuchet MS", Arial, sans-serif;
font-size: 35px;
font-style: normal;
font-variant: normal;
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,
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;
#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;
}
namespace StopWatch
{
public class StopWatch
{
private DateTime StartTime { get; set; }
public void Start() => this.StartTime = DateTime.Now;
public TimeSpan Stop() => DateTime.Now.Subtract(StartTime);
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;