Skip to content

Instantly share code, notes, and snippets.

View jt3k's full-sized avatar
🐷
Summer is coming!

Andrey Gurtovoy jt3k

🐷
Summer is coming!
View GitHub Profile
@jt3k
jt3k / keybr-com.js
Last active June 29, 2020 15:59
Voice over of the next word at https://www.keybr.com/
// This snippet adds voice-over to the next word in the event of a spacebar or erroneous press
// To sound after an error, you will need to enable "Settings → Miscellaneous → Forgive errors"
// How to use ?
// 1. Open https://www.keybr.com/
// 2. Press Ctrl+Shift+I (or F12) to open devTools
// 3. Paste this code into the console
// 4. Close the devTools
// 5. Enjoy
// create a bookmark and use this code as the URL, you can now toggle the css on/off
// thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3
javascript: (function() {
var styleEl = document.getElementById('css-layout-hack');
if (styleEl) {
styleEl.remove();
return;
}
styleEl = document.createElement('style');
styleEl.id = 'css-layout-hack';

Принципы разработки Амплифера

Тут перечислены не законы, последние слово всегда за здравым смыслом. Тут перечислены лишь направление, куда надо стремиться. Принципы, которые должны помочь, когда не знаешь, что выбрать.

Ценности

  1. Пользователь. Если что-то сильно мешает UX или есть критическая ошибка, то в первую очередь мы спасаем пользователей. Для этого иногда надо взять ответственность на себя, переубедить толпу, написать плохой код.

Raspberry Pi Zero WH: My Sad Experience With It and How I Burned It Probably by Overclocking

Article finished on: 28.06.2019.
VERDICT: Wi-Fi barely works and connecting it via ethernet/usb to your router is another mess. I think I damaged wifi while overclocking it. Lesson learned: don't overclock RPI0.

RPi Zero WH is a small 32-bit 1GHz arm-based computer with 512mb RAM, wifi, bluetooth, mini HDMI and 2 Micro USB ports developed in the UK.

RPi Zero In a Socket Looks Like Totem

Keyboard doesn't work, see known issues below.

@MaxGraey
MaxGraey / Wasm-FAQ-2019.md
Last active January 19, 2024 22:26
WebAssembly FAQ для телеграм сообщества WebAssembly_ru

Введение

Данный FAQ был специально создан для телеграм сообщества https://t.me/WebAssembly_ru.

Он базируется на статье от Andre Weissflog, но так же содержит множество моих дополнений и мыслей, которые могут быть уже не слишком актуальны на момент прочтения. Прошу это учитывать.

0. Какие цели у WebAssembly?

@p0rsche
p0rsche / gist:bf9f43c4716cff3f1e6ad3e587e829aa
Created January 9, 2018 21:57
getTransformToElement polyfill
SVGElement.prototype.getTransformToElement = SVGElement.prototype.getTransformToElement || function(toElement) {
return toElement.getScreenCTM().inverse().multiply(this.getScreenCTM());
};
@thuijssoon
thuijssoon / disableBodyScroll.js
Last active November 2, 2023 18:55
iOS disable body scroll
/**
* Prevent body scroll and overscroll.
* Tested on mac, iOS chrome / Safari, Android Chrome.
*
* Based on: https://benfrain.com/preventing-body-scroll-for-modals-in-ios/
* https://stackoverflow.com/a/41601290
*
* Use in combination with:
* html, body {overflow: hidden;}
*
@gdurastanti
gdurastanti / parallels-reset.sh
Created August 9, 2017 14:00
Reset Parallels' trial
#!/bin/sh
# Reset Parallels Desktop's trial and generate a casual email address to register a new user
rm /private/var/root/Library/Preferences/com.parallels.desktop.plist /Library/Preferences/Parallels/licenses.xml
jot -w pdu%d@gmail.com -r 1
@developit
developit / purecomponent.js
Created April 25, 2017 11:43
PureComponent for preact
import { Component } from 'preact';
export default class PureComponent extends Component {
shouldComponentUpdate(props, state) {
return !(shallowEqual(props, this.props) && shallowEqual(state, this.state));
}
}
function shallowEqual(a, b) {
for (let key in a) if (a[key]!==b[key]) return false;
@dreampiggy
dreampiggy / mov2webp.sh
Created March 6, 2017 05:31
ffmpeg MOV to Animated WebP
ffmpeg -i input.mov -vcodec libwebp -lossless 1 -q:60 -preset default -loop 0 -an -vsync 0 output.webp