Skip to content

Instantly share code, notes, and snippets.

View CyberStrike's full-sized avatar
🎯
Building Products

Chris Scott CyberStrike

🎯
Building Products
View GitHub Profile
@CyberStrike
CyberStrike / mobile.coffee
Last active January 2, 2016 02:49 — forked from sdthornton/Detect Mobile Browser - CoffeeScript
Detect Mobile Browser - CoffeeScript
@mobileWeb = /Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/i.test(navigator.userAgent)
// Usage: if @mobileWeb then ...
@CyberStrike
CyberStrike / .gemrc
Last active August 29, 2015 14:08 — forked from jch/.gemrc
# http://docs.rubygems.org/read/chapter/11
---
gem: --no-ri --no-rdoc
benchmark: false
verbose: true
update_sources: true
sources:
- http://gems.rubyforge.org/
- http://rubygems.org/
backtrace: true
@CyberStrike
CyberStrike / bootstrap-pagination.php
Last active May 17, 2017 03:26 — forked from ediamin/bootstrap-pagination.php
Bootstrap Pagination for WordPress
<?php
/*
* custom pagination with bootstrap .pagination class
* source: http://www.ordinarycoder.com/paginate_links-class-ul-li-bootstrap/
*/
function bootstrap_pagination( $custom_query = null, $echo = true ) {
global $wp_query;
$pagination = '';