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
export const request = ({ method, url, content }) => { | |
if (content && method === 'GET') { | |
throw new Error('GET method with content is not supported'); | |
} | |
if ( | |
!appGlobalsService.get('NODE_ENV') === 'development' && | |
typeof navigator !== 'undefined' && | |
!!navigator && | |
navigator.onLine === false |
You come across this patch as a pull request. It's only green lines (additions) with the following commit message.
commit 2f159dcef7412a88175debfef54d317a162c1999 (HEAD -> origin/bobby-dev/add-surface-api)
Author: Bobby Developer <bobby-dev@otovo.com>
Date: Fri Apr 14 11:46:01 2023 +0200
Surfaces: Start fetching surfaces from external service
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
tests = [["ABAZDC", "BACBAD"], ["AA", "AAAA"], ["AGGTAB", "GXTXAYB"]]; | |
function findCommon(a, b) { | |
arrB = [...b]; | |
return [...a].filter((c, index) => { | |
if (!arrB.includes(c)) { | |
return false; | |
} | |
const match = arrB.indexOf(c, Math.min(index, arrB.length - 1)); |
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
/* | |
Introducing `f` – a simple formatter for complex strings | |
optimized for readability, inspired by Python's printf | |
✅ No need for new variable names | |
✅ Readable code | |
✅ Readable result string | |
*/ | |
// Usage |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet version="2.0" | |
xmlns:html="http://www.w3.org/TR/REC-html40" | |
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" | |
xmlns:sitemap="http://www.sitemaps.org/schemas/sitemap/0.9" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/> | |
<xsl:template match="/"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> |
In spite of no Remarkable-battery, I've started documenting the process ✌️Along the way this actually took the form of a blog post (dev-blog any1??1 😄). First part «Build and Server Stuff» is kinda ready for review/feedback if anyone is interested in reading 📖. I'll supplement with Client side stuff later. Tomorrow probably.
Before we decide where this should reside (docs/blog idunno ¯\_(ツ)_/¯ ) I'll just post it here as a comment.
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
<!DOCTYPE html> | |
<html> | |
<head></head> | |
<body> | |
<div class="> | |
<iframe | |
width="100%" | |
height="250px" | |
frameborder="0" | |
src="https://api.otovo.com/widgets/leads/?country=se&partner=elgiganten" |
I hereby claim:
- I am rix1 on github.
- I am rix1 (https://keybase.io/rix1) on keybase.
- I have a public key ASAIp4xxxENxQHlu6F9Pzn9L891e9SwSYMYzLwx7icPlpAo
To claim this, I am signing this object: