Some useful Chrome extensions that I use to learn Japanese.
George Polya (1887-1985) was a Hungarian mathematician and educator who revolutionized our understanding of problem-solving and teaching. While he made significant contributions to mathematics, his most enduring legacy is his insights into how people learn and solve problems. His 1945 book "How to Solve It" has influenced educators across numerous fields, extending far beyond mathematics.
Polya's approach centered on three key principles. First, he championed active learning, believing students learn best by discovering solutions themselves rather than being told answers. Second, he emphasized heuristic thinking - the art of guided discovery and learning from experience, viewing problem-solving as a skill that can be developed through practice. Third, he developed sophisticated questionin
| var UInt4 = function (value) { | |
| return (value & 0xF); | |
| }; | |
| var Int4 = function (value) { | |
| var ref = UInt4(value); | |
| return (ref > 0x7) ? ref - 0x10 : ref; | |
| }; | |
| var UInt8 = function (value) { |
| import { | |
| AfterViewInit, | |
| Component, | |
| ElementRef, | |
| Input, | |
| OnDestroy, | |
| ViewChild | |
| } from '@angular/core'; | |
| import { fromEvent } from 'rxjs'; | |
| import { pairwise, switchMap, takeUntil } from 'rxjs/operators'; |
| <!-- | |
| This is a quick ui that wraps yurixi's code from https://habr.com/post/359244/ | |
| It can save PNG and SVG. | |
| All credit goes to him for doing pretty much all the work here. | |
| --> | |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <html> | |
| <head> |
| ( 3|0 ) === 3; // целые числа не изменяет | |
| ( 3.3|0 ) === 3; // у дробных чисел отбрасывает дробную часть | |
| ( 3.8|0 ) === 3; // не округляет, а именно отбрасывает дробную часть | |
| ( -3.3|0 ) === -3; // в том числе и у отрицательных дробных чисел | |
| ( -3.8|0 ) === -3; // у которых Math.floor(-3.3) == Math.floor(-3.8) == -4 | |
| ( "3"|0 ) === 3; // строки с числами преобразуются к целым числам | |
| ( "3.8"|0 ) === 3; // при этом опять же отбрасывается дробная часть | |
| ( "-3.8"|0 ) === -3; // в том числе и у отрицательных дробных чисел | |
| ( NaN|0 ) === 0; // NaN приводится к нулю | |
| ( Infinity|0 ) === 0; // приведение к нулю происходит и с бесконечностью, |
| const getSpecifiedDay = { | |
| oncePerMonth: (fromDate, dayOfWeek, numberOfTimes, startHours, endHours) => { | |
| // Get first day of the month by given fromDate | |
| const currentMonth = moment(fromDate).startOf('month'); | |
| // Get desired dayOfWeek of currentMonth's first week | |
| const firstDayInMonth = currentMonth.clone().weekday(dayOfWeek); | |
| // Check if firstDayInMonth is in the given month |
| // bad | |
| async function someAsyncFunc() { | |
| const user = await asyncGetUser(); | |
| const categories = await asyncGetCategories(); | |
| const mapping = await asyncMapUserWithCategory(user, categories); | |
| } | |
| // good | |
| async function someAsyncFunc() { | |
| const [user, categories] = await Promise.all([ |