A comprehensive guide to writing JavaScript code that's friendly to JIT (Just-In-Time) compilers like V8, SpiderMonkey, and JavaScriptCore.
This file contains hidden or 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
| package com.example.myapplication; | |
| import androidx.annotation.NonNull; | |
| import androidx.appcompat.app.AppCompatActivity; | |
| import androidx.core.app.ActivityCompat; | |
| import androidx.core.content.ContextCompat; | |
| import android.Manifest; | |
| import android.content.pm.PackageManager; | |
| import android.os.Bundle; |
This file contains hidden or 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
| package com.dmitryweiner.myapplication; | |
| import androidx.appcompat.app.AppCompatActivity; | |
| import android.os.AsyncTask; | |
| import android.os.Bundle; | |
| import android.text.Editable; | |
| import android.text.TextWatcher; | |
| import android.view.View; | |
| import android.widget.Button; |
This file contains hidden or 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
| const obj = { // אוביקט | |
| a: 1, // שדה | |
| }; | |
| function sum(arr /* פרמטר */) { // פונקציה | |
| let acc// משתנה | |
| = 0; // ערך המשתנה | |
| for(let i = 0; i < arr.length; i++) { // לולאה | |
| acc += arr[i]; | |
| } |
[Solved] uConsole CM4: built-in keyboard dead, garbage USB descriptors (5/.3/,%) — root cause + software fix
TL;DR: If your uConsole keyboard doesn't work and lsusb shows the keyboard with a
garbled name like 5/.3/,% and wMaxPacketSize 0, your mainboard USB hub chip is likely
defective: bit 6 of every byte passing through its Transaction Translator is stuck at 0.
The keyboard itself is fine. There is a software workaround (below) that forces the USB
host port to Full Speed and bypasses the broken block entirely — my keyboard and trackball
work perfectly now. The proper fix is a mainboard replacement (warranty).