Debug.log returns passed value, so it can be used in between chain of function calls:
encodePerson <| Debug.log "person" <| mergeFn personDebug.log returns passed value, so it can be used in between chain of function calls:
encodePerson <| Debug.log "person" <| mergeFn person| function binarySearch(list: number[], item: number) { | |
| let low = 0 | |
| let high = list.length - 1 | |
| while (low <= high) { | |
| let mid = Math.floor((low + high) / 2) | |
| let guess = list[mid] | |
| if (guess === item) { | |
| return mid |
| var fs = require('fs'); | |
| let doc = fs.readFileSync('dist/css/app.b528a7e0.css', 'utf8'); | |
| console.log(doc.replace(/(:|\s?){1}([0-9-]*\.?[0-9]*)(rem)/g, function (match, delimeterGroup, numberGroup, sizeGroup, offset, string) { | |
| let pixelSize = Number(numberGroup) * 16 | |
| if (delimeterGroup === ':') { | |
| return `:${pixelSize}px` | |
| } else if (delimeterGroup === ' ') { |
| let sum = 0; | |
| for (let i = 0; i < 1000; i++) { | |
| if (i % 3 === 0 || i % 5 === 0) { | |
| sum += i; | |
| } | |
| } | |
| console.log(sum) |
| license: MIT | |
| height: 400 | |
| border: no |
| license: gpl-3.0 | |
| height: 600 | |
| border: no |
| __pycache__ |
| def detect_mobile(f): | |
| def wrapped(*args, **kwargs): | |
| request = args[0] | |
| if request.mobile and not request.tablet: | |
| path_lang = request.path.find('/en/') | |
| if path_lang != -1 and request.path.find('/mobile/') == -1: | |
| return HttpResponseRedirect('/en/mobile' + request.path[3:]) | |
| return HttpResponseRedirect('/mobile' + request.path) | |
| return f(*args, **kwargs) |
| var foundFlat = null; | |
| var foundFloor = null; | |
| _.each(json, function(bulk) { | |
| _.each(bulk.sections, function(section) { | |
| _.each(section.floors, function(floor, floorData) { | |
| if (floorData.flats) { | |
| _.each(floorData.flats, function(flat) { | |
| if (flat.id === flatId) { | |
| foundFlat = flat; |