Skip to content

Instantly share code, notes, and snippets.

@maurisrx
maurisrx / bitbucket-to-github.rb
Last active May 26, 2024 05:49 — forked from rbellamy/bitbucket-to-github.rb
Bulk import Bitbucket repos to Github
#!/usr/bin/env ruby
require 'fileutils'
# Originally -- Dave Deriso -- deriso@gmail.com
# Contributor -- G. Richard Bellamy -- rbellamy@terradatum.com
# Contributor -- Yudhistira Mauris -- mauris@rootlogic.net
#
# @since 0.3 Change REST API endpoint for adding repo to a team.
#
# If you contribute, put your name here!
/**
* Set event listener on dynamic elements
*
* {@link https://www.yudhistiramauris.com/how-to-add-javascript-event-listener-on-dynamic-elements/}
*
* @param {string} type Event name
* @param {string} selector CSS/JS selector
* @param {Function} callback Function to execute upon event trigger
*/
function setDynamicListener( type, selector, callback ) {