Skip to content

Instantly share code, notes, and snippets.

AlexP11223

Block or report user

Report or block AlexP11223

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View doOnce.js
var doOnce = function() {
var completed = false;
return function() {
if (!completed) {
console.log('hello');
completed = true;
}
};
}();
View skype_disable_update.ahk
#Persistent
SetKeyDelay, 0
SetTimer, SkypeUpgrade, 250
return
SkypeUpgrade:
If WinExist("ahk_class TUpgradeForm")
{
ControlSend, , {Esc}, ahk_class TUpgradeForm
@AlexP11223
AlexP11223 / Drive.cs
Last active Mar 29, 2017
Simple example showing how to load disks information using WMI. C#, .NET
View Drive.cs
using System;
using System.Collections.Generic;
namespace WindowsFormsApplication19
{
class Drive
{
public string DeviceId { get; set; }
public string Model { get; set; }
View LoadHTML Source local images bug (?).cs
using System;
using System.IO;
using System.Windows.Forms;
using Awesomium.Core;
using Awesomium.Windows.Forms;
namespace WindowsFormsApplication3
{
static class Program
{
View CookieAwareWebClient.cs
/// <summary>
/// WebClient with Cookies support, UserAgent
/// </summary>
public class CookieAwareWebClient : WebClient
{
public CookieContainer CookieContainer { get; } = new CookieContainer();
public string UserAgent { get; set; } = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36";
protected override WebRequest GetWebRequest(Uri address)
View WebViewExtensions.cs
using System;
using Awesomium.Core;
namespace WebViewHelpers
{
public static class WebViewExtensions
{
/// <summary>
/// Simulates mouse movement to the specified coordinates and click.
/// As I remember it requires coordinates relative to the currently displayed area, and also will not work if specified coordinates are out of that area.
View WebViewHelper.cs
using System;
namespace WebViewHelpers
{
public static class WebViewHelper
{
// returns Javascript XPath query string for getting a single element
public static string GetJsSingleXpathString(string xpath)
{
return
View gist:7409349
using System;
using Awesomium.Core;
namespace AwesomiumNewTest
{
public static class WebViewHelper
{
public static string GetJsSingleXpathString(string xpath)
{
You can’t perform that action at this time.