This file contains 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
:root{ | |
--ss-primary-color: #5897fb; | |
--ss-bg-color: #ffffff; | |
--ss-font-color: #4d4d4d; | |
--ss-font-placeholder-color: #8d8d8d; | |
--ss-disabled-color: #dcdee2; | |
--ss-border-color: #dcdee2; | |
--ss-highlight-color: #fffb8c; | |
--ss-success-color: #00b755; | |
--ss-error-color: #dc3545; |
This file contains 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
# `msgid`s in this file come from POT (.pot) files. | |
# | |
# Do not add, change, or remove `msgid`s manually here as | |
# they're tied to the ones in the corresponding POT file | |
# (with the same domain). | |
# | |
# Use `mix gettext.extract --merge` or `mix gettext.merge` | |
# to merge POT files into PO files. | |
msgid "" | |
msgstr "" |
This file contains 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
javascript:(function(){ var aff = 'campusboard0e-21'; if (!document.getElementById('ASIN')) { alert('Could not find the product ID.'); return; } var asin = document.getElementById('ASIN').value; prompt( 'Here is your link:', 'http://www.amazon.co.uk/dp/' + asin + '/?tag=' + aff); })() |
This file contains 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.Controller.extend({ | |
appName: 'Ember Twiddle', | |
queryParams: [ 'utm_medium' ], // omit utm_source on purpose | |
}); |
This file contains 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.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
This file contains 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
services_dir_name = './app/services' | |
servise_dir = Dir.glob(File.join(services_dir_name, '**', '*')) | |
object_proxy_tests = [/ObjectProxy/, /_ProxyMixin/] | |
service_inject_tests = [/inject as service/] | |
alias_tests = [/alias/] | |
readonly_tests = [/readonly/] | |
observer_tests = [/observer/] | |
actions_tests = [/actions/] | |
exrtended_mixin_tests = [/EventedMixin/] |
This file contains 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
/** | |
* A lighter version based on https://github.com/jherdman/javascript-relative-time-helpers | |
* | |
* Takes a date either in the future or the past and returns distance of time in words from that date up to now | |
* | |
* Examples: | |
* | |
* - current date: | |
* toRelativeTime(new Date()) | |
* > 'Just now' |
This file contains 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 Board | |
def initialize ships | |
@ships = ships | |
end | |
def shoot coordinates | |
if coordinates == 1 # this would call the ships really | |
@ships = [0,0,-1,1] | |
return 'HIT' | |
end |