This file contains 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
Popular Sites to Job Hunt | |
AngelList - https://angel.co | |
GitHub: http://jobs.github.com | |
Mashable: http://jobs.mashable.com/jobs | |
Indeed: http://indeed.com | |
StackOverflow: http://stackoverflow.com/jobs | |
LinkedIn: http://linkedIn.com | |
Glassdoor: http://glassdoor.com | |
Dice: http://dice.com | |
Monster: http://monster.com |
This file contains 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
const test = {a: 1, b: 2, c: 3}; | |
// #1 ES6 | |
for (const [key, value] of Object.entries(test)) { | |
console.log(key, value); | |
} | |
// #2 | |
for (var k in test){ | |
if (test.hasOwnProperty(k)) { |
This file contains 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
// #1 Solution | |
var arr = ['a','b','c','d','d','e','a','b','c','f','g','h','h','h','e','a']; | |
var map = arr.reduce(function(prev, cur) { | |
prev[cur] = (prev[cur] || 0) + 1; | |
return prev; | |
}, {}); | |
// map is an associative array mapping the elements to their frequency: | |
document.write(JSON.stringify(map)); | |
// prints {"a": 3, "b": 2, "c": 2, "d": 2, "e": 2, "f": 1, "g": 1, "h": 3} |
This file contains 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
# Plaforms | |
Shopware - https://github.com/shopware | |
Saleor - https://github.com/mirumee | |
Spree - https://github.com/spree | |
GetCandy - https://github.com/getcandy | |
Reaction Commerce - https://github.com/reactioncommerce | |
Vendure - https://github.com/vendure-ecommerce | |
# Storefront for eCommerce | |
Vue Storefront - PWA for eCommerce - https://www.vuestorefront.io |
This file contains 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 React, { Component } from 'react'; | |
export default class RenderProducts extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
innerWidth: window.innerWidth, | |
} | |
this.handleResize = this.handelResize.bind(this); | |
} | |
handleResize(){ |
This file contains 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 one-liner node.js http-proxy middleware for connect, express and browser-sync | |
https://github.com/chimurai/http-proxy-middleware |
This file contains 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
# Logs | |
logs | |
*.log | |
npm-debug.log* | |
yarn-debug.log* | |
yarn-error.log* | |
# Runtime data | |
pids | |
*.pid |
This file contains 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(url) | |
// .done(function(response) { | |
// if (response.status === 'success') { | |
// // draw chart line now | |
// //fnDrawChartPieAndBar(option); | |
// } else { | |
// console.log(response.message); | |
// } | |
// }).fail(function(error) { | |
// console.log(error); |
This file contains 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
// Code based on RFC 4122, section 4.4 (Algorithms for Creating a UUID from Truly Random or Pseudo-Random Number). | |
// http://www.ietf.org/rfc/rfc4122.txt | |
function createUUID() { | |
var s = []; | |
var hexDigits = "0123456789abcdef"; | |
for (var i = 0; i < 36; i++) { | |
s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1); | |
} | |
s[14] = "4"; // bits 12-15 of the time_hi_and_version field to 0010 | |
s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1); // bits 6-7 of the clock_seq_hi_and_reserved to 01 |
This file contains 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
Scenario: Transferring money from current account to saving account | |
Given I have a current accout with 1000 | |
And I have a saving account with 2000 | |
When I transfer 500 from my current account to my savings account | |
Then I should have 500 in my current account | |
And I should have 2500 in my saving account |
NewerOlder