Skip to content

Instantly share code, notes, and snippets.

View rickkln's full-sized avatar
💻
Coding.

Rick Kleinhans rickkln

💻
Coding.
View GitHub Profile
@rickkln
rickkln / macfix1-install-nokogiri.rb
Created December 12, 2015 11:35 — forked from SteveBenner/macfix1-install-nokogiri.rb
Mac fix - Install Nokogiri gem on OS X 10.9 Mavericks
#!/usr/bin/env ruby
#
# Mac fix 1 - Install the Nokogiri gem on Mac OS 10.9 Mavericks
#
# Usage: to configure and install using Bundler, pass in 'bundle' as an argument to the script.
#
# Nokogiri works at a very low level, so it has many issues on various platforms.
# As a result, the command `install gem nokogiri` often will fail. This fix is for
# errors involving 'libiconv', such as the following one I encountered:
#
app.get('/', function(req, res){
var ua = req.header('user-agent');
if(/mobile/i.test(ua)) {
res.render('mobile.html');
} else {
res.render('desktop.html');
}
});
@rickkln
rickkln / index.html
Created December 2, 2012 10:22 — forked from anonymous/index.html
Example navigation lungo
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Lungo 2 - HTML5 Cross-Device Framework</title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="HandheldFriendly" content="True">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes">