Skip to content

Instantly share code, notes, and snippets.

View Th0rN13's full-sized avatar

Th0rN13 Th0rN13

  • Ufa, Russia
View GitHub Profile
0xBf70e358aCC928BFD31EcEf6aE3f7877c336952A
@Th0rN13
Th0rN13 / routify.md
Last active June 1, 2020 05:20
Ussues with svelte-routers

Routify

  • Basepath - to hard to use, base path folder places bundled and static files to root
  • how to get current path?
  • url depends from file, not link
  • isActive issue if need exact path
@Th0rN13
Th0rN13 / UploadAvatar.svelte
Created May 4, 2020 11:59
Svelte Upload Avatar
<div>
<img src={avatar} alt="avatar" />
</div>
<button on:click={() => fileAvatarEl.click()}>
Change
</button>
<input
bind:this={fileAvatarEl}
type="file"
name="avatar"
export const BankSuggestions = withStyles(styles)(BankSuggestionsRender);
export function BankSuggestionsRender({ classes, city, loanType, ownershipType }: Props) {
const bankCards = bankList
.filter((bank) => (bank.cities.some((cityBank) => (cityBank.city === city))))
.filter((bank) => (bank.rates.some((rateBank) =>
((rateBank.propertyType === loanType) || (rateBank.propertyType === ownershipType))
)))
.map((bank, key) => {

Posts

https://egghead.io/
https://github.com/trekhleb/javascript-algorithms
https://habr.com/post/359192/ алгоритмы на js все
https://www.youtube.com/watch?v=j4_9BZezSUA event loop
https://fseby.wordpress.com/2016/02/25/практическая-вводная-в-монады-в-javascript/
https://habrahabr.ru/company/mailru/blog/327522/   (Функциональное программирование в JavaScript с практическими примерами)
https://habrahabr.ru/post/298134/ (FizzBuzz, или почему программисты не умеют программировать)     http://dmitrysoshnikov.com/ecmascript/javascript-the-core-2nd-edition-rus/ (всякое общее)
https://medium.com/@frontman/приведение-типов-в-js-9d6f1845ea96   (приведение типов и др. инфа)