Skip to content

Instantly share code, notes, and snippets.

View Llewellynvdm's full-sized avatar
🏗️
Working on Joomla Component Builder

<<eWɘ>>yn Llewellynvdm

🏗️
Working on Joomla Component Builder
View GitHub Profile
@Llewellynvdm
Llewellynvdm / curl.md
Created June 15, 2017 17:34 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@Llewellynvdm
Llewellynvdm / getBiblejQueryScript
Last active July 22, 2023 11:15
Here is a jQuery script to make an API call from your own application
jQuery.ajax({
url:'https://archived.getbible.net/json',
dataType: 'jsonp',
data: 'p=John1&v=kjv',
jsonp: 'getbible',
success:function(json){
// set text direction
if (json.direction == 'RTL'){
var direction = 'rtl';
} else {
@Llewellynvdm
Llewellynvdm / gist:e1e03371b07524fce72d
Last active March 8, 2016 09:30
Moving data from JMS Music to Sermon Distributor
class Moving extends JModelList
{
public function getData()
{
// start up the DB
$db = JFactory::getDBO();
// move the preachers
$this->movePreachers($db);
// move Series
$this->moveSeries($db);