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
[Editable(false)] | |
public string MyProperty {get;set;} | |
// OR | |
// If you want a readonly public property of a class use: | |
public string MyProperty {get; private set;} |
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
public void Main(){ | |
#if (!RELEASE && !PRODUCTION) | |
// this code is only called if we are compiling on a non-live configuration | |
GetLogErrors(); | |
#endif | |
} | |
/// <summary> | |
/// Debug method to show what validation errors exist |
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
$('.wl-ribbon.poster.not-inWL').each(function(e){this.click(function(){console.log('Clicked!')})}); |
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 numpy | |
import pandas | |
numpy.random.seed(0) | |
index1 = pandas.MultiIndex.from_product( | |
[['A'], ['b'], ['one', 'two']], | |
names=['City', 'Street', 'House'] | |
) | |
index2 = pandas.MultiIndex.from_product( |
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 glob | |
import sys | |
import pandas | |
def read_filenames(names): | |
for arg in names: | |
if "*" in arg: | |
for file in glob.glob(arg): | |
yield file |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# np.linspace(start, stop, num) | |
np.linspace(2.0, 3.0, num=5) | |
array([ 2.0, 2.25, 2.5, 2.75, 3.0]) |
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
double = lambda x: x * 2 | |
print(double(5)) | |
# output: 10 |
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
Console.SetCursorPosition(20, 0); | |
Console.WriteLine("Hello"); | |
Console.SetCursorPosition(20, 2); | |
Console.WriteLine("World"); | |
Console.ReadLine(); |
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
IF((Test-Path -Path $FileOrFolderPath) -eq $false) { | |
Write-Warning "File or directory does not exist." | |
} | |
Else { | |
$LockingProcess = CMD /C "openfiles /query /fo table | find /I ""$FileOrFolderPath""" | |
Write-Host $LockingProcess | |
} |