Skip to content

Instantly share code, notes, and snippets.

@mlent
mlent / gist:7e45b67732eb18d51a30
Created February 16, 2015 17:06
Extract in-use transaction strings
import re
import fnmatch
import sys
import os
from pprint import pprint
import json
in_use = []
for root, dirnames, filenames in os.walk('scripts'):
define([
'angular',
'angularMocks',
'shop/shop_controller',
'text!/base/app/test/data/shop-api-products.json',
'text!/base/app/test/data/api-v0.1-me.json',
'text!/base/app/test/data/shop-api-countries.json',
'text!/base/app/test/data/shop-api-orders-search.json',
'common/services/resource',
'common/services/i18n',
'use strict';
define(['jquery',
'angular',
'angularMocks',
'common/services/i18n',
'common/filters/i18n',
'text!util/templates/scroll_selector_template.html',
'util/directives/scroll_selector_directive',
'angulartics'],
var modules = require('modules');
var DIRECTIVE_NAME = 'validationList';
function validationList() {
return {
restrict: 'C',
link: function(scope, elem, attrs) {
var liExprs = [];
var parsetree = function(selector, options) {
this.el = document.querySelector(selector);
this.options = options || {};
if (this.el == null)
console.log("Could not find DOM object");
return this;
};
<script>
var btn = document.getElementById('myButton');
btn.addEventListener('click', loadProgress);
function loadProgress() {
console.log('Button clicked!');
var progressBar = document.getElementsByClassName('progress-bar')[0];
var interval = 30;
var currentValue = 0;
for (var i = 0; i < 100; i += interval) {
function sendDataToAmazon(dataToSend) {
return getAmazonKey()
.then(getUrlWithKey)
.then(function(url) {
/* Sometimes it's easier to inline if you have
data passed into original function which is only
needed in the middle of a promise chain*/
return sendDataToUrl(url, dataToSend);
})
.then(updateUI);
@mlent
mlent / untitled.md
Last active November 8, 2016 09:49
job_ad_input

Fullstack JavaScript Engineer

Description

Who we are

The people of SumUp have brought the best way to accept card payments to 15 countries so far, but we won’t stop there. Headquartered in London, SumUp's major offices are in Berlin, Sofia and São Paulo. The Berlin office alone comprises more than 100 people from 24 countries. We recently launched a brand new contactless device, which makes paying by card easier than ever before.

SumUp could be interesting for you as an engineer in part because we cover so many platforms: we have physical hardware (made right here in Berlin), our own proprietary payment processing platform, mobile apps on iOS and Android, SDKs and APIs supporting third-party integration, and of course (the main star, in this team's humble opinion) a merchant-facing web app.

@mlent
mlent / untitled.md
Last active February 15, 2017 13:55 — forked from anonymous/untitled
job_ad_input

Fullstack JavaScript Engineer

Who we are

More than 100 people from 24 countries have brought the best way to accept card payments to 15 countries so far, but we won’t stop there. SumUp is headquartered in Berlin, with major offices also in London, Sofia and São Paulo. We recently launched a brand new contactless device, which makes paying by card easier than ever before.

SumUp is interesting for you as an engineer in part because we cover so many platforms: we have physical hardware (made right here in Berlin), our own proprietary payment processing platform, mobile apps on iOS and Android, SDKs and APIs supporting third-party integration, and of course (the main star, in our humble opinion) a merchant-facing web app.

What we're looking for

Web Team Definition of Done

Development

  1. Feature is developed
  2. Pure logic tested with unit tests
  3. Local tests (for ANY change) in at least 3 browsers
  4. Write skeleton for e2e tests to describe all possible behaviors -- implement the most important cases as possible.

Review

  1. Code is reviewed by your teammates