Skip to content

Instantly share code, notes, and snippets.

@bdpsoft
bdpsoft / AddDropDownList.vba
Created October 27, 2025 14:38
VBA procedure that takes parameters for sheet name, cell address, and formula (list source).
Sub AddDropDownList(sheetName As String, targetCell As String, formula As String)
Dim ws As Worksheet
' Try to get the worksheet
On Error Resume Next
Set ws = ThisWorkbook.Sheets(sheetName)
On Error GoTo 0
If ws Is Nothing Then
MsgBox "Sheet '" & sheetName & "' not found!", vbExclamation
@bdpsoft
bdpsoft / rc4.js
Created May 6, 2016 07:37 — forked from farhadi/rc4.js
RC4 encryption in javascript and php
/*
* RC4 symmetric cipher encryption/decryption
*
* @license Public Domain
* @param string key - secret key for encryption/decryption
* @param string str - string to be encrypted/decrypted
* @return string
*/
function rc4(key, str) {
var s = [], j = 0, x, res = '';
@bdpsoft
bdpsoft / designer.html
Last active August 29, 2015 14:11
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<polymer-element name="bdp-ocena-treninga">
<template>
<style>
:host {
position: absolute;
@bdpsoft
bdpsoft / gist:6537117
Last active December 22, 2015 21:59
HTML5 datalist javascript function to validate input, create custom lists and store key value pairs in input box bind to datalist
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Html5 datalist helper</title>
<script>
var Dlist={
count:0, min_chars:2, watched:null, datalist:null,self:null,