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
| gem 'ice_cube' |
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
| # models/diet.rb | |
| class Diet < ActiveRecord::Base | |
| include Todoable | |
| 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
| require 'spec_helper' | |
| describe "Validade lines of locales files", js: true do | |
| after(:each) do | |
| counter = 1 | |
| base_file = File.new(@locale_files.first) | |
| while (line = base_file.gets) | |
| counter = counter + 1 | |
| 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
| #top-panel{background:#2b3238;background-size:100% 100%;}#top-panel td#login-field span a{background:none;}#top-panel td #searchform a{background:none;height:auto;width:auto;}#top-panel td>a{background:url("http://nullblock.com/img/nbhead.png") 0 0 no-repeat;display:block;width:124px;height:40px;margin:10px 0 10px 10px;}#top-panel td>a img{display:none;}#main-table{background-color:#fff!important;background-image:none!important;} |
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
| Locales = | |
| en: | |
| dates: | |
| format: 'mm/dd/yyyy' | |
| weekStart: 0 | |
| days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"] | |
| daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"] | |
| daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"] | |
| months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] | |
| monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] |
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
| source 'https://rubygems.org' | |
| gem 'rails', '4.0.0' | |
| gem 'simple_form', '3.0.0' | |
| gem 'nested_form', '0.3.2' | |
| gem 'sidekiq', '2.14.1' | |
| gem 'sidekiq_mailer', '0.0.6' | |
| gem 'will_paginate', '3.0.4', github: 'mislav/will_paginate', branch: 'master' | |
| gem 'mongoid_taggable', '1.1.1' | |
| gem 'activesupport', '4.0.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
| //= require jquery | |
| //= require jquery_ujs | |
| //= require modernizr | |
| //= require twitter/bootstrap/transition | |
| //= require twitter/bootstrap/alert | |
| //= require twitter/bootstrap/modal | |
| //= require twitter/bootstrap/dropdown | |
| //= require twitter/bootstrap/scrollspy | |
| //= require twitter/bootstrap/tab | |
| //= require twitter/bootstrap/tooltip |
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
| require "uri" | |
| require "net/http" | |
| require 'base64' | |
| require 'cgi' | |
| require 'openssl' | |
| HOST_KEY = "shienshenlhq" | |
| def search_plate plate | |
| hmac = OpenSSL::HMAC.hexdigest(OpenSSL::Digest.new('sha1'), HOST_KEY.encode("ASCII"), plate.encode("ASCII")) |
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
| func darkenColor(color: NSString, amount: Float) -> (hexColor: String, color: NSColor) { | |
| let originalRed = Float(Int(color.substringWithRange(NSRange(location: 0, length: 2)), radix: 16)!) | |
| let originalGreen = Float(Int(color.substringWithRange(NSRange(location: 2, length: 2)), radix: 16)!) | |
| let originalBlue = Float(Int(color.substringWithRange(NSRange(location: 4, length: 2)), radix: 16)!) | |
| let valueRed = originalRed * amount | |
| let darkenRed = String(format: "%02X", Int(valueRed)) | |
| let valueGreen = originalGreen * amount | |
| let darkenGreen = String(format: "%02X", Int(valueGreen)) |
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
| protocol NewCustomerForm { | |
| var enteredName: String? { get } | |
| var enteredEmail: String? { get } | |
| var enteredPhone: String? { get } | |
| var enteredAddress: String? { get } | |
| } | |
| class NewCustomerViewController: UIViewController, NewCustomerForm { | |
| // MARK: Outlets |
OlderNewer