Skip to content

Instantly share code, notes, and snippets.

View anna-dolbina's full-sized avatar

Anna Dolbina anna-dolbina

  • TeamDev Ltd.
  • Kharkiv, Ukraine
View GitHub Profile
@anna-dolbina
anna-dolbina / CefSharpDom.cs
Last active January 27, 2022 10:31
Code snippets for DotNetBrowser and CefSharp comparison
var script = @"
document.getElementsByName('question')[0].value = 'CefSharp Example';
document.getElementsByName('btn')[0].click();
";
browser.ExecuteScriptAsync(script);
@anna-dolbina
anna-dolbina / Hooks.cs
Created April 15, 2021 11:39
Local windows hooks and CBT hook wrapper
//Based on https://docs.microsoft.com/en-us/archive/msdn-magazine/2002/october/cutting-edge-windows-hooks-in-the-net-framework
using System;
using System.Runtime.InteropServices;
using System.Text;
namespace Example
{
public class HookEventArgs : EventArgs
{
#region Properties
@anna-dolbina
anna-dolbina / ZipUtility.java
Last active August 31, 2022 17:53
This sample demonstrates how to add a new file (or overwrite the existing one) in a ZIP archive
import java.io.*;
import java.util.Enumeration;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
import java.util.zip.ZipOutputStream;
public class ZipUtility {
private final File zipFilePath;