Skip to content

Instantly share code, notes, and snippets.

View jbickar's full-sized avatar

John Bickar jbickar

  • Stanford University
View GitHub Profile
@jbickar
jbickar / gist:3757854
Created September 20, 2012 19:28 — forked from lornajane/gist:3756788
My First Form
<form method="post">
Name: <input type="text" name="name" />
<br />
<input type="submit" />
</form>
<?
if($_POST) {
echo "Hello, " . filter_input(INPUT_POST, "name", FILTER_SANITIZE_STRING);
@jbickar
jbickar / su-clone.sh
Last active August 29, 2015 14:16 — forked from sherakama/su-clone.sh
#!/bin/bash
## If dir exists empty it.
if [ -d /Applications/MAMP/htdocs/$1 ]; then
cd /Applications/MAMP/htdocs/$1
drush sql-drop -y
cd ../
rm -Rf /Applications/MAMP/htdocs/$1
fi
@jbickar
jbickar / DevStandards.MD
Last active November 12, 2015 23:03 — forked from sherakama/DevStandards.MD
Stanford Web Services Drupal Development Standards

Drupal Development Standards

by Stanford Web Services
Version: 1.0.0
Date: October 30, 2015

This document is meant to be a comprehensive guide to web development standards for Stanford Web Services around Drupal web development. This document is our canonical source and guide.

Code Standards

@jbickar
jbickar / su-clone-lando.sh
Last active September 11, 2018 19:49 — forked from sherakama/sites-lando-clone.sh
su-clone-lando.sh
#!/bin/bash
##################
# Variables
##################
# Path to a place to store your sites.
WEBSERVERROOT=/Users/jbickar/Sites #no trailing slash
# Path to your lando configuration file for Drupal 7
LANDOCONFIG=/Users/jbickar/Sites/d7.lando.yml