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
<snippet> | |
<content><![CDATA[ | |
<!doctype html> | |
<!--[if lt IE 7]> | |
<html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> | |
<![endif]--> | |
<!--[if IE 7]> | |
<html class="no-js lt-ie9 lt-ie8" lang="en"> | |
<![endif]--> | |
<!--[if IE 8]> |
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
Show hidden characters
{ | |
"always_prompt_for_file_reload": true, | |
"auto_indent": true, | |
"bold_folder_labels": true, | |
"close_windows_when_empty": true, | |
"color_scheme": "Packages/Theme - Aqua/Color Schemes/Espresso Aqua.tmTheme", | |
"copy_with_empty_selection": false, | |
"create_window_at_startup": false, | |
"detect_indentation": true, | |
"draw_centered": false, |
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
Ember.MediumEditor = Ember.View.extend({ | |
editor: null, | |
initializeEditor: function() { | |
var self = this, | |
element = this.get('element'); | |
this.valueObserver(); | |
this.set('editor', new MediumEditor(element)); |
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
<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 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 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 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 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 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 |
OlderNewer