Skip to content

Instantly share code, notes, and snippets.

Avatar
🗽

Jared Novack jarednova

🗽
View GitHub Profile
View test.css
body {
color: purple;
background-color: gray;
}
View homicide.md

Character List

Real Life H:LOTS Character Actor
Lt. Gary D'Addario Al Giardello Yaphet Kotto
Det. Sgt. Terrence McLarney Steve Crosetti Jon Polito
Det. Donald Worden Stan Bolander Ned Beaty
Det. Rick James
Det. Ed Brown
Det. Donald Waltermeyer Meldrick Lewis Clark Johnson
View class-wpml-wp-api.php
/**
* @param Twig_LoaderInterface $loader
* @param array $environment_args
*
* @return Twig_Environment
*/
public function get_twig_environment( $loader, $environment_args ) {
return new \Twig\Environment( $loader, $environment_args );
}
View quick-kosher.md

Is Kosher

Easy

  • Is it vegetarian? It's kosher! All done!

Fish

  • Regular fish (tuna, salmon, cod, etc.)

Chicken & Beef

  • If it's "kosher" meat (from a Kosher butcher or some grocery stores have a kosher meat section) AND
@jarednova
jarednova / base.twig
Last active Aug 13, 2019
Timber Hello World
View base.twig
{# This is a Twig comment, it won't output to the browser #}
<html>
<head>
<title>{{ wp_title }}</title>
</head>
{% block content %}
<!-- This will be overwritten by the content block in the inheriting .twig file -->
{% endblock %}
</html>
View files.md

Timber Repo

~/VVV/www/timber

Test Site #1

~/VVV/www/wordpress-client-1/public_html/wp-content/plugins/timber-library
View timber-archives.md

Notice: Undefined offset: 0 in /Users/jared/Sites/timber-docs/generator/PHPDocsMD/Reflector.php on line 407

Notice: Undefined offset: 0 in /Users/jared/Sites/timber-docs/generator/PHPDocsMD/Reflector.php on line 407

Notice: Undefined offset: 0 in /Users/jared/Sites/timber-docs/generator/PHPDocsMD/Reflector.php on line 407

Notice: Undefined offset: 0 in /Users/jared/Sites/timber-docs/generator/PHPDocsMD/Reflector.php on line 407

Notice: Undefined offset: 0 in /Users/jared/Sites/timber-docs/generator/PHPDocsMD/Reflector.php on line 407

View ClientEvent.php
<?php
class ClientEvent extends ClientPost {
protected $_venue;
protected $_hosts;
protected $_master_id;
protected $_is_alt_event; // whether or not this instance is an alt date/time of another event
protected $_is_alt_event_or_master; // whether or not this instance is an alt event or a master with alts
View podcast
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<title>The Ezra Klein Show</title>
<link>http://www.vox.com/</link>
<language>en</language>
<copyright/>
<description>
Ezra Klein gives you a chance to get inside the heads of the newsmakers and power players in politics and media. These are extended conversations with policymakers, writers, technologists, and business leaders about what they believe in and why. Look elsewhere for posturing confrontation and quick reactions to the day's news. Subscribe for the anti-soundbite.
</description>
View JamesPost.php
<?php
class JamesPost extends TimberPost {
public function link() {
$link = parent::link();
$link = whatever_link_magic_you_need_to_do();
return $link;
}