#ordermap
Explore tagged Tumblr posts
Photo
Angiescrocheting.etsy.com 2017 was my 2nd year in business. I filled orders from every state in the US and added Australia, Scotland and England, Canada, and Argentina! Just in Etsy I had 205 order with 215 sales. That’s A LOT of crochet! #crochetismyhustle #secondyear #smallbusinessowner #etsysales #etsyorders #ordermap #unitedstates #unitedkingdom #Scotland #england #australia #argentina #canada #etsy #etsyshop #etsyseller #etsysellersofinstagram #etsyshopowner #crochet #successfull #feelingaccomolished #2018goals
#etsy#secondyear#crochet#etsysellersofinstagram#smallbusinessowner#etsyorders#ordermap#successfull#unitedkingdom#unitedstates#feelingaccomolished#argentina#scotland#etsyshopowner#crochetismyhustle#england#australia#etsyshop#2018goals#canada#etsysales#etsyseller
0 notes
Photo
A few months ago I shared a page of the Steampunk Zine about the Steampunk Conspiracy Scarab Cryptodevice. I that page I explain the existence of a network of conspiracy theorists and a few details about them. One of the things I invented is the map/symbol of the supreme order in which the theorists believe. I started to play with that map just for fun and I got hooked. Now I’m drawing that map everywhere and trying different symbols. There is a whole story I can invent around this. This is good fun! #conspiracytheory #steampunk #ordermap #symbol #exoteric — view on Instagram https://ift.tt/tmhdy7x
0 notes
Text
Custom Array Ordering in JavaScript
Occassionally, a custom ordering has to be applied to a list of items (e.g. from an API). In other words the order is not defined in a way that a sorting function could easily apply to. For example, an admin screen displaying all access policies for pages should be in the order that the pages appear in the applications main menu (which is probably not alphabetical):
function apiCall(callback) { const policies = [ { name: 'reports', readonly: true, editable: false }, { name: 'dashboard', readonly: true, editable: true }, { name: 'admin', readonly: false, editable: false } ]; // Simulate an API call setTimeout(() => callback(policies), 300); }; function getListForTable(callback) { apiCall((policies) => { // Make it ordered like the UI is. In a real application this information // could then be displayed in a permission table. const uiOrder = ['dashboard', 'reports', 'admin']; const orderMap = {}; uiOrder.forEach((name, index) => orderMap[name] = index); const orderedPolicies = []; policies.forEach((policy) => { const position = orderMap[policy.name]; orderedPolicies[position] = policy; }); callback(orderedPolicies) }); } getListForTable((orderedPolicies) => { console.log('Ordered for the UI:'); console.log(orderedPolicies); // [ { name: 'dashboard', readonly: true, editable: true }, // { name: 'reports', readonly: true, editable: false }, // { name: 'admin', readonly: false, editable: false } ] });
This algorithm is simplified by 2 points; Firstly, a map is created with names to array position, so an array does not need to be searched through. Secondly, array positions are just assigned as they come to a new ordered array. Since JavaScript dynamically handles array size, you can just assign array positions and JavaScript will figure out the array size by getting what is the last position assigned.
Edit (Feb 2nd, 2018)
If the ordering array is small, like the above one, Array.indexOf can be used. This was suggested by dvdrtrgn. Which simplifies the code a little:
// Make it ordered like the UI is. In a real application this information // could then be displayed in a permission table. const uiOrder = ['dashboard', 'reports', 'admin']; const orderedPolicies = []; policies.forEach((policy) => { // This means checking through a whole array, so only use when uiOrder is small const position = uiOrder.indexOf(policy.name); orderedPolicies[position] = policy; }); callback(orderedPolicies)
Just keep in mind, Array.indexOf looks through each array element until an element is found. Which is why it should not be used in loops on large arrays.
Github Location: https://github.com/Jacob-Friesen/obscurejs/blob/master/2018/customArrayOrder.js
97 notes
·
View notes
Photo
Hello small businesses! I’ve just listed this postcode map on my etsy for you to download, only for £1.50! I know digital downloads for maps like this can cost a lot, so I listed it for as cheap a price as I could! I wonder where your items have been 🤔 Check out the link in my bio for my products, and Dm me if you need anymore info! Make sure to like and share! ~ ~ ~ ~ ~ #newsmallbusiness #blackownedsmallbusiness #queersmallbusiness #lgbtfriendly #uksmallbusiness #handmadeuk #handmadewales #blackowneduk #teensmallbusinessowner #teenentrepreneur #handmadeaccesories #etsyselleruk #depopseller #etsyukseller #uniqueaccessories #postcode #postcodemap #digitaldownload #digitaldrawings #ukmap #ukartist #ukartists #pinkpinkpink #pinkmap #ordermap #postage #deliveryuk #etsydigital #etsydigitaldownloads #etsydigitalprints (at Uk) https://www.instagram.com/p/CL-Nv4GgCCO/?igshid=1bd5gltflcokw
#newsmallbusiness#blackownedsmallbusiness#queersmallbusiness#lgbtfriendly#uksmallbusiness#handmadeuk#handmadewales#blackowneduk#teensmallbusinessowner#teenentrepreneur#handmadeaccesories#etsyselleruk#depopseller#etsyukseller#uniqueaccessories#postcode#postcodemap#digitaldownload#digitaldrawings#ukmap#ukartist#ukartists#pinkpinkpink#pinkmap#ordermap#postage#deliveryuk#etsydigital#etsydigitaldownloads#etsydigitalprints
0 notes
Text
Opencart 2.x - Ordermap - Карта Заказов В Админ-панели
http://dlvr.it/QZmzcg
0 notes