Questions tagged [plugin]

A plug-in (or plugin) is a set of software components that adds specific abilities to a larger software application. If supported, plug-ins enable customizing the functionality of an application.

Filter by
Sorted by
Tagged with
20 votes
3 answers
663 views

Pluggin' in Plugins

I'm currently working on an in-house project and a part of that project is this pretty standard plugin loader below. There must be a way to avoid so many ugly looking ...
zanderwar's user avatar
  • 421
13 votes
1 answer
429 views

Voting plugin for an IRC bot

MetaBrainz has an IRC channel called #metabrainz on which there's a bot called BrainzBot running. It provides utilities such as linking to JIRA issues or Github PRs ...
naiveai's user avatar
  • 101
13 votes
1 answer
2k views

ExtJS Grid Plugin

The code below is a plugin I wrote for Ext.grid.GridPanel, which basically allows you to have a bit more control over how rows are striped in the grid. By default ...
Mchl's user avatar
  • 528
12 votes
3 answers
804 views

Scanning a directory for plugins and loading them

I'm working on a simple dictionary tool, with a base class that can be extended by plugins to represent different dictionaries. The plugins are organized in the filesystem like this: ...
janos's user avatar
  • 110k
11 votes
2 answers
1k views

jQuery plugin that makes a slider out of an <ul> list

This is one of my very first jQuery plugins. In short: it makes a slider out of an <ul> list filled with <li> items ...
D4V1D's user avatar
  • 111
11 votes
1 answer
914 views

Minimal Python plugin mechanism

Is there a better way to have a minimal Python plugin mechanism than the following? (This was inspired from this post.) ...
Andrew Chen's user avatar
11 votes
1 answer
241 views

Metalsmith plugin for stripping UTF8 BOM from files

I've been developing a metalsmith static site and I came across an issue where Visual Studio was automatically adding a BOM to the pages. I wrote the following plugin for metalsmith (it needs to be ...
James Khoury's user avatar
  • 3,095
9 votes
1 answer
301 views

First jQuery Plugin - SmoothSlider

I've been working with jQuery, mostly consuming plugins and using bits and pieces here and there for other functionality. Anyways, I wrote some standalone functionality in jQuery for a project and ...
emgee's user avatar
  • 193
8 votes
1 answer
4k views

Private methods and properties in jQuery "lightweight start" pattern

For non-plugin code, I generally use the module pattern, but I'm working on a jQuery plugin and decided to try out the "lightweight start" pattern. The problem is, I find myself needing ...
jbarreiros's user avatar
7 votes
2 answers
560 views

jQuery plugin to cycle through text and "typewrite" it out

I have written a jQuery plugin (my first for a long time) that simply cycles through strings of text in a data attribute and uses setInterval to type it out - it's ...
CJD's user avatar
  • 171
7 votes
3 answers
303 views

NRPE script for monitoring load average

This script converts a server load value into percentage, compares it with non desired state ($warning and $critical) and returns all information in NRPE (Nagios Remote Plugin Executor) friendly ...
David Mosler's user avatar
7 votes
1 answer
10k views

Pattern for creating a globally accessible custom plugin

I'm currently using this pattern to create and extend a globally accessible custom plugin to be used in a web application: ...
Jon's user avatar
  • 588
7 votes
2 answers
591 views

Animating a block of HTML on scroll

I'm pretty new to client side scripting and I'm still learning. I've written this JS plugin which animates blocks of HTML (fade-in from left/top/right/bottom) as you scroll down the page. Everything ...
Jay's user avatar
  • 71
7 votes
1 answer
3k views

Compile-time plugin system

Background For a piece of software that I need to get extensible, I wanted to design a simple compile-time "plugin" system in C++. My use case was that the program (actually a library) can accept ...
Cilyan's user avatar
  • 285
7 votes
1 answer
450 views

jQuery to display ANSI graphics

This is my first attempt at a jQuery plugin. Any tips or comments in regards the the plugin setup would be appreciated. I'm also looking for a general review over the code itself. I'm wondering if ...
Justin808's user avatar
  • 775
6 votes
1 answer
89 views

Update GIS Project by matching files from directory with files already loaded and apply relevant symbology

I am developing a plugin for a GIS (Geographic Information Systems) software, QGIS, which uses Python. I have created a function which performs an update (i.e. inserts files, or shapefiles, into their ...
Joseph's user avatar
  • 363
6 votes
1 answer
163 views

Calculating areas of map features

I am developing a plugin for QGIS (a Geographic Information Systems) software which uses Python. I have calculated four areas of interest, it does this by identifying each feature on the map (called <...
Joseph's user avatar
  • 363
6 votes
2 answers
1k views

Small jQuery mobile plugin to handle touch events

Why this plugin: I am developing a mobile app - at some point, I felt like this would be a good idea to give the users the possibility to control everything in the app with touch gestures, hence the ...
IazertyuiopI's user avatar
6 votes
1 answer
544 views

Creating a tab plugin

I am creating a tab plugin. I want to know if there is a better way of doing this or if what I have is good. It works just fine, but there may be some shortcuts or a more optimized way of ...
DDiVita's user avatar
  • 453
6 votes
2 answers
177 views

Handlers for checkboxes to select various map features

I am developing a plugin for QGIS (a Geographic Information Systems) software which uses Python. I have several functions where each of them is connected to a QCheckbox. So when a checkbox is checked, ...
Joseph's user avatar
  • 363
6 votes
1 answer
152 views

CSS Good Practice on a JavaScript Plugin

I've realized a jQuery Plugin recently and made a basic default CSS for it. As I'm mainly a server-side guy, I'm not too familiar with CSS and would like to have insight about what could be improved. ...
Hugo Dozois's user avatar
6 votes
1 answer
304 views

jQuery plugIn to manage forms

I have just created my first jQuery plugin. I am looking to suggestions on how to improve it, leading to a code optimization. ...
Waqas Ali Khan Puar's user avatar
6 votes
1 answer
278 views

Deadlock watchdog in a server to defend against poorly written extensions

In the Red5 server we have no control over what implementers do with their applications. As such, we have attempted to implement code that would prevent them from causing bad things to happen. This ...
Paul Gregoire's user avatar
6 votes
1 answer
675 views

jQuery plugin that helps create a responsive Menu

I've just launched my first project on GitHub. It's a jQuery plugin that helps create a responsive menu. It deals with interactivity (essentially using toggle and some classes), and leaves all the ...
Diego de Oliveira's user avatar
6 votes
1 answer
1k views

jQuery Plugin - Sliding Tile Puzzle

I created a basic jQuery plugin to make a basic sliding tile puzzle. ...
Matthew Fedak's user avatar
5 votes
2 answers
312 views

Responsive text by JavaScript

I'm working on a JavaScript plugin that makes font-sizes flexible (for a responsive layout). The code works well so far, but I'm sure that it's capable of improvement (especially if you look at the ...
Maximilian Fuchs's user avatar
5 votes
3 answers
893 views

Monitoring params via JMX

A task for hiring on a new job (I failed it with reason "very bad code"). Write a program, which will be monitoring the params via JMX. Param should have name, type and observabale value. Why my ...
Dmitry1405's user avatar
5 votes
2 answers
161 views

My first jQuery plugin - blurStuff()

I've played with jQuery for some time now but have never written my own plugin. A question was asked: "can I blur an image using jQuery?" and I thought this to be a decent candidate to play with. ...
gvee's user avatar
  • 151
5 votes
1 answer
264 views

Sublime Text plugin to modify text before it's pasted

It's my first plugin and it's super simple but there could easily be some things worth knowing from this e.g. Python coding practices and potential bugs. ...
Matt's user avatar
  • 2,568
5 votes
1 answer
1k views

jQuery Datepicker Plugin

I created a jQuery plugin that converts a text field to a 3 drop down, datepicker. It allows the user to select a Day, Month and Year rather than type the date in an input box. The original input ...
LearningDeveloper's user avatar
5 votes
1 answer
150 views

Python toolbox for OpenStreetMap data

Background My project is a Python toolbox. This is my first bigger coding project and it took me quite some time to code this toolbox. I learned a lot from the start point to this day. I changed this ...
JuniorPythonNewbie's user avatar
5 votes
1 answer
2k views

Plugin Pattern for Generic Python Application

Summary I am experimenting with a plugin pattern for a generic Python application (not necessarily web, desktop, or console) which would allow packages dropped into a plugin folder to be used ...
Palu Macil's user avatar
5 votes
1 answer
312 views

Communicating between plugins whilst maintaining context in Javascript

I'm making some changes to a JavaScript plugin on a site I've been made steward over. This main plugin has it's own sub-plugins and I'm trying to make certain aspects modular. Currently, I'm ...
tr3online's user avatar
  • 153
5 votes
1 answer
98 views

Plugin for pulling Tweets

I've been working on a jQuery plugin for pulling tweets since the v1 endpoints were all closed off and you need oAuth now. This is just the jQuery part but if you want to see the php behind it I'll be ...
Shan Robertson's user avatar
5 votes
2 answers
3k views

jQuery plugin to create sticky headers

I've written a plugin that takes a generic approach to creating sticky headers and would like to have the code reviewed. Is this acceptable JavaScript? Demo Page It's my first plugin however and I'...
Robert Fall's user avatar
5 votes
1 answer
122 views

Tooltip plugin for portfolio website

I am writing my own tooltip plugin for my portfolio website that I am currently working on. It works rather well, however, I feel that there is a lot I could improve. This is one of my bigger jQuery ...
Ryan Printup's user avatar
4 votes
2 answers
160 views

Showing a list of plugins to filter

How can I refactor this function? I show a list of plugins in JSF, and I should filter them. I added function filterPlugins but I have some questions: Should we ...
Dmitry1405's user avatar
4 votes
2 answers
2k views

jQuery 'flip' plugin

A little while ago I wrote some jQuery code to make a div flip (similar to the Apple Dashboard). I know there is already code that has this idea from Jon Raasch, but this code positioned divs ...
Joshua M's user avatar
  • 135
4 votes
2 answers
107 views

Jekyll plugin which bundles files into a zip archive

I am not a Ruby developer but cold-reading existing Jekyll plugins I implemented one to bundle files in a zip archive and open sourced it on GitHub. What do I need to fix to make it look more Ruby-...
PhilLab's user avatar
  • 193
4 votes
1 answer
98 views

Bash plugin to setup project for books

I'm writing a bash plugin to help people create books in a specific way. It's an ordinary shell script to setup the project and create its subresources. I'm using a loop to create barebones assets and ...
marvindanig's user avatar
4 votes
1 answer
448 views

jQuery carousel plugin

I have recently written my first jQuery plugin. It is a responsive jQuery carousel plugin. It seems to be functioning well apart from on window re-size. Sometimes if the window is re-sized too fast I ...
tommyf's user avatar
  • 173
4 votes
2 answers
219 views

basic jQuery plugin template

I would like to know if I'm writing a plugin for jquery correctly. I followed the official guide and also added some tweaks that I've found from various sources over time. While this works perfectly, ...
Matías Cánepa's user avatar
4 votes
1 answer
112 views

Reduce list manipulation for QGIS layer tree

I am developing a plugin for the GIS software, QGIS. The code below reads the number of layers in various groups (as shown in the image) and adds them to a QTableWidget: For each group, I want to ...
Joseph's user avatar
  • 363
4 votes
1 answer
72 views

Plugin for communication protocols in browser(s)

I would like to get some feedback from the community regarding a plugin I recently moved from requiring jQuery to a stand alone JS implementation. It is meant to handle browser communication protocols ...
jas-'s user avatar
  • 262
4 votes
1 answer
105 views

Replace radio/checkbox plugin

I've just created my first plugin, but I think I've written too much bloated code. Could you point me to the right direction? ...
John McGuinnes's user avatar
4 votes
1 answer
899 views

jQuery plugin to ajaxify forms

This is my first foray into the wild world of jQuery plugin development. The plugin "ajaxifies" forms, which isn't particularly spectacular: It gets the basics (action, method) from the form itself, ...
yannis's user avatar
  • 2,043
4 votes
1 answer
107 views

Internet Relay Chat bot core with plugins system

I started learning Python by making an IRC bot, as it took some pains in another language. I've improved it now over time. As it involves networking, I'd also like some comments on that side. ...
Abdur-Rahmaan Janhangeer's user avatar
4 votes
1 answer
756 views

Integrating the Ace embeddable code editor for editing HTML, CSS, and JavaScript

I am currently implementing the Ace-editor embeddable code editor. In to my application. I use a div with a certain class(example: editor_js) to render the editor the div also gets a data attribute (...
Izzy's user avatar
  • 77
4 votes
1 answer
250 views

Improving jQuery scrolldown animations

I'm pretty new to client side scripting and I'm still learning. I've written this JS plugin which animates blocks of HTML (fade-in from left/top/right/bottom) as you scroll down the page. Everything ...
user74109's user avatar
4 votes
1 answer
307 views

Converting <li> tags to horizontal responsive barcharts

I am writing my first jQuery plugin that converts li tags to horizontal responsive barcharts. I am looking for some feedback and suggestions regarding the ...
chuckfinley's user avatar