This file contains hidden or 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
| import {bindable, customElement, inject} from 'aurelia-framework'; | |
| import $ from 'jquery'; | |
| import typeahead from 'typeahead'; | |
| import _ from 'lodash'; | |
| import {Compiler} from 'gooy/aurelia-compiler'; | |
| @customElement('typeahead-input') |
This file contains hidden or 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
| { | |
| "Radio": [ | |
| { | |
| "frequency": 91, | |
| "inRange": true, | |
| "active": true, | |
| "text": "Classical Radio" | |
| }, | |
| { | |
| "frequency": 98, |
This file contains hidden or 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
| { | |
| "Radio": [ | |
| { | |
| "frequency": 91, | |
| "inRange": true, | |
| "active": true, | |
| "text": "Classical Radio" | |
| }, | |
| { | |
| "frequency": 98, |
This file contains hidden or 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
| {"Radio":[{"frequency":91,"inRange":true,"active":true,"text":"Classical Radio"},{"frequency":98,"inRange":true,"active":false,"text":"Diamond City Radio"},{"frequency":99.5,"inRange":false,"active":false,"text":"Trinity Tower Radio"},{"frequency":89,"inRange":false,"active":false,"text":"Silver Shroud Radio"},{"frequency":95,"inRange":false,"active":false,"text":"Military Frequency AF95"}],"Perks":[{"Name":"","Rank":0,"SWFFile":"","MaxRank":1,"Clip":2392074,"Perks":[{"Description":""}],"ListVisible":true},{"Name":"","Rank":0,"SWFFile":"","MaxRank":1,"Clip":2382014,"Perks":[{"Description":""}],"ListVisible":true},{"Name":"","Rank":0,"SWFFile":"","MaxRank":1,"Clip":2348208,"Perks":[{"Description":"Limb damage is reduced by 100%."}],"ListVisible":true},{"Name":"Vault 81 Molerat Disease","Rank":0,"SWFFile":"","MaxRank":1,"Clip":2338497,"Perks":[{"Description":"-10 health"}],"ListVisible":true},{"Name":"","Rank":0,"SWFFile":"","MaxRank":1,"Clip":2300905,"Perks":[{"Description":""}],"ListVisible":true},{"Name":"", |
This file contains hidden or 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() { | |
| angular.element(document).ready(function() { | |
| var apiInjector = angular.injector(['MyAPI']); | |
| var api = apiInjector.get('apiProvider'); | |
| api.connect("http://localhost:3000", function(user) { | |
| api.user = 'user'; | |
| console.log('connected, bootstrapping app'); | |
| angular.bootstrap(document, ["MyAppModule"]); | |
| }, function() { |
This file contains hidden or 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
| <UIView> | |
| <Component name="TSBar"> | |
| <Component name="MainToolstrip"> | |
| <Component name="Separator"> | |
| <isVisible>true</isVisible> | |
| <size>0.0, 49.0</size> | |
| </Component> | |
| <Component name="SmallSeparator"> | |
| <isVisible>true</isVisible> |
This file contains hidden or 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 ddsBytes = File.ReadAllBytes("C:\\Users\\nlight\\Desktop\\test.dds"); | |
| var height = BitConverter.ToInt32(ddsBytes, 12); | |
| var width = BitConverter.ToInt32(ddsBytes, 16); | |
| var texture = new Texture2D(width, height, TextureFormat.DXT5, true); | |
| texture.LoadRawTextureData(ddsBytes); | |
| texture.Apply(); |
This file contains hidden or 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 void WritePrivate<T, Q>(T o, string fieldName, object value) | |
| { | |
| var fields = typeof(T).GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance); | |
| FieldInfo field = null; | |
| foreach (var f in fields) | |
| { | |
| if (f.Name == fieldName) | |
| { | |
| field = f; |
This file contains hidden or 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
| for (int i = 0; i < vManager.m_vehicles.m_buffer.Length; i++) | |
| { | |
| if((vManager.m_vehicles.m_buffer[i].m_flags & (Vehicle.Flags.Created | Vehicle.Flags.Deleted)) != Vehicle.Flags.Created) | |
| { | |
| continue; | |
| } | |
| Vehicle v = vManager.m_vehicles.m_buffer[i]; | |
| if (v.Info.m_vehicleType != VehicleInfo.VehicleType.Car) |
This file contains hidden or 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 Util | |
| { | |
| public static FieldInfo FindField<T>(T o, string fieldName) | |
| { | |
| var fields = typeof(T).GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance); | |
| foreach (var f in fields) | |
| { | |
| if (f.Name == fieldName) |