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
<ArrayElement type="map"> | |
<displayname>FreeCAD</displayname> | |
<identifier type="string">FreeCAD</identifier> | |
<AutoBehavior>zoom</AutoBehavior> | |
<ScrollUp type="map"> | |
<input type="string">mousebutton</input> | |
<mousebutton type="string">right</mousebutton> | |
<amount type="double">1</amount> | |
<amountmultiplier type="double">1</amountmultiplier> | |
<granularity type="double">50</granularity> |
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
src = Sources[0] | |
src.OpenOriginalDocument() | |
try: | |
for sample in src.AllEntries: | |
for locus in sample.Loci: | |
for allele in locus.Alleles: | |
peak_name = str(allele.Name) | |
if peak_name.endswith(' OL'): | |
peak_name = peak_name.replace(' OL', '') |
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
import clr | |
clr.AddReference("NLog") | |
import NLog | |
cfg = NLog.Config.LoggingConfiguration() | |
cfg.LoggingRules.Add( | |
NLog.Config.LoggingRule("*", NLog.LogLevel.Trace, NLog.Targets.ConsoleTarget()) | |
) | |
NLog.LogManager.Configuration = cfg |
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
from nichevision.forensics.armedxpert.SampleSource import SampleSourceOSIRISOER | |
src = SampleSourceOSIRISOER( | |
r"filepath.oar", | |
True) | |
src.BeginLoadingSource(False) | |
for sample in src.AllEntries: | |
print sample.SampleName |
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
editor.ClearLog() | |
import clr | |
clr.AddReference('System.Data.SQLite') | |
from nichevision.forensics.armedxpert.dnada.datalayer import Database | |
from System.Data.SQLite import SQLiteCommand | |
cmd = SQLiteCommand("select * from AlleleCombination", Database.SharedDatasource.Connection) | |
reader = cmd.ExecuteReader() |
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
# Might be missing some steps... putting this together as I go | |
docker run -it tensorflow/tensorflow bash | |
### | |
apt-get update | |
apt-get install python-virtualenv nano | |
mkdir ~/src && cd ~/src | |
virtualenv tensorflow_retrain | |
source ./tensorflow_retrain/bin/activate |
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
""" | |
Removes the NTFS file stream that indicates that a file has been | |
downloaded from the internet untrusted zone. | |
Requires clrtype.py library (see https://raw.githubusercontent.com/IronLanguages/main/master/Languages/IronPython/Samples/ClrType/clrtype.py). | |
""" | |
import sys | |
import os | |
import clr | |
import clrtype |
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 printJsonDiff(ch){ | |
for (var i in ch){ | |
var el = ch[i], | |
header; | |
if (el.parentNode.parentNode.firstChild.firstElementChild && el.parentNode.parentNode.firstChild.firstElementChild.innerText === "(array)"){ | |
header = el.parentNode.parentNode.parentNode.parentNode.firstChild.innerText + " :: " + el.parentNode.parentNode.firstChild.innerText; | |
} | |
else{ | |
header = el.parentNode.parentNode.firstChild.innerText; | |
} |
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
import requests | |
import time | |
from pyquery import PyQuery | |
SLEEP_TIME = 60 * 5 | |
SERVICES = ( | |
'SocialandGaming', | |
'XboxLiveCoreServices', | |
'PurchaseandContentUsage', |
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
import re | |
s = open('C:/ProgramData/Nichevision Forensics/ArmedXpert/plugins/reports/mixture_combinations_report.py').read() | |
m = re.search('__version__\s*=(.*)\s?', s) | |
if m.groups(): | |
v = m.groups()[0].replace("'", "").replace('"', '').strip() | |
print v |
NewerOlder