Skip to content

Instantly share code, notes, and snippets.

Tom Woodward woodwardtw

Block or report user

Report or block woodwardtw

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View innovativewellness.css
h1.site-title {
font-size: 50px;
}
.fl-callout-has-photo {
height: 440px;
}
.fl-module-content, .fl-row-content-wrap {
margin-left: 0;
View accessibility_fixes_studentexp2.html
<style>
.navbar-default .navbar-nav > li:hover > a, .navbar-nav > li:hover > .caret, .navbar-default .navbar-nav.sparkling-mobile-menu > li.open > a, .navbar-default .navbar-nav.sparkling-mobile-menu > li.open > .caret, .navbar-default .navbar-nav > li:hover, .navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > .caret, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus, .navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus, .navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus {
color: black;
text-decoration: none;
}
.copyright {
color: #000;
}
View youtube_video_stats_scraper.js
function getVideos (){
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheetByName('videos');
var last = sheet.getLastRow();
var videos = sheet.getRange("A1:A"+last).getValues();
for (var i = 0; i < videos.length; i++){
var vidId = getVideoId(videos[i][0]);
getYTdata(vidId);
}
View sw_field_sheets.js
function setCleanEmail() {
//getting
var ss = SpreadsheetApp.getActiveSpreadsheet(); //gets the spreadsheet you attached the script to
var sheet = ss.getSheetByName('Form Responses 1');
var lastRow = sheet.getLastRow();
var fullEmail = sheet.getRange('C'+lastRow).getValue();
//chopping
var atSymbol = fullEmail.search("@");
var cleanEmail = fullEmail.substr(0,atSymbol)
@woodwardtw
woodwardtw / idea_migration.js
Created Mar 15, 2019
google script making document from form submission
View idea_migration.js
function testGet(){
var file = DriveApp.getFileById('1UT-vK-QFeeLdV48j6br4NMDEwPhL4QTANUTAxXE43h8');
Logger.log(file);
}
function makeDoc(e) {
//e.values is an array of form values
var timestamp = e.values[0];
var ideaTitle = e.values[1];
var ideaDescription = e.values[2];
View nscloner_gform_addition.php
add_action( 'gform_after_submission_5', 'gform_site_cloner', 10, 2 );//specific to the gravity form id
function gform_site_cloner($entry, $form){
$_POST = [
'action' => 'process',
'clone_mode' => 'core',
'source_id' => rgar( $entry, '3' ), //specific to the form entry fields and should resolve to the ID site to copy
'target_name' => rgar( $entry, '2' ), //specific to the form entry fields - need to parallel site url restrictions
'target_title' => rgar( $entry, '2' ), //specific to the form entry fields
View multisite_super_admin.php
add_filter('map_meta_cap', 'less_super_admins', 10, 4);
function less_super_admins($caps, $cap, $user_id, $args){
$super = array(
'update_core',
'update_plugins',
'update_themes',
'upgrade_network',
'install_plugins',
'install_themes',
View author.php
<?php
/**
* The author template file.
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
@woodwardtw
woodwardtw / user-profile.php
Created Jan 20, 2019
author profile page template
View user-profile.php
<?php
/*
Template Name: User Profile
*/
get_header(); ?>
<div class="container">
<div class="row">
View soc_eng.css
/*
You can add your own CSS here.
Click the help icon above to learn more.
*/
.entry-content img {
margin: 0 auto;
width: 100%;
}
You can’t perform that action at this time.