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 () { | |
$(function () { | |
$('#main_table .main_table tbody > tr[id]').each(getModifier('http://www.yad2.co.il/Nadlan/rent_info.php?NadlanID=')); | |
$('#tiv_main_table .main_table tbody > tr[id]').each(getModifier('http://www.yad2.co.il/Nadlan/tivrent_info.php?NadlanID=')); | |
function getModifier(urlPrefix) { | |
return function () { | |
var $this = $(this), | |
id = $this.attr('id'), | |
index = id.lastIndexOf('_') + 1, |
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
// based loosely on https://gist.github.com/dschmidt/a68747348036fd6aa989 | |
// and the answer http://stackoverflow.com/questions/24782479/how-to-debug-slow-ember-cli-broccoli-builds/26044864#26044864 | |
var glob = require('glob'), | |
fs = require('fs'), | |
util = require('util'), | |
_ = require('lodash'); | |
EMBER_FILES=[ | |
'ember/ember.js', | |
'ember/ember.prod.js', |
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 Essentials | |
=================== | |
JS Bins | |
------------- | |
[Ember Classes and Objects](http://emberjs.jsbin.com/jupago/2/edit?js,console%5C) | |
[HTMLBars](http://emberjs.jsbin.com/vacila/3/edit?html,js,output) | |
[Some Basic Routing](http://emberjs.jsbin.com/fohodu/4/edit?html,js,output) | |
[Routes with Promises](http://emberjs.jsbin.com/labexa/6/edit?html,js,output) | |
[Components](http://emberjs.jsbin.com/tefada/4/edit?html,js,output) |
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
// app/transforms/recursive.js | |
export default DS.Transform.extend({ | |
deserializeRecursively: function(toTraverse) { | |
var hash; | |
if (Ember.isArray(toTraverse)) { | |
return Ember.A(toTraverse.map(function(item) { | |
return this.deserializeRecursively(item); | |
}, this)); | |
} else if (!Ember.$.isPlainObject(toTraverse)) { |
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
###ES6 Generators [es6fiddle](http://www.es6fiddle.net/)s Examples | |
####Based on [@davidwalsh](https://twitter.com/davidwalshblog)'s [es6-generatoros articles series](http://davidwalsh.name/es6-generators) | |
---------------------------------------------------------- | |
- [Basic Iterations](http://www.es6fiddle.net/i6ij9zn9/) | |
- [Factorial & Fibonacci](http://www.es6fiddle.net/i6jxhql8/) | |
- [Evaluation Steps](http://www.es6fiddle.net/i6il8d6i/) | |
- [Inside Outside](http://www.es6fiddle.net/i6iks82w/) | |
- [Error Handling](http://www.es6fiddle.net/i6inhibu/) | |
- Delegating Generators |
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
import Ember from 'ember'; | |
const { | |
Mixin, | |
on, | |
defineProperty, | |
computed | |
} = Ember; | |
const { |
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
import DS from 'ember-data'; | |
export default DS.FixtureAdapter.extend(); |
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
/*eslint-disable */ | |
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } | |
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | |
/*eslint-enable */ | |
function getEnumClass(options = {}, _EnumSymbol){ | |
function EnumClass() { | |
_classCallCheck(this, EnumClass); |
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
import Ember from 'ember'; | |
export default Ember.Route.extend({ | |
model() { | |
return new Promise((resolve) => { | |
setTimeout(resolve, 5000) | |
}); | |
} | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
OlderNewer