Skip to content

Instantly share code, notes, and snippets.

View jamesbishopca's full-sized avatar

James Bishop jamesbishopca

View GitHub Profile
@jamesbishopca
jamesbishopca / code_toggle.py
Last active July 22, 2016 05:05
Code toggle button for IPython notebook
'''Creates a button to toggle code inputs on and off.'''
from IPython.core.display import display_html
di.display_html('''
<script>
'use strict';
function code_toggle() {
let code = $('div.input');
code.css('display') == 'none' ? code.show() : code.hide();
}

Keybase proof

I hereby claim:

  • I am jamesbishopca on github.
  • I am jamesbishop (https://keybase.io/jamesbishop) on keybase.
  • I have a public key whose fingerprint is B683 1276 D04A 874F 5BDC 54B5 68F3 38C7 68E2 4AF8

To claim this, I am signing this object:

@jamesbishopca
jamesbishopca / functions.php
Created September 20, 2017 19:44 — forked from woogist/functions.php
The code below adds Sensei support to your Divi Theme. To use it simply copy it to your Divi functions.php file.
/**
* Declare Sensei support
*
* This is needed to hide the Sensei theme compatibility notice your admin dashboard.
*/
add_action( 'after_setup_theme', 'divi_sensei_support' );
function divi_sensei_support() {
add_theme_support( 'sensei' );
}
@jamesbishopca
jamesbishopca / make-wp.sh
Last active November 17, 2020 17:47
WordPress Bash Script
#!/bin/bash
NAME="new_wordpress"
WD=`pwd`
PLUGINS='w3-total-cache wordfence wordpress-seo wp-smushit updraftplus'
while getopts "n:d:u:ph:" options; do
case "${options}" in
n)