Skip to content

Instantly share code, notes, and snippets.

View jakerb's full-sized avatar
🏠
Working from home

Jake Bown jakerb

🏠
Working from home
View GitHub Profile
@jakerb
jakerb / script.js
Created March 15, 2024 16:51
Focus on form field
(($) => {
let waitTime = 5; //seconds
let inputElement = '#input_231_1';
let scrollToElement = true;
setTimeout(() => {
if(scrollToElement) {
$(document).scrollTop($(inputElement).offset().top);
}
@jakerb
jakerb / steps.md
Created November 20, 2023 23:22
TensorFlowTTS - A Success Story

Steps I took to get TensorFlow setup on Windows with GPU, docker and other stuff.

  1. Install docker image using this docker file.

Dockerfile

FROM tensorflow/tensorflow:2.6.0-gpu
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub
RUN apt-get update
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html contenteditable="false"><head>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title></title>
<style type="text/css" rel="stylesheet" media="all">
/* Base ------------------------------ */
body {
width: 100% !important;
height: 100%;
<?php
/*
* Use the following Shortcode in your Certificate.
*
* [get_custom_field key="learndash_certificate_options" filter="get_course_title"]
*
*/
// Add filter to get the Course Title
<?php
add_filter( 'wpseo_breadcrumb_links', 'yoast_seo_breadcrumb_append_link' );
function yoast_seo_breadcrumb_append_link( $links ) {
global $post;
if (get_post_type($post->ID) == 'custom-post-type') {
$links = array(
array('url' => site_url('/'), 'text' => 'Home'),
function myFunction() {
var folder_id = "<enter folder ID>";
var ss=SpreadsheetApp.getActiveSpreadsheet();
var s=ss.getActiveSheet();
var c=s.getActiveCell();
var fldr=DriveApp.getFolderById(folder_id);
var files=fldr.getFiles();
var names=[],f,str;
while (files.hasNext()) {
f=files.next();
@jakerb
jakerb / index.html
Created February 1, 2021 15:43
Block Stacker Game Code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Block Stacker</title>
<style>
/*
* All styling for the Block Stacker game
* lives here, inline within the head of the page.
@jakerb
jakerb / movies.json
Created January 22, 2021 12:09
Code Test Dataset
This file has been truncated, but you can view the full file.
[
{
"year": 2013,
"title": "Rush",
"info": {
"directors": ["Ron Howard"],
"release_date": "2013-09-02T00:00:00Z",
"rating": 8.3,
"genres": [
return location.href = 'https://apositivestart.org.uk';
@jakerb
jakerb / index.html
Created December 15, 2020 09:54
Iframe
<iframe width="800" height="600" src="[url here]" style="border:0"></iframe>