Skip to content

Instantly share code, notes, and snippets.

Ryan Neudorf ohryan

Block or report user

Report or block ohryan

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

Keybase proof

I hereby claim:

  • I am ohryan on github.
  • I am ohryan ( on keybase.
  • I have a public key whose fingerprint is FB18 F81B BA90 F26B 40FB E558 4B65 E1EE DFE2 02D9

To claim this, I am signing this object:

ohryan / bower.json
Created Aug 6, 2016
All Bootstrap includes
View bower.json
"overrides": {
"bootstrap-sass": {
"main": [
ohryan / AppDelegate.swift
Last active Jan 16, 2016
TVML TvOS AppDelegate for use with TeeVee for WP, WordPress plugin.
View AppDelegate.swift
import UIKit
import TVMLKit
class AppDelegate: UIResponder, UIApplicationDelegate, TVApplicationControllerDelegate {
var window: UIWindow?
var appController: TVApplicationController?
ohryan / photonify.php
Last active Aug 29, 2015
Use Jetpack Photon with arbitrary URLs
View photonify.php
This function allows you to use the Jetpack plugin's Photon CDN for arbitrary images in your theme.
Add this function to your functions.php, then call it by passing an image url.
ex. <img src="<?= photonify(get_template_directory_uri() . /images/logo.png) ?>" alt="company logo">
function photonify( $src ) {
if ( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'photon' ) ) {
ohryan / responsive-align.less
Last active Apr 30, 2019
Bootstrap 3 Responsive Text Align
View responsive-align.less
.text-xs-left { text-align: left; }
.text-xs-right { text-align: right; }
.text-xs-center { text-align: center; }
.text-xs-justify { text-align: justify; }
@media (min-width: @screen-sm-min) {
.text-sm-left { text-align: left; }
.text-sm-right { text-align: right; }
.text-sm-center { text-align: center; }
.text-sm-justify { text-align: justify; }
View jquery.supports.DOMElement.js
jQuery.extend(, {
DOMElement: function(element, attribute) {
var test = document.createElement(element); // turns out native function is fastest (
if (test) {
if ( attribute != null )
return (attribute in test)
return true
ohryan / jquery.wp.category_collapse.js
Created Sep 14, 2011
Collapses Wordpress Categories.
View jquery.wp.category_collapse.js
* jQuery Wordpress Category Collapse
* Automatically collapses categories in your sidebar
$(function() {
var thing = $('#subnmenu .page_item').find('ul.children');
var i = 0;
You can’t perform that action at this time.