Skip to content

Instantly share code, notes, and snippets.

View chrisciampoli's full-sized avatar

Christopher Ciampoli chrisciampoli

View GitHub Profile
@chrisciampoli
chrisciampoli / gist:29ace906deb80f05763e
Created October 8, 2014 21:12
jQuery.Ajax Scaffold
$.ajax({
url: url,
type: type,
dataType: dataType,
data: data,
beforeSend: function(data) {
beforeSend(data);
},
success: function(data) {
success(data);
@chrisciampoli
chrisciampoli / list.js
Last active March 13, 2024 11:11
Javascript List ADT (Abstract Data Type)
function List() {
this.listSize = 0;
this.pos = 0;
this.dataStore = []; // initializes an empty array to store list elements
this.clear = clear;
this.find = find;
this.toString = toString;
this.insert = insert;
this.append = append;
this.remove = remove;
@chrisciampoli
chrisciampoli / highlightit.js
Last active December 3, 2020 21:05
My plugin version
/*!
* URL Highlighter by Christopher Ciampoli (2014)
*
!
*/
(function($) {
$.fn.highlightit = function() {
$this = this;
var debug = false;