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
package me.kennydude.spending.widgets; | |
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.graphics.*; | |
import android.graphics.drawable.Drawable; | |
import android.graphics.drawable.StateListDrawable; | |
import android.text.Editable; | |
import android.text.TextPaint; | |
import android.text.TextWatcher; |
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($, window, document) { | |
var slideshow = $('.slideshow'), | |
viewport = $('.thumbs-view', slideshow), | |
ctrls = $('.ctrl', slideshow), | |
next_btn = ctrls.filter('.next'), | |
prev_btn = ctrls.filter('.prev'), | |
slides_holder = $('.thumbs', slideshow), | |
slides = $('li', slides_holder), |
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 form = $('.application-form'), | |
requiredFields = $('.required', form), | |
email_pattern = /^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$/, | |
key_range = /4[8-9]|5[0-7]|45|32|13/, | |
topmost_error = $('.application-form-placeholder').offset().top; | |
has_error = true, | |
$('#applicant-birthdate').datepicker({ | |
changeMonth: true, | |
changeYear: true, |
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
@mixin font-face($font-family, $font, $weight : normal, $style : normal) { | |
@font-face { | |
font-family: $font-family; | |
src: url('path/to/font/#{$font}.eot'); | |
src: url('path/to/font/#{$font}.eot?#iefix') format('embedded-opentype'), | |
url('path/to/font/#{$font}.woff') format('woff'), | |
url('path/to/font/#{$font}.ttf') format('truetype'), | |
url('path/to/font/#{$font}.svg##{$font-family}') format('svg'); | |
font-weight: $weight; |
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
// extend date object and define the format method | |
Date.prototype.toRelativeTime = function () { | |
// days of week long string | |
var day_of_week = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]; | |
// Month long string | |
var month = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; | |
// the dates |