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
/***********************************************************************/ | |
/** © 2015 CD PROJEKT S.A. All rights reserved. | |
/** THE WITCHER® is a trademark of CD PROJEKT S. A. | |
/** The Witcher game is based on the prose of Andrzej Sapkowski. | |
/***********************************************************************/ | |
statemachine class CMajorPlaceOfPowerEntity extends CInteractiveEntity | |
{ | |
autobind interactionComponent : CInteractionComponent = "activationComponent"; | |
public editable var buffType : EShrineBuffs; |
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 pctRankArray(array:number[]){ | |
const normalMap = [...new Set(array)] | |
.sort((x, y) => x - y) | |
.reduce((map, val, ix, arr) => { | |
map.set(val, ix / (arr.length - 1)); | |
return map; | |
}, new Map<number, number>()); | |
return array.map(v => normalMap.get(v)) | |
} |
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
VERSION 1.0 CLASS | |
BEGIN | |
MultiUse = -1 'True | |
END | |
Attribute VB_Name = "XmlMonitor" | |
Attribute VB_GlobalNameSpace = False | |
Attribute VB_Creatable = False | |
Attribute VB_PredeclaredId = True | |
Attribute VB_Exposed = False | |
Option Explicit |
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
using System.Diagnostics; | |
var sw = Stopwatch.StartNew(); | |
int s = FindSmallestMaxPathUDLR64(new[] | |
{ | |
new []{ 1, 1, 1, 1, 1, 1, 1 }, | |
new []{ 9, 9, 9, 9, 9, 9, 1 }, | |
new []{ 9, 1, 1, 1, 1, 9, 1 }, | |
new []{ 9, 1, 9, 9, 1, 1, 1 }, | |
new []{ 9, 1, 9, 9, 9, 9, 9 }, |
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
/* | |
drop table if exists #data | |
select min,max, value = 1e* (abs(binary_checksum(newid()))%1000) | |
into #data | |
from (values(0, 9) | |
,(10, 19) | |
,(20, 29) | |
,(30, 39) | |
,(40, 59) | |
,(60, 70) |
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
// See https://aka.ms/new-console-template for more information | |
return CountIslands(new[] { new[] { 1, 1, 0 }, new[] { 1, 0, 1 }, new[] { 0, 1, 1 } })); | |
static int CountIslands(int[][] m) | |
{ | |
int count = 0; | |
for (int i = 0; i < m.Length; i++) | |
for (int j = 0; j < m[i].Length; j++) | |
if (m[i][j] == 1) |
This file has been truncated, but you can view the full file.
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
[ | |
{ | |
"level": 4, | |
"type_id": 510297, | |
"buffs": [ | |
499544 | |
], | |
"internal_name": "gem_physical_01", | |
"category": "Gem", | |
"socket_type": "W", |
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
Item Name | Count | |
---|---|---|
SkillBook_Alchemy | 1 | |
SkillBook_Dispelling | 1 | |
SkillBook_Blacksmithing | 1 | |
SkillBook_DetectHidden | 1 | |
SkillBook_Persuasion | 1 | |
SkillBook_Lockpicking | 1 | |
SkillBook_Mercantile | 1 | |
SkillBook_Sagecraft | 1 | |
Assassin's Aegis | 1 |
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
;with transfers as ( | |
select account_id = row_number() over (order by 1/0)%400, | |
transfer_date = eomonth(getutcdate(),-abs(binary_checksum(newid()))%13) | |
from string_split(space(8000),' ') | |
),last_12_months as ( | |
select month_end = eomonth(getutcdate(),-n), n | |
from(values(1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(11),(12))f(n) | |
) | |
select t.account_id | |
from transfers t |
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
args = ... | |
local q = {0x000438F0000002F0hl,0x000589EF000002F0hl,0x000589F0000002F0hl,0x000589F1000002F0hl,0x000589F2000002F0hl,0x000589F3000002F0hl,0x000589F4000002F0hl,0x000589F5000002F0hl,0x0005CF3D000002F0hl, | |
0x0005E1B5000002F0hl,0x0006AF9B000002F0hl,0x0006B480000002F0hl,0x0006C198000002F0hl,0x0006F9E6000002F0hl,0x0006FC47000002F0hl,0x00070BF9000002F0hl,0x00070F48000002F0hl,0x00070F49000002F0hl,0x000720DA000002F0hl, | |
0x0007231E000002F0hl,0x00072373000002F0hl,0x00072819000002F0hl,0x00072F63000002F0hl,0x000734C9000002F0hl,0x000734CF000002F0hl,0x000734D0000002F0hl,0x000734F3000002F0hl,0x0007357A000002F0hl,0x00073D6F000002F0hl, | |
0x000745F6000002F0hl,0x000767A3000002F0hl,0x0007751F000002F0hl,0x00077520000002F0hl,0x000780BC000002F0hl,0x00078CDF000002F0hl,0x0007A701000002F0hl,0x0007A788000002F0hl,0x0007A7A0000002F0hl,0x0007AFAA000002F0hl, | |
0x0007B117000002F0hl,0x0007B63A000002F0hl,0x0007E7FF000002F0hl,0x0007F6FF000002F0hl,0x0007FC1F000002F0hl,0x000813FD000002F0hl,0x00081D2C000002F0hl,0x000823B4000002F0hl,0x000827920 |
NewerOlder