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 bs4 import BeautifulSoup | |
import ollama | |
import requests | |
import xml.etree.ElementTree as ET | |
# Define Ollama model and session | |
MODEL_NAME = "llama3.2" | |
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 bpy | |
import random | |
def my_animator(scene): | |
print("Frame change", scene.frame_current) | |
if scene.frame_current == 100: | |
bpy.ops.object.delete() | |
bpy.ops.mesh.primitive_cube_add(scale = (1, 1, 1 + random.uniform(0, 2.0))) | |
cube = bpy.context.active_object |
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
diff --git a/src/Microsoft.VisualStudio.SlnGen.Tool/Microsoft.VisualStudio.SlnGen.Tool.csproj b/src/Microsoft.VisualStudio.SlnGen.Tool/Microsoft.VisualStudio.SlnGen.Tool.csproj | |
index cde9cbd..eeb9cee 100644 | |
--- a/src/Microsoft.VisualStudio.SlnGen.Tool/Microsoft.VisualStudio.SlnGen.Tool.csproj | |
+++ b/src/Microsoft.VisualStudio.SlnGen.Tool/Microsoft.VisualStudio.SlnGen.Tool.csproj | |
@@ -62,14 +62,6 @@ | |
ReferenceOutputAssembly="false" | |
SkipGetTargetFrameworkProperties="true" | |
TargetFramework="net7.0" /> | |
- <ProjectReference Include="..\Microsoft.VisualStudio.SlnGen\Microsoft.VisualStudio.SlnGen.csproj" | |
- SetTargetFramework="TargetFramework=net8.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
#!/bin/bash | |
# Inspired by https://raspberrypi.stackexchange.com/a/28047/127204 | |
MY_PATH="`dirname \"$0\"`" | |
LOG_PATH="/home/log/network.log" | |
now=$(date +"%m-%d %r") | |
# Which Interface do you want to check |
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
@echo off | |
echo Installing the Shrink PDF shell extension | |
::Detecting gswin | |
where /q gswin64c.exe | |
IF ERRORLEVEL 1 ( | |
echo Cannot find gswin64c.exe. Make sure you've installed Ghostscript. | |
echo You can install it with "choco install ghostscript". |
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
# Copyright 2021 Google LLC. | |
# SPDX-License-Identifier: Apache-2.0 | |
if not ('main_window_handle' in vars() or 'main_window_handle' in globals()): | |
print('main_window_handle is not defined') | |
main_window_handle = driver.current_window_handle | |
driver.switch_to.window(main_window_handle) | |
frame = driver.find_element_by_css_selector('frame') | |
driver.switch_to.frame(frame) |
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
# Copyright 2021 Google LLC. | |
# SPDX-License-Identifier: Apache-2.0 | |
import os | |
import pathlib | |
import re | |
months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] | |
pattern_td = r'(.+)([A-Za-z]{3})_(\d\d)-([A-Za-z]{3})_(\d\d)\_(\d\d\d\d).pdf' | |
pattern_loc = r'(.+)([A-Za-z]{3})_(\d\d)(_|-)(\d\d\d\d).pdf' |
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
# Copyright 2021 Google LLC. | |
# SPDX-License-Identifier: Apache-2.0 | |
search_input = driver.find_element_by_xpath("//input[@id='searchInput']") | |
search_input.clear() | |
search_input.send_keys('George Washington') | |
submit_button = driver.find_element_by_xpath("//button[@type='submit']") | |
submit_button.click() |
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
/** | |
* Copyright 2020 Google LLC. | |
* SPDX-License-Identifier: MIT | |
*/ | |
using Microsoft.Toolkit.Uwp.Notifications; | |
using System; | |
using System.Windows.Forms; | |
using Windows.Data.Xml.Dom; | |
using Windows.UI.Notifications; |
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
/** | |
* Copyright 2020 Google LLC. | |
* SPDX-License-Identifier: MIT | |
*/ | |
using Microsoft.WindowsAPICodePack.Shell.PropertySystem; | |
using System; | |
using System.IO; | |
using System.Reflection; | |
using System.Runtime.CompilerServices; | |
using System.Runtime.InteropServices; |
NewerOlder