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
void Main() | |
{ | |
string filePath = @"example.csv"; | |
SylvanCsv(filePath); | |
} | |
List<string> SylvanCsv(string filePath) | |
{ | |
StreamReader sr = new(filePath); |
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
using AgsVerifierLibrary.Enums; | |
using AgsVerifierLibrary.Models; | |
using System; | |
using System.Text.RegularExpressions; | |
namespace AgsVerifierLibrary.Actions | |
{ | |
public static class NumericChecks | |
{ | |
// Using static compiled regex for performance reasons. |
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 os | |
import sys | |
sys.path.append(os.getcwd()) | |
import clr | |
clr.AddReference('wpf\PresentationFramework') | |
from System import String | |
from System.IO import StreamReader | |
from System.Threading import ApartmentState, Thread, ThreadStart | |
from System.Windows import Application, LogicalTreeHelper, Window |
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
<Window | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
Title="Gaiaform" Height="600" Width="800"> | |
<Grid> | |
<DataGrid Name="TestDataGrid" /> | |
</Grid> | |
</Window> |
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 os | |
import sys | |
sys.path.append(os.getcwd()) | |
import clr | |
clr.AddReference('wpf\PresentationFramework') | |
from System.IO import StreamReader | |
from System.Threading import ApartmentState, Thread, ThreadStart | |
from System.Windows import Application, LogicalTreeHelper, Window | |
from System.Windows.Markup import XamlReader |
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
Sub MultiColumnTable_To_Array() | |
Dim pointList As Variant | |
Dim rowCount As Integer | |
Dim result As Variant | |
Dim epsilon As Double | |
Call ClearOutput | |
pointList = Sheets("Sheet1").Range("Table1") |
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
class Project(models.Model): | |
project_code = models.CharField(max_length=7, unique=True) | |
class Hole(models.Model): | |
hole_number = models.CharField(max_length=16) | |
project = models.ForeignKey('Project', on_delete=models.CASCADE, | |
blank=True, null=True, related_name='holes', verbose_name='Project') | |
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
"""Library for obtaining data from BGS WMS servers. | |
Unfortunately the BGS do not provide a simple text based API to access geology information for specific coordinates | |
or areas within a bounding box. | |
Available classes: | |
- GeoBGS: When called instantiates a GeoBGS object. | |
""" | |
from io import BytesIO |
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 os | |
import re | |
pattern_guide_1 = (r'S\d{6}\Z', 'Input project number >> ') | |
pattern_guide_2 = (r'\A[123]{1}\Z', 'Input selection number >> ') | |
ds = ['DS/Envirocheck', 'DS/Photos'] | |
si = ['SI/Photos'] | |
jobs = { | |
'1': ds, |
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
#! python3 | |
import os | |
import shutil | |
import zipfile | |
from zipfile import ZipFile | |
from os.path import basename | |
list_zip_file = [files for files in os.listdir(".") if zipfile.is_zipfile(files)] | |
for zip_file in list_zip_file: | |
zip_file = ZipFile(zip_file) |