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> | |
<input type="radio" name="aasd"> | |
<input type="radio" name="aasd"> | |
<input type="radio" name="aasd"> | |
<input type="radio" name="aasd"> | |
<input type="radio" name="aasd"> | |
<input type="radio" name="aasd"> | |
<br> |
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
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm | |
*.iml | |
## Directory-based project format: | |
.idea/ | |
## Build | |
build | |
app/build |
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
# object.json.rabl | |
# This is not regular rabl template | |
# This example is using rabl-rails gem: https://github.com/ccocchi/rabl-rails | |
object :@product | |
attributes :id, :name, :description | |
node :categories do |item| | |
item.categories.map do |category| | |
category.id |
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 TokenAuthenticatable | |
extend ActiveSupport::Concern | |
module ClassMethods | |
def find_by_authentication_token(authentication_token = nil) | |
if authentication_token | |
where(authentication_token: authentication_token).first | |
end | |
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
(function() { | |
var InputResetable = function(element, defaultValue) { | |
this.element = element; | |
this.init(defaultValue); | |
}; | |
InputResetable.prototype = { | |
init: function(defaultValue) { |
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() { | |
var defaultDuration = 500; | |
var scrollToElement = function($element, duration) { | |
// use body if no $element is defined | |
// use fdefault duration if is not sad different | |
$element = $element || $('body'); | |
duration = duration || defaultDuration; |
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
body { | |
background: #ccc | |
} | |
.quote { | |
position: relative; | |
display: block; | |
padding: 40px; | |
background: #fff; | |
border-radius: 3px; |
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
<html> | |
<head> | |
<title>test</title> | |
</head> | |
<body> | |
<div id="mydiv"></div> | |
<div id="mydiv2"></div> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<script> |
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
Ember.MediumEditor = Ember.View.extend({ | |
editor: null, | |
initializeEditor: function() { | |
var self = this, | |
element = this.get('element'); | |
this.valueObserver(); | |
this.set('editor', new MediumEditor(element)); |