Skip to content

Instantly share code, notes, and snippets.

View prom3theu5's full-sized avatar
🏡
Working from Home

David Sekula prom3theu5

🏡
Working from Home
  • UK
  • 11:45 (UTC +01:00)
View GitHub Profile
@prom3theu5
prom3theu5 / Ecommerce.cs
Created July 26, 2016 15:00
BCD Google Tracking ECOmmerce
public class WidgetsGoogleAnalyticsController : BasePluginController
{
private readonly IWorkContext _workContext;
private readonly IStoreContext _storeContext;
private readonly IStoreService _storeService;
private readonly ISettingService _settingService;
private readonly IOrderService _orderService;
private readonly ILogger _logger;
private readonly ICategoryService _categoryService;
private readonly IProductAttributeParser _productAttributeParser;
@prom3theu5
prom3theu5 / Who needs a map editor?.markdown
Created October 23, 2015 23:16
Who needs a map editor?
@prom3theu5
prom3theu5 / telepen
Created May 6, 2015 12:20
Telepen Barcode c#
class Telepen: GenratorCommon, IBarcodeConstants
{
private static Hashtable Telepen_Code = new Hashtable();
private enum StartStopCode : int { START1, STOP1, START2, STOP2, START3, STOP3 };
private StartStopCode StartCode = StartStopCode.START1;
private StartStopCode StopCode = StartStopCode.STOP1;
private int SwitchModeIndex = 0;
private int iCheckSum = 0;
/// <summary>
@prom3theu5
prom3theu5 / windowsize
Created April 22, 2015 15:30
window Size relational to desktop
//XAML
<Window x:Class="App.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:tools="clr-namespace:App.Tools"
Height="{Binding Source={x:Static SystemParameters.PrimaryScreenHeight}, Converter={tools:RatioConverter}, ConverterParameter='0.9' }"
Width="{Binding Source={x:Static SystemParameters.PrimaryScreenWidth}, Converter={tools:RatioConverter}, ConverterParameter='0.9' }"
Title="{Binding Path=DisplayName}"
WindowStartupLocation="CenterScreen"
>
@prom3theu5
prom3theu5 / MailbirdInstallRegCheck.cs
Created March 13, 2015 14:31
Check 4.5 or Higher in the Registry
using Microsoft.Win32;
using System;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Get45or451FromRegistry();
@prom3theu5
prom3theu5 / yt-playlist-import.lua
Last active August 29, 2015 14:13
Youtube Playlist Importer
--[[
Youtube Playlist Importer for VLC
--]]
-- Helper function to get a parameter's value in a URL
function get_url_param( url, name )
local _, _, res = string.find( url, "[&?]"..name.."=([^&]*)" )
return res
end