Skip to content

Instantly share code, notes, and snippets.

View JPVenson's full-sized avatar
🎁
Focusing

JPVenson JPVenson

🎁
Focusing
View GitHub Profile
using System;
using System.Collections.Generic;
using System.Linq;
using Sandbox;
using Sandbox.ModAPI;
namespace ClassLibrary1
{
public class Class1
{
$httpProvider.interceptors.push(function($q, dependency1, dependency2) {
return {
'requestError': function(rejection) {
var deferred = $q.defer();
var promise = deferred.promise;
return promise.reject().finally((reason) => {
if(promise["$$state"].pending.length == 0)
{
alert(rejection);
}
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Speech.Recognition;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace VoiceDetector
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-16">
<title>Activity Monitor Log</title>
<style type="text/css">
body{ text-align: left; width: 100%; font-family: Verdana, sans-serif; }
table{ border: none; border-collapse: separate; width: 100%; }
tr.title td{ font-size: 24px; font-weight: bold; }
using System;
using System.IO;
using System.Linq;
using System.Text;
namespace JPB.PersonalWebpage.Helper
{
public class Minify
{
private static Encoding DefaultEncoding(Encoding encoding)
public abstract class NotifyPropertyChanged
{
public string GetPropertyName(Expression<Func<object>> propertyExpression)
{
var unaryExpression = propertyExpression.Body as UnaryExpression;
var memberExpression = unaryExpression == null ? (MemberExpression)propertyExpression.Body : (MemberExpression)unaryExpression.Operand;
var propertyName = memberExpression.Member.Name;
return propertyName;
}
}
using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using Xunit;
"AppWorkshop"
{
"appid" "289070"
"SizeOnDisk" "406829"
"NeedsUpdate" "0"
"NeedsDownload" "0"
"TimeLastUpdated" "1517698998"
"TimeLastAppRan" "1517698383"
"WorkshopItemsInstalled"
{
This file has been truncated, but you can view the full file.
Mon, 08 Jan 2018 06:32:49 GMT
Connecting to host h2602619.stratoserver.net, port 5201
Reverse mode, remote host h2602619.stratoserver.net is sending
[ 5] local 192.168.178.21 port 51933 connected to 81.169.212.86 port 5201
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-1.00 sec 8.41 MBytes 70.5 Mbits/sec
[ 5] 1.00-2.00 sec 9.97 MBytes 83.7 Mbits/sec
[ 5] 2.00-3.00 sec 9.89 MBytes 82.9 Mbits/sec
[ 5] 3.00-4.00 sec 9.88 MBytes 82.9 Mbits/sec
[ 5] 4.00-5.00 sec 9.61 MBytes 80.6 Mbits/sec
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using JPB.DataAccess.Manager;
using JPB.DataAccess.Tests.TestFramework;
using NUnit.Framework;
using NUnit.Framework.Internal;