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
View keybase.md

Keybase proof

I hereby claim:

  • I am ohryan on github.
  • I am ohryan (https://keybase.io/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
ohryan / bower.json
Created Aug 6, 2016
All Bootstrap includes
View bower.json
"overrides": {
"bootstrap-sass": {
"main": [
"./assets/stylesheets/bootstrap/_variables.scss",
"./assets/stylesheets/bootstrap/_mixins.scss",
"./assets/stylesheets/bootstrap/_normalize.scss",
"./assets/stylesheets/bootstrap/_print.scss",
"./assets/stylesheets/bootstrap/_glyphicons.scss",
"./assets/stylesheets/bootstrap/_scaffolding.scss",
"./assets/stylesheets/bootstrap/_type.scss",
@ohryan
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
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate, TVApplicationControllerDelegate {
var window: UIWindow?
var appController: TVApplicationController?
@ohryan
ohryan / photonify.php
Last active Aug 29, 2015
Use Jetpack Photon with arbitrary URLs
View photonify.php
<?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
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(jQuery.support, {
DOMElement: function(element, attribute) {
var test = document.createElement(element); // turns out native function is fastest (http://stackoverflow.com/questions/268490/jquery-document-createelement-equivalent)
if (test) {
if ( attribute != null )
return (attribute in test)
else
return true
}
@ohryan
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;
thing.each(
You can’t perform that action at this time.