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
| Nikon D3300 - Syed's DSLR | |
| canon 600D | |
| Canon 70D Canon lens cheaper | |
| Nikon D600 | |
| PS3 PS4 |
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").delegate(".fk-item-wl-link", "mouseover", function() { | |
| window.removeList = window.removeList || []; | |
| var list = window.removeList; | |
| var index = list.indexOf(this); | |
| var $this = $(this); | |
| if (index === -1) { | |
| list.push(this); | |
| $this.append('- Added to remove list'); | |
| } else { | |
| list.splice(index, 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
| setInterval(function() { | |
| if (typeof clickedFlag == "undefined") { | |
| clickedFlag = true; | |
| i = 0; | |
| } | |
| if (clickedFlag != true) { | |
| return; | |
| } | |
| console.log('Tried - ' + ++i + ' times'); | |
| var btn = $('.jbv.jbv-orange.jbv-buy-big'); |
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 load_CSS(src, cb) { | |
| var link = document.createElement('link'); | |
| link.type = 'text/css'; | |
| link.rel = 'stylesheet'; | |
| link.href = src; | |
| if (cb) { | |
| link.addEventListener('load', cb); | |
| } | |
| document.getElementsByTagName('head')[0].appendChild(link); | |
| } |
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 getBinary(file){ | |
| var xhr = new XMLHttpRequest(); | |
| xhr.open("GET", file, false); | |
| xhr.overrideMimeType("text/plain; charset=x-user-defined"); | |
| xhr.send(null); | |
| return xhr.responseText; | |
| } | |
| function base64Encode(str) { | |
| var CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; |
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 API Reference | |
| ===================== | |
| ## Debugging | |
| - [Know thy Ember.App](http://emberjs.com/api/classes/Ember.Application.html) | |
| - [Ember.run()](http://emberjs.com/api/classes/Ember.run.html) | |
| - [Ember.run.later()](http://emberjs.com/api/classes/Ember.run.html#method_later) | |
| - [Ember.run.debounce()](http://emberjs.com/api/classes/Ember.run.html#method_debounce) | |
| - [Ember.assert()](http://emberjs.com/api/#method_assert) | |
| - [Ember.debug()](http://emberjs.com/api/#method_debug) |
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
| console.clear(); | |
| var x = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]; | |
| for(var i = 0; i < x.length; i++){ | |
| if(x[i]%2!==0){ | |
| for(var j = i+1; j < x.length; j++){ | |
| if(x[j]%2==0){ | |
| var temp = x[j]; | |
| x[j] = x[i]; | |
| x[i] = temp; | |
| break; |
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
| // Get a random number in a specific range | |
| function randomInRange(max, min) { | |
| return Math.floor(Math.random() * (max - min + 1)) + min; | |
| } | |
| // Get a random item from an array | |
| function randomFromArray(items) { | |
| return items[Math.floor(Math.random() * items.length)]; | |
| } |
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 User(){ | |
| var username, password; | |
| function doLogin(user,pw) { | |
| username = user; | |
| password = pw; | |
| // do the rest of the login work | |
| } |
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
| var albums = [ | |
| {name: 'Beatles', title: 'White Album', price: 15}, | |
| {name: 'Zeppelin', title: 'II', price: 7}]; | |
| // make this work: | |
| albums.sort(by('name')); | |
| albums.sort(by('title')); | |
| albums.sort(by('price')); | |
| function by(propName) { | |
| return function(obj1, obj2) { |
OlderNewer