Tag: Script Library
-
Run Angular 18 Karma Unit Tests in Docker
I have been working on a frontend library using Ionic 8 and Angular v18 and wanted to set up Karma Unit Tests. One issue I ran into was getting the tests to run locally and, later, in a Docker container in a CI/CD pipeline so I put together a GitHub Repository as an example. This…
-
Passing XML to Sql Server
Learn how to pass XML to SQL Server
-
Easy Pop-Ups with JQuery
Create a popup and position it dynamically using Jquery.
-
Wrapping HTML Elements with a Parent DIV using jQuery
Add a target element to a parent DIV dynamically using jQuery.
-
YouTube Video Event Tracking
Easily Track YouTube Videos with Google Analytics has Javascript code available to perform tracking on YouTube video events in Google Analytics. I encountered a problem where the code didn’t work with YouTube videos already embedded with iframes. The YouTube JavaScript Player API Reference says that it should be able to handle YouTube videos embedded in…
-
Export SQL Server Stored Procedures using Python
The following short Python 2.7 script creates an export of all the stored procedures and functions within a SQL Server database.
-
Overwriting the Browser Confirm pop up using jQuery
You can overwrite the default confirm function using the following snippet of code which combines jQuery UI and Bootstrap to create a nice looking confirm box that is easier to read.
-
Simple Cache Class in C#
A simple class that gets and sets Hashtables within a Session object in C#.
-
Caching the results of a PDO Query in Memcache
A quick example of code that will prepare a PDO statement and cache the results in Memcache in a LAMP environment.
-
Modelling Chaotic Systems using Support Vector Regression and Python
Support Vector Regression is a technique in machine learning that can be used to model chaotic data. A program is shown to work on Delayed Henon Map data.