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
this | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
$.extend({ | |
getUrlVars: function() { | |
var vars = [], | |
hash; | |
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); | |
for (var i = 0; i < hashes.length; i++) { | |
hash = hashes[i].split('='); |
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
test |
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
[ | |
{ | |
name: "Pointy.gif", | |
size: 1954, | |
url: "https://vocalem.s3.amazonaws.com/uploads/asset/asset/1/Pointy.gif", | |
delete_url: "/assets/1", | |
delete_type: "DELETE" | |
}, | |
{ | |
name: "Woof.gif", |
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
class Page < ActiveRecord::Base | |
extend FriendlyId | |
friendly_id :slug | |
validates :slug, :presence => true | |
validates_uniqueness_of :slug, :scope => :organization_id | |
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
<script> | |
$(document).ready(function() { | |
$("#calc").submit(function(e) { | |
e.preventDefault() | |
var p = $("#nocommas").val() | |
var years = $("#years").val() | |
var noCommas = p.replace(',', ''); | |
var oldAmountOwed = amoritize(noCommas, years, .034) |
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
test |
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
{ | |
"question": "I am a new question. What is love?" | |
} |
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
resources :providers do | |
member do | |
put :refresh | |
end | |
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
// This function creates an <iframe> (and YouTube player) | |
// after the API code downloads. | |
<div id="player-div"></div> | |
var player; | |
player = new YT.Player('player-div', { | |
height: //Height | |
width: //Width | |
videoId: //YouTube UID | |
wmode: 'opaque', //Forget what this does but I think it's important. Otherwise the modal will be covered up. | |
autohide: 1, |
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
import Ember from 'ember'; | |
export default Ember.TextField.extend({ | |
_value: null, | |
value: Ember.computed('_value', { | |
get() { | |
const value = this.get('_value'); | |
if (value) { | |
return moment(value).format('L HH:mm'); |