This file contains 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.Dynamic; | |
using System.Linq; | |
using Massive; | |
using Massive.Expressions; | |
public class Test | |
{ | |
public void TestMethod( ) | |
{ |
This file contains 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.Dynamic; | |
using System.Linq; | |
using Massive; | |
using Massive.Expressions; | |
public class Test | |
{ | |
public void TestMethod() | |
{ |
This file contains 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
<#@ Include File="SaveOutput.tt" #> | |
<#@ Assembly Name="System.Xml" #> | |
<#@ Assembly Name="System.Text.RegularExpression" #> | |
<#@ Assembly Name="Microsoft.SqlServer.ConnectionInfo" #> | |
<#@ Assembly Name="Microsoft.SqlServer.Management.Sdk.Sfc" #> | |
<#@ Assembly Name="Microsoft.SqlServer.Smo" #> | |
<#@ Import Namespace="Microsoft.SqlServer.Management.Smo" #> | |
<#@ Import Namespace="System.Xml.Serialization" #> | |
<#@ Import Namespace="System.Collections" #> | |
<#@ Import Namespace="System.Collections.Generic" #> |
This file contains 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.Linq; | |
using System.Text; | |
public interface IServiceProvider | |
{ | |
T GetService<T>() where T : class; | |
} |
This file contains 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.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
using System.Windows; | |
using System.Windows.Controls; |
This file contains 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
private static readonly string _languagesKey = "languages"; | |
public static Dictionary<string, string> GetLanguages() | |
{ | |
return GetData(_languagesKey, 15, () => | |
{ | |
// TODO: Get data from language service | |
var languages = new Dictionary<string, string>(); | |
return languages; |
This file contains 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
$(document).ready(function(){ | |
var aInputs = $(":button"); | |
for(var i=0;i<aInputs.length;i++){ | |
var obj = $(aInputs[i]); | |
if(obj.hasClass("vhm_btn_xsmall") || obj.hasClass("vhm_btn_small") || obj.hasClass("vhm_btn_medium") || obj.hasClass("vhm_btn_large")){ | |
obj.mousedown(function(){ | |
var o = $(this); | |
var sClass = o.attr("class").toLowerCase(); | |
o.removeClass(sClass); | |
o.addClass(sClass + "_on"); |
This file contains 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 float Acceleration { get; set; } | |
public void Update(GameTime gameTime) | |
{ | |
var additionalVelocity = new Vector2((float)Mat.Cos(Rotation) * Acceleration, (float)Math.Sin(Rotation) * Acceleration); | |
var newVelocity = CurrentVelocity + additionalVelocity; | |
if (Math.Abs(newVelocity.DistanceTo(Vector2.Zero)) <= 250) | |
{ |
This file contains 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
$clientConfigurationFile = 'C:\Program Files\NCache\config\client.ncconf' | |
$serverConfigurationFile = 'C:\Program Files\NCache\bin\service\Alachisoft.NCache.Service.exe.config' | |
$ips = ipconfig | Where-Object {$_ -match "IPv4 Address"} | foreach-object{$_.Split(":")[1].Trim()} | |
if ($ips -is [system.array]) | |
{ | |
$newIp = $ips[0].ToString() | |
} | |
else |
This file contains 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 class Enemy : Sprite | |
{ | |
public int HitRadius { get { return 10; } } | |
} |
OlderNewer