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 addLeagueCtrl($scope, $rootScope, $location, $http, DashboardService) { | |
| AWS.config.update({accessKeyId: 'YOURACCESSID', secretAccessKey: 'YOURSECRETKETY'}); | |
| AWS.config.region = 'us-west-2'; | |
| var bucket = new AWS.S3({params: {Bucket: 'ezsportsadmin'}}); | |
| var fileChooser = document.getElementById('file-chooser'); | |
| var results = document.getElementById('results'); | |
| var imageURL = ""; | |
| $scope.fileChooser = fileChooser; |
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 _map; | |
| var _group; | |
| var _userLocation; | |
| $(document).ready(function(){ | |
| var url = location.pathname.substring(location.pathname.lastIndexOf('/')+1); | |
| if (url == 'map') { | |
| LoadMapPage(); | |
| } |
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
| Add under Permissions in your Amazon bucket: | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> | |
| <CORSRule> | |
| <AllowedOrigin>*</AllowedOrigin> | |
| <AllowedMethod>GET</AllowedMethod> | |
| <AllowedMethod>PUT</AllowedMethod> | |
| <AllowedMethod>POST</AllowedMethod> | |
| <MaxAgeSeconds>3000</MaxAgeSeconds> |
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
| // | |
| // ViewController.swift | |
| // RaleighCrime | |
| // | |
| // Created by David Curtis on 3/15/15. | |
| // Copyright (c) 2015 David Curtis. All rights reserved. | |
| // | |
| import UIKit | |
| import Foundation |
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
| _solutionsContainer = _solutionsContainer.sort(function(a,b) { return (b.Order) - (a.Order) }); |
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
| // | |
| // ViewController.swift | |
| // RaleighCrime | |
| // | |
| // Created by David Curtis on 3/15/15. | |
| // Copyright (c) 2015 David Curtis. All rights reserved. | |
| // | |
| import UIKit | |
| import Foundation |
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> | |
| <title>YOUR TITLE HERE</title> | |
| <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> | |
| <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> | |
| <%= csrf_meta_tags %> | |
| </head> | |
| <body> |
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
| module DeviseHelper | |
| def devise_error_messages! | |
| return '' if resource.errors.empty? | |
| messages = resource.errors.full_messages.map { |msg| content_tag(:li, msg) }.join | |
| sentence = I18n.t('errors.messages.not_saved', count: resource.errors.count, resource: resource.class.model_name.human.downcase) | |
| html = <<-HTML | |
| <div class="alert alert-danger alert-dismissable"> | |
| <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> |
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
| $('#howDidIFeelCheckboxes').find('input').each(function(){ | |
| if($(this).is(':checked')){ | |
| $(this).attr('checked', false); | |
| } | |
| }); | |
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 DoesFilterReturnZeroItems(){ | |
| var hiddenItems = 0; | |
| var allItems = 0; | |
| $('#closetItems').find('.closetWrapper').each(function(){ | |
| if($(this).hasClass('displaynone')){ | |
| hiddenItems++; | |
| } | |
| allItems++; | |
| }); | |
| if(allItems==hiddenItems){ |
NewerOlder