Skip to content

Instantly share code, notes, and snippets.

View Stas-Buzunko's full-sized avatar

Stas Stas-Buzunko

View GitHub Profile
@jackblk
jackblk / LogitechF310_Macbook.MD
Created April 13, 2021 16:07
Getting Logitech F310 to work with Macbook USB-C port

Connect & use Logitech F310 with Macbook

Since my Macbook Pro only has USB-C port, I used an USB-A to USB-C adapter to connect my F310 to it, but it does not work (pressing MODE button does not turn on the LED).

How to

To make it work:

  • Disconnect F310 from Mac
  • On F310: switch X-input to D-input
  • Hold Logitech button (in the middle)
  • Connect F310 to Mac via adapter, now you can release the Logitech button.
@Stas-Buzunko
Stas-Buzunko / index.js
Last active December 13, 2022 23:55
Script for Board Game Arena 6 nimmt! game
let array = Array(104).fill(null).map((x,y) => y + 1)
let playerHandCardsNumber = 10
setInterval(() => {
const table = document.getElementById('cards_on_table')
for (let i = 0; i < table.children.length; i++) {
const el = table.children[i]
const numberOnCard = +el.getAttribute('id').replace('card_', '')
if (array.includes(numberOnCard)) {
@giacomocerquone
giacomocerquone / adbCommands.txt
Last active April 17, 2024 20:54
Useful adb logcat commands when working with react native
// useful to debug js code errors
adb logcat "*:S" ReactNative:V ReactNativeJS:V
// useful to debug native errors (when the app won't even start)
adb logcat "*:E"
@jpavley
jpavley / ios_fonts.m
Last active January 5, 2023 22:47
Iterate through all the fonts families and fonts in an iOS device and print their names to the console.
NSArray *fontFamilyNames = [UIFont familyNames];
for (NSString *familyName in fontFamilyNames) {
NSLog(@"Font Family Name = %@", familyName);
NSArray *names = [UIFont fontNamesForFamilyName:familyName];
NSLog(@"Font Names = %@", names);
}