This file contains hidden or 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
| var trimmed = str.replace(/^\s+|\s+$/g, ''); |
This file contains hidden or 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
| named_scope :active, :conditions => { :active => true } | |
| named_scope :by_state, lambda { |state| { :conditions => { :active => state } } } | |
| def self.search(params) | |
| builder = Course.scope_builder | |
| builder.by_state(params[:active]) if not params[:active].blank? | |
| builder.all | |
| end |
This file contains hidden or 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> | |
| <html> | |
| <head> | |
| <meta charset=utf-8 /> | |
| <title>HTML 5 complete</title> | |
| <!--[if IE]> | |
| <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
| <![endif]--> | |
| <style> | |
| article, aside, dialog, figure, footer, header, |
This file contains hidden or 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
| var sys = require('sys'), | |
| http = require('http'), | |
| ws = require("./vendor/ws"), | |
| base64 = require('./vendor/base64'), | |
| arrays = require('./vendor/arrays'); | |
| // Command line args | |
| var USERNAME = process.ARGV[2]; | |
| var PASSWORD = process.ARGV[3]; | |
| var KEYWORD = process.ARGV[4] || "iphone"; |
This file contains hidden or 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
| (function ($) { | |
| $.event.special.textchange = { | |
| setup: function (data, namespaces) { | |
| $(this).bind('keyup.textchange', $.event.special.textchange.handler); | |
| $(this).bind('cut.textchange paste.textchange input.textchange', $.event.special.textchange.delayedHandler); | |
| }, | |
| teardown: function (namespaces) { |
This file contains hidden or 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
| mappeo.initialize({ | |
| container: 'map', | |
| filter: '', // Filter videos by keyword | |
| geolocation: true, // Automatic center map on the user current location | |
| latitude: 37.7749295, | |
| longitude: -122.4194155, | |
| zoom: 8, | |
| gMapsApiKey: '<your google API key>', | |
| youTubeApiKey: '<your google API key>', | |
| markerClusterer: true, // Clusterer markers |
This file contains hidden or 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
| (function() { | |
| // Configuration Parameters | |
| var message_html = "<App> is now available in the Chrome Web Store" | |
| // Webstore install page URL | |
| var app_install_url = "https://chrome.google.com/webstore/detail/lnempicjilmahngopecohbcbldlijkib"; | |
| // 24x24 App icon | |
| var app_icon = ""; | |
| var cookie = "_webstore_preference"; | |
| // URL for stylesheet | |
| var stylesheet_url = "chrome-notification.css"; |
This file contains hidden or 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
| if (navigator && navigator.userAgent && navigator.userAgent.indexOf('Chrome') != -1) { | |
| var isInstalled = window.chrome && window.chrome.app && window.chrome.app.isInstalled; | |
| var isCancelled = document.cookie.indexOf(cookie + "=true") >= 0; | |
| (...) | |
| } |
This file contains hidden or 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
| geoPhoto.initialize({ | |
| container: 'map', | |
| filter: '', | |
| geolocation: true, | |
| latitude: 37.7749295, | |
| longitude: -122.4194155, | |
| zoom: 8, | |
| maxSearchResults: 100 | |
| }); | |
| /* Other initialization parameters |
OlderNewer