When the no. of items are less than 5, it is advisable to use radio
When the no. of items are greater than 5, select is better
When the no. of items is more than 15, select makes no sence and having a simple text with autocomplete or something similar to chosen is more suitable.
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
| javascript:(function() {Array.prototype.map.call(document.querySelectorAll('._icyx7'),function(a){return a.attributes[3].nodeValue.replace('s640x640/sh0.08/','')}).map(function(i){var l = document.createElement('a');l.href=i;l.download=i;document.body.appendChild(l);l.click()});})() |
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 fs = require('fs'); | |
| var sc = require('sc-card-transaction-parser'); | |
| var _ = require('lodash'); | |
| var file = fs.readFileSync('transactions.txt'); | |
| var transactions = sc.parseLog(file); | |
| var expenses = function(data, type) { | |
| var grouped = _.groupBy(data, type); | |
| return _.keys(grouped).map(function(a) { | |
| return { |
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
- Stores data elements based on an sequential, most commonly 0 based, index.
- Based on tuples from set theory.
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
| javascript:(function(){$('.ProfileHeaderCard-name').append('<span class="ProfileHeaderCard-badges"><a href="/help/verified" class="js-tooltip" target="_blank" title="Verified account" data-placement="right" rel="noopener"><span class="Icon Icon--verified"><span class="u-hiddenVisually">Verified account</span></span></a></span>');$('.ProfileHeaderCard-badges').css({left: '-6px'});$('.my-tweet .FullNameGroup .UserBadges').append('<span class="Icon Icon--verified"><span class="u-hiddenVisually">Verified account</span></span>')})() |
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
| javascript:(function() {[].slice.apply(document.all).forEach(e => { e.style.color = 'black'; e.style.background = 'none'; e.style.borderColor = 'black';e.style.boxShadow = 'none'} );[].slice.apply(document.querySelectorAll('img')).forEach(i => {i.style.backgroundColor='lightgray';i.width = i.width; i.height = i.height;i.alt='';i.style.filter='none';i.style.border='none';i.src='data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'})})() |
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
| setTimeout(function() { | |
| function getAllModules() { | |
| return new Promise((resolve) => { | |
| const id = _.uniqueId("fakeModule_"); | |
| window["webpackJsonp"]( | |
| [], | |
| { | |
| [id]: function(module, exports, __webpack_require__) { | |
| resolve(__webpack_require__.c); | |
| } |
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
| javascript:window.results = ([].slice.apply(document.querySelectorAll('#div1 tr'))).slice(3,-1).map(row => {const cells = row.querySelectorAll('td');return {c:cells[0].innerText,p: cells[1].innerText,v:Number(cells[2].innerText)}}) |
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
| docker run --rm -v $(pwd):/app composer:latest install --no-dev |