Skip to content

Instantly share code, notes, and snippets.

View bolenton's full-sized avatar

Taurus Omejia bolenton

View GitHub Profile
public static string RemoveSpecialSymbols(this string mystring)
{
JObject j = new JObject();
j.Add(new JProperty("", mystring));
//string s = j.First.Value<string>();
var sr = new StringWriter();
var jsonWriter = new JsonTextWriter(sr)
{
StringEscapeHandling = StringEscapeHandling.EscapeNonAscii
@bolenton
bolenton / rps2
Last active April 27, 2017 05:44
using System;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RockPaperScissors
{
class Program
{
static void Main(string[] args)
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;
namespace StopWatch
{
public class StopWatch
{
private DateTime StartTime { get; set; }
public void Start() => this.StartTime = DateTime.Now;
public TimeSpan Stop() => DateTime.Now.Subtract(StartTime);
#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;
}
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;
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,
.profile-IMg{
width: 150px;
height: 150px;
}
.displayUserName{
font-family: Futura, "Trebuchet MS", Arial, sans-serif;
font-size: 35px;
font-style: normal;
font-variant: normal;
(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);
}
<html ng-app="ngApp">
<head>
<link rel="stylesheet" href="style.css" />
</head>
<body ng-controller="MainController">
<h2>{{message}}</h2>
<div>{{error}}</div>