Skip to content

Instantly share code, notes, and snippets.

View germanny's full-sized avatar

Jen G germanny

View GitHub Profile

Here is my running list of questions for our meeting this afternoon:

  • Page navigation: still want all the h2's in it?

  • Body text becoming a different size across the site is beyond the scope of this project. Font size can be increased for this template, and we can go back at a later time and increase the size for the rest of the site at a later time.

  • What to do if there is no widget?

  • What is a Rankings Score? Unique to this item or to school in general? What are some examples of Rankings Scores? What if a school makes the list but has a poor Rankings score? Will they still link to us?

  • How is the Cost rating going to be entered?

  • Are Cost, Average Loans Received, and Location the items needed for all the lists? If not, what other items are possibilties? Not sure how flexible this can be.

@germanny
germanny / article-schema.php
Last active April 27, 2016 18:47
Schema data for articles
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> itemscope itemtype="http://schema.org/Article" itemref="_publisher_item">
<header>
<h1 class="entry-title page-title" itemprop="headline"><?php the_title(); ?></h1>
</header>
<div itemprop="articleBody" class="entry-content">
<?php the_content(); ?>
</div>
<?php $article_image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'large' ); ?>
@germanny
germanny / my_monokai_extended_bright.tmTheme
Created January 19, 2016 17:35
My version of Monokai Extended Bright for ST2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>author</key>
<string>@tapionlinna</string>
<key>colorSpaceName</key>
<string>sRGB</string>
<key>name</key>
<string>Monokai Extended Bright</string>
@germanny
germanny / InstallingRubytheCorrectWay.md
Last active October 8, 2016 11:28
Installing Ruby the Correct Way

Installing Ruby the Correct Way

1300 words from Mar 27, 2013

Original article from Chris Bednarski at https://cbednarski.com/articles/installing-ruby/

Ruby is an extremely flexible, concise language which boasts a rampant proliferation of libraries and popular frameworks like rails. However, using your system's default ruby to install gems is a quick path into dependency nightmares, as different gems fight to use different versions of the same library.

I'll walk you through how to avoid this using rbenv, ruby-build, and bundler. At the conclusion, you'll have a better understanding of where ruby lives on your system and you'll also have a stable, flexible ruby installation that can grow with new development while simultaneously providing a bulletproof runtime environment for existing applications and tools.

@germanny
germanny / _instructions2.md
Last active February 3, 2022 15:25 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
@germanny
germanny / Preferences.sublime-settings
Created December 26, 2015 20:41 — forked from jimmynotjim/Preferences.sublime-settings
Current ST2 User Settings
{
"bold_folder_labels": true,
"close_windows_when_empty": true,
"color_scheme": "Packages/User/SublimeLinter/Phix Dark (SL).tmTheme",
"detect_indentation": true,
"file_exclude_patterns":
[
".DS_Store",
"dump.rdb"
],
@germanny
germanny / 0_reuse_code.js
Created August 6, 2014 18:54
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@germanny
germanny / checkboxes.md
Created April 2, 2014 14:47
Markdown checkboxes
  • checkbox is done with the two brackets next to the P key
  • checkbox is done with the two brackets next to the P key
  • checkbox is done with the two brackets next to the P key
  • checkbox is done with the two brackets next to the P key
@germanny
germanny / _multiple_local_environments_single_vm.md
Last active December 26, 2015 18:16
Using Vagrant to run local environments from a single VM
@germanny
germanny / fn-display-thumbnail.php
Last active August 29, 2015 13:57
[WIP] Display the post thumbnail, if it exists
<?php
function display_post_thumbnail_src( $id = 0 ) { //get the src of image
$post = get_post( $id );
$post_id = isset( $post->ID ) ? $post->ID : 0;
$atturl = '';
$featured_image = '';
$images = '';
$size = 'thumbnail';