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 Microsoft.Data.Entity.Migrations; | |
namespace GameRigger.Migrations | |
{ | |
public partial class Initial : Migration | |
{ | |
protected override void Up(MigrationBuilder migrationBuilder) | |
{ |
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 Project | |
{ | |
public int ID { get; set; } | |
public string DisplayName { get; set; } | |
public Organisation OrganisationOwner { get; set; } | |
} | |
public class Organisation | |
{ | |
public int ID { get; set; } |
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
function SetGlobalJobOptions() { | |
$.ajax({ | |
url: '@Url.Action("SetGlobalJobOptions")' + '/?id=' + @Model.ID + '&' + | |
'BenchmarkTest=' + $('#BenchmarkTest').is(':checked') + '&' + | |
'DeployBuild=' + $('#DeployBuild').is(':checked'), | |
//success: success, | |
}); | |
} |
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 UnityEngine; | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEditor; | |
public class AnimatedUnitCompressor : EditorWindow { | |
Vector2 scrollPos = Vector2.zero; | |
public List<GameObject> UnitPrefabs; | |
public static string BonePrefix; | |
private SerializedObject _serializedObject; |
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
//The current format is stored in the endianess of the platform that records it, and then swizzled into place in the editor strings are then handled specially | |
//Here are some sniplets from the current deserialization: | |
int dataIsLittleEndian = *((*bitstream)++); | |
bool shouldswap = UNITY_LITTLE_ENDIAN ? dataIsLittleEndian == 0 : dataIsLittleEndian != 0; | |
if(shouldswap) | |
{ | |
int* ptr = *bitstream; | |
while(ptr < endBuffer) | |
SwapEndianBytes(*(ptr++)); |
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
WARNING: 'org.apache.xerces.jaxp.SAXParserImpl: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.' | |
2015-09-04 18:47:42,526 ERROR [Thread-65] PluginSettingsMetadataLoader:94 - Failed to fetch Plugin Settings metadata for plugin : yum | |
java.lang.RuntimeException: Interaction with plugin with id 'yum' implementing 'package-repository' extension failed while requesting for 'go.plugin-setting | |
s.get-configuration'. Reason: [Unsuccessful response from plugin. Plugin returned with code '400' and the following response: 'Invalid request name go.plugi | |
n-settings.get-configuration'] | |
at com.thoughtworks.go.plugin.access.PluginRequestHelper.submitRequest(PluginRequestHelper.java:38) | |
at com.thoughtworks.go.plugin.access.common.settings.AbstractExtension.getPluginSettingsConfiguration(AbstractExtension.java:38) | |
at com.thoughtworks.go.plugin.access.packagematerial.PackageAsRepositoryExtension.getPluginSettingsConfiguration(PackageAsRepositoryExtension.java:5 | |
0) | |
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; | |
using System.Diagnostics; | |
using System.Globalization; | |
using System.Reflection; | |
using System.Runtime.CompilerServices; | |
using System.Runtime.Remoting.Metadata; | |
using System.Runtime.Remoting.Metadata.W3cXsd2001; | |
using System.Runtime.Remoting.Proxies; | |
using System.Runtime.Serialization; |
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
/* | |
var themes = UnlockableTheme.GetCachedLocalAvailableThemeIndices(); | |
NetworkConnectionError error = NetworkConnectionError.UserDefined1; | |
//uLink not supporting by default arrays :^( | |
switch (themes.Count) | |
{ | |
case 1: error = Network.Connect(host, port, password, playerName, 1, themes[0]); break; | |
case 2: error = Network.Connect(host, port, password, playerName, 2, themes[0], themes[1]); break; | |
case 3: error = Network.Connect(host, port, password, playerName, 3, themes[0], themes[1], themes[2]); break; | |
case 4: error = Network.Connect(host, port, password, playerName, 4, themes[0], themes[1], themes[2], themes[3]); break; |
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 static class GameObjectExtensions { | |
public static bool HasComponent<T>(this GameObject gameObject) { | |
return gameObject.GetComponent<T>() != null; | |
} | |
} |
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
// Shader created with Shader Forge v1.02 | |
// Shader Forge (c) Neat Corporation / Joachim Holmer - http://www.acegikmo.com/shaderforge/ | |
// Note: Manually altering this data may prevent you from opening it in Shader Forge | |
/*SF_DATA;ver:1.02;sub:START;pass:START;ps:flbk:,lico:1,lgpr:1,nrmq:1,limd:1,uamb:True,mssp:True,lmpd:False,lprd:False,rprd:False,enco:False,frtr:True,vitr:True,dbil:True,rmgx:True,rpth:1,hqsc:False,hqlp:False,tesm:0,blpr:0,bsrc:0,bdst:1,culm:0,dpts:2,wrdp:True,ufog:True,aust:True,igpj:False,qofs:0,qpre:1,rntp:1,fgom:False,fgoc:False,fgod:False,fgor:False,fgmd:0,fgcr:0.5,fgcg:0.5,fgcb:0.5,fgca:1,fgde:0.01,fgrn:0,fgrf:300,ofsf:0,ofsu:0,f2p0:False;n:type:ShaderForge.SFN_Final,id:1,x:34625,y:32712,varname:node_1,prsc:2|diff-391-OUT,spec-435-OUT,gloss-79-OUT,normal-44-RGB,emission-617-OUT,amspl-192-OUT;n:type:ShaderForge.SFN_Tex2d,id:5,x:33399,y:31694,ptovrint:False,ptlb:Diffuse,ptin:_Diffuse,varname:node_3400,prsc:2,ntxv:0,isnm:False;n:type:ShaderForge.SFN_Color,id:6,x:33399,y:31922,ptovrint:Fal |