Skip to content

Instantly share code, notes, and snippets.

View sarahg's full-sized avatar
🏂

Sarah German sarahg

🏂
View GitHub Profile
<!-- BLOCK 1 -->
<div class="sidebar-feature-box">
<img src="/sites/default/themes/learning_curve/images/sidebar-img-1.jpg" alt="">
<h2>Old tech, new issues</h2>
<p>What have you done with your classroom tech? Submit your answers with #lcsubmissions</p>
<a class="lc-link" href="#">View &raquo;</a>
</div>
<!-- BLOCK 2 -->
<div class="sidebar-feature-box">
@sarahg
sarahg / gist:bc65984c03bd36bb5566
Last active August 29, 2015 14:02
Marketplace Weekend launch
- drush pm-disable custom_features_panels_latest_comments
- drush pm-disable custom_features_views_latest_comments
- drush pm-disable calendar
- drush pm-uninstall custom_features_episode_archive_views
- drush pm-uninstall calendar
- update code
- drush pm-enable marketplace_episode_calendar
- drush pm-enable weekend
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon" href="//a.disquscdn.com/images/disqus-v3.ico" type="image/vnd.microsoft.icon">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="keywords" content="Disqus, disqus.com, comments, blog, blogs, discussion">
<meta name="description" content="Disqus is a global comment system that improves discussion on websites and connects conversations across the web.">
<link rel="stylesheet" href="//a.disquscdn.com/styles/v3/global.css" type="text/css">
<title>DISQUS | Maintenance (503)</title>
</head>
@sarahg
sarahg / Drupal Best Practices for Government
Last active August 29, 2015 14:04
Notes from DrupalCamp Wisconsin | July 25, 2014
DrupalCamp WI - Drupal Best Practices for Government - Sheldon Rampton (@sheldonrampton / https://www.drupal.org/user/13085)
============================================================================================================================
Challenges that governments face
---------------------------------
- Multiple stakeholders
- High level of public scrutiny
- Bureaucratic, legal and policy requirements might not be compatible with efficient web dev
@sarahg
sarahg / DKAN: An open data distro for Drupal
Created July 25, 2014 19:40
Notes from DrupalCamp Wisconsin | July 25, 2014
DrupalCamp WI - DKAN: An open data distro for Drupal - Janette Day (https://github.com/janette / https://www.drupal.org/user/443462)
====================================================================================================================================
What is DKAN?
-------------
DKAN is a Drupal-based open data platform with a full suite of cataloging, publishing and visualization features that allows governments, nonprofits and universities to easily publish data to the public.
Why is open data important?
---------------------------
- Transparency
@sarahg
sarahg / Building a Drupal 8 Theme
Created July 25, 2014 21:05
Notes from DrupalCamp Wisconsin | July 25, 2014
DrupalCamp WI - Building a Drupal 8 Theme - Marc Drummond (@MarcDrummond / https://www.drupal.org/u/mdrummond)
==============================================================================================================
- Marc’s book - Drupal 8 Responsive Web Design (Packt Publishing)
Settings and Schema Files
-------------------------
- YML: A text format used for config files
- THEME.info.yml: Key/value pairs with theme info and settings. Like a D7 .info file.
- theme-settings.php: PHP arrays of theme settings.
@sarahg
sarahg / An introduction to Panopoly and Drupal distributions
Last active August 29, 2015 14:04
Notes from DrupalCamp Wisconsin | July 25, 2014
DrupalCamp WI - What you want, out-of-the-box: an introduction to Panopoly and Drupal distributions - David Snopek (@dsnopek / https://www.drupal.org/u/dsnopek)
==============================================================================================================================
- Drupal distributions allow you to get closer to your end goal out-of-the-box
- Distributions are Drupal, prepackaged with contrib modules/themes, pre-configured for a specific use
Popular open source distributions
---------------------------------
-- Commerce Kickstart
-- Open Public (government websites)
@sarahg
sarahg / gist:b48169e972252b822269
Created November 13, 2014 20:43
SVN: Delete missing files.
svn st | grep ^! | awk '{print " --force "$2}' | xargs svn rm
@sarahg
sarahg / Drupal debug
Created March 3, 2015 17:26
Drupal - log exception backtrace to temporary://drupal_debug.txt
$e = new Exception;
drupal_debug($e->getTraceAsString());