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
public List<Type>? GetAssemblyTypes(string typeName, string assemblyName = "Shakely") | |
{ | |
List<Assembly> allAssemblies = new List<Assembly>(); | |
List<Type> allTypes = new List<Type>(); | |
string path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); | |
for (int i = 0; i < Directory.GetFiles(path, $"{assemblyName}*.dll").ToArray().Length; i++) | |
{ | |
var dll = Assembly.LoadFile(Directory.GetFiles(path, $"{assemblyName}*.dll").ToArray()[i]); | |
allAssemblies.Add(dll); |
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
private static HashSet<Type> NumericTypes = new HashSet<Type> | |
{ | |
typeof(decimal), typeof(byte), typeof(sbyte), typeof(double) | |
,typeof(short), typeof(ushort), typeof(Single), typeof(UInt16) | |
,typeof(Int16), typeof(Int32), typeof(UInt32),typeof(UInt64) | |
,typeof(Int64), typeof(float) | |
}; | |
public static bool IsNumeric(Type type) | |
{ |
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
set dateObj to (current date) | |
set theMonth to month of dateObj as number | |
set theDay to day of dateObj | |
set theYear to year of dateObj | |
set dateStamp to "" & theMonth & theDay & theYear | |
dateStamp | |
set dFolder to "~/Documents/MoveCU/ScreenCaptures/" & dateStamp & "/" | |
do shell script ("mkdir -p " & dFolder) |
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
<div id="errors" style=" | |
background: #c00; | |
color: #fff; | |
display: none; | |
margin: -20px -20px 20px; | |
padding: 20px; | |
white-space: pre-wrap; | |
"></div> | |
<div id="root"></div> | |
<script> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>chart</title> | |
<head> | |
<body> |
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
var imgs = document.getElementsByTagName("img"); | |
var imgSrcs = []; | |
for (var i = 0; i < imgs.length; i++) { | |
imgSrcs.push(imgs[i].src); | |
} | |
return imgSrcs; |
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
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - | |
sudo apt-get install -y nodejs | |
sudo apt-get install gcc g++ make | |
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null | |
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
sudo apt-get update && sudo apt-get install yarn |
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
/* | |
{ | |
"name": "example.com", | |
"version": "1.0.0", | |
"description": "", | |
"main": "main.js", | |
"scripts": { | |
"start": "http-server" | |
}, |
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
import os | |
for root, dirs, files in os.walk("D:\\Repos\\YahooApi"): | |
for file in files: | |
if file.endswith(".csproj"): | |
print(os.path.join(root, 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
var appBanners = document.getElementsByClassName("bling css-zvcs3w"); | |
for (var i = 0; i < appBanners.length; i++) { | |
appBanners[i].style.display = "none"; | |
} |
NewerOlder