Skip to content

Instantly share code, notes, and snippets.

View AlexanderDzhoganov's full-sized avatar

Alexander Dzhoganov AlexanderDzhoganov

  • Sofia, Bulgaria
View GitHub Profile
// Harvest t1 loc's in under 500 symbols
// Syntax: script {t: #s.some_corp.loc }
// Use with targets from ada.fullsec { npc: true }
// By nlight
function(c, a)
{
var _ = (c, p) => { c.forEach(p) }, // loop utility method
r = a.t.call({}), // first call to get method names
k = /d with ([a-z]+):/.exec(r)[1], // extract command key
<template>
<label>
${label}
</label>
<br/>
<form autocomplete="off">
<input ref="elementRef" value.bind="displayValue" class="form-control" disabled.bind="isDisabled" autocomplete="off">
</form>
</template>
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')
{
"Radio": [
{
"frequency": 91,
"inRange": true,
"active": true,
"text": "Classical Radio"
},
{
"frequency": 98,
{
"Radio": [
{
"frequency": 91,
"inRange": true,
"active": true,
"text": "Classical Radio"
},
{
"frequency": 98,
{"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":"",
(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() {
<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>
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();
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;