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
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> | |
<style> | |
.container{ | |
position:relative; | |
left:0; | |
top:0; | |
} | |
textarea{ |
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
# To add a dropdown | |
dd_range = sheet.Range[0, 0] | |
shape = sheet.Shapes.AddFormControl(SpreadsheetGear.Shapes.FormControlType.DropDown, | |
sheet.WindowInfo.ColumnToPoints(dd_range.Column), # left | |
sheet.WindowInfo.RowToPoints(dd_range.Row), # top | |
width_in_points, # width | |
height_in_points) # height | |
# all the measurements above are in POINTS rather than row/column. I forget the calculations exactly.. there are | |
# conversions from columns/rows to points as seen above | |
shape.ControlFormat.AddItem("some string") |
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 bootstrap import AX | |
from System.Windows.Forms import * | |
from System.Drawing import * | |
import threading | |
import time | |
# Create the form | |
f = Form() | |
f.Size = Size(500, 200) |
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 |
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
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
""" | |
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
# 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
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
from nichevision.forensics.armedxpert.SampleSource import SampleSourceOSIRISOER | |
src = SampleSourceOSIRISOER( | |
r"filepath.oar", | |
True) | |
src.BeginLoadingSource(False) | |
for sample in src.AllEntries: | |
print sample.SampleName |
OlderNewer