This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)locationManager:(CLLocationManager*)manager | |
didUpdateHeading:(CLHeading*)newHeading { | |
// If the accuracy is valid, process the event. | |
if (newHeading.headingAccuracy > 0) { | |
/** | |
* The orientation affects the compass. We need to actually | |
* base the orientation off of the top of the iPhone. Think | |
* of the direction the phone is facing when you hold it right |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ApplicationController < ActionController::Base | |
before_filter unless: :devise_controller? do | |
resource = controller_name.singularize.to_sym | |
method = "#{resource}_params" | |
params[resource] &&= send(method) if respond_to?(method, true) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/utility:237:19: No member named 'move' in namespace 'std::__1' | |
/Users/jim/Documents/Xcode/ReadiumTestApp/readium-sdk/Platform/Apple/RDServices/Main/RDNavigationElement.mm:31:9: In file included from /Users/jim/Documents/Xcode/ReadiumTestApp/readium-sdk/Platform/Apple/RDServices/Main/RDNavigationElement.mm:31: | |
/Users/jim/Documents/Xcode/ReadiumTestApp/readium-sdk/Platform/Apple/include/ePub3/nav_element.h:24:10: In file included from /Users/jim/Documents/Xcode/ReadiumTestApp/readium-sdk/Platform/Apple/include/ePub3/nav_element.h:24: | |
/Users/jim/Documents/Xcode/ReadiumTestApp/readium-sdk/Platform/Apple/include/ePub3/epub3.h:25:10: In file included from /Users/jim/Documents/Xcode/ReadiumTestApp/readium-sdk/Platform/Apple/include/ePub3/epub3.h:25: | |
/Users/jim/Documents/Xcode/ReadiumTestApp/readium-sdk/Platform/Apple/include/ePub3/utilities/basic.h:31:10: In file included from /Users/jim/Documents/Xcode/ReadiumTestApp/r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* KEEP OUR CSS CLEAN | |
Some guidelines to follow: | |
1. Break code down into sections. i.e. =BRANDING, =BODY, = WIDGETX, =WIDGETY, etc. | |
2. Keep your rules alphabetically sorted. | |
3. Only put one selector per line for a block of rules that apply to multiple selectors. | |
4. Indent your rules, only one rule per line. | |
example: | |
element#id, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>960.gs Grid</title> | |
<style type="text/css"> | |
#grid { | |
background: rgba(255,255,255,0.1); | |
height: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fix any absolutely positioned columns if necessary. | |
$(document).ready( function(){ | |
$('.column').each(function(){ | |
var cur = $(this); | |
if(cur.css('position') == 'absolute') { | |
var parent = $(cur.parent().get(0)); | |
if(cur.height() > parent.height()) { | |
parent.css('height',cur.height()); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Handle any drop down navigation systems. | |
$(document).ready(function(){ | |
$('.sub_navigation').each(function() { | |
var menu = $(this); | |
menu.hide(); | |
var parent = $(menu.parent().get(0)); | |
var timeout = false; | |
parent.hover(function(){ | |
if(!timeout && !menu.is(':visible')) { | |
timeout = setTimeout(function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private class QueryDataTask extends AsyncTask<Void, Void, DataReadResult> { | |
@Override | |
protected void onPreExecute() { | |
super.onPreExecute(); | |
Log.d(TAG, "Executing query task"); | |
} | |
protected DataReadResult doInBackground(Void... params) { | |
Calendar date = new GregorianCalendar(); | |
date.set(Calendar.HOUR_OF_DAY, 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>This is a page SUCKA!</title> | |
<style type="text/css" media="screen"> | |
ul#primary_navigation { | |
display: block; | |
overflow: auto; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Joins multiple assets into a single file. | |
# Just like asset caching in Ruby on Rails | |
# Except we also minify with the yui-compressor! | |
require "rubygems" | |
require "yui/compressor" # sudo gem install -r yui-compressor | |
# Specify paths for your assets. | |
paths = { | |
:js => "javascripts/", | |
:css => "stylesheets/" |
OlderNewer