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
// the way it's done in the question (http://stackoverflow.com/questions/16963111/javascript-class-inheritance-for-functions/16963189#16963189) | |
MyBase = function() { | |
this.m_Stuff = 0; // etc | |
}; | |
MyBase.prototype.MySuperFunction = function (arg1) { | |
alert("Hello" + arg1); | |
}; | |
// how i would like to do it | |
MyBase = function() { |
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
tinymce.init({ | |
selector: "textarea", | |
menubar:false, | |
statusbar: false, | |
}); | |
tinymce.init({ | |
selector: "textarea#comment_box", | |
toolbar: 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
PODS: | |
- ctemplate (2.2.1) | |
- icu4c (51.2) | |
- libetpan (1.3.pre2): | |
- libsasl2 | |
- libsasl2 (2.1.25) | |
- MailCore2 (0.3.pre1): | |
- ctemplate | |
- icu4c | |
- libetpan |
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 ng-app="angular-google-maps-example"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>angular-google-maps example</title> | |
<style> | |
.angular-google-map { | |
display: block; | |
} | |
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
$(document).ready -> | |
$.fn.isAfter = (sel) -> | |
$(@prev()).is $(sel) | |
$.fn.isBefore = (sel) -> | |
$(@next()).is $(sel) | |
## definitions (good for caching) | |
menus = ['ul.car', '#price_slider', '#size_slider', 'ul.bed']; | |
buttons = $('.button'); annotations = $('.annotation') |
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": "angular-brunch-seed", | |
"repo": "scotch/angular-brunch-seed", | |
"version": "0.3.0", | |
"main": "_public/js/app.js", | |
"ignore": [ | |
"**/.*", | |
"node_modules", | |
"components" | |
], |
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
exports.config = | |
# See docs at http://brunch.readthedocs.org/en/latest/config.html. | |
conventions: | |
assets: /^app\/assets\// | |
ignored: /^(bower_components\/bootstrap-less(-themes)?|app\/styles\/overrides|(.*?\/)?[_]\w*)/ | |
modules: | |
definition: false | |
wrapper: false | |
paths: | |
public: '_public' |
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
{ | |
"author": "Your Name", | |
"name": "package-name", | |
"description": "Package description", | |
"version": "0.0.1", | |
"homepage": "", | |
"repository": { | |
"type": "git", | |
"url": "" | |
}, |
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
source 'https://rubygems.org' | |
source 'https://rails-assets.org' | |
gem 'rails', '4.1.1' | |
gem 'mysql2' | |
gem 'sass-rails', '~> 4.0.3' | |
gem 'uglifier', '>= 1.3.0' | |
gem 'coffee-rails', '~> 4.0.0' | |
gem 'jquery-rails' |
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
propertyControllers.controller 'PropertyListCtrl', ['$scope', 'Properties', ($scope, Properties) -> | |
angular.extend $scope, | |
map: | |
control: {} | |
zoom: 3 | |
dragging: false | |
bounds: {} | |
center: | |
latitude:33.889762 | |
longitude: 35.506408 |