Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

Discover gists

/**************************************************************************/
/*!
@brief Custom lookup tables for full screen updates. Public domain (?) from Waveshare.
@note Video explainer: https://www.youtube.com/watch?v=MsbiO8EAsGw and more info:
https://benkrasnow.blogspot.com/2017/10/fast-partial-refresh-on-42-e-paper.html
@warning YOU CAN PERMANENELY DAMAGE YOUR DISPLAY BY ABUSING THESE LOOKUP TABLES!
Seriously, the controller is incredibly programmable and you can force all
kinds of voltages and timings onto the screen that it wasn't meant to deal
with. TWEAK AT YOUR OWN RISK!
*/
@stonehippo
stonehippo /using_circuitpython_native_used_for_serial_data.md
Last activeOctober 13, 2025 14:59
A note to self about using the CircuitPython native USB for serial data with usb_cdc

I was trying to get some CP code to talk to Processing over a serial port interface. Of course, the CP REPL is normally available on whatever serial port the board mounts by default. This is a little complicated, because although you can use something likeprint from the REPL (orcode.py) to print a value to the console,sys.stdin andsys.stdout are text-based streams, which may not be what you want. And you'll get REPL noise to boot. Not ideal.

This is whereusb_cdc comes in. It's a handy library for managing the USB CDC (serial) on most CircuitPython boards. First,usb_cdc can be used to control how many serial ports CP will provide at startup. You can modifyboot.py to make this work:

import usb_cdcusb_cdc.enable(console=True, data=False)
"use client";
// Import necessary utilities and components.
// tailwind-merge is used to intelligently merge Tailwind CSS classes, preventing conflicts.
importReactfrom"react";
import{twMerge}from"tailwind-merge";
// useState is a React Hook for managing state within the component.
import{useState}from"react";
// Custom icon components for the sidebar.
@pesterhazy
pesterhazy /geepaw-incrementalism.md
Last activeOctober 13, 2025 14:57
MMMSS: GeePaw Hill on Incrementalism in Software Development
csrutil disable
sudo nvram boot-args="intcoproc_unrestricted=1 kext-dev-mode=1 amfi_allow_any_signature=1 amfi_unrestrict_task_for_pid=1 PE_i_can_has_debugger=1 cs_enforcement_disable=1 amfi_get_out_of_my_way=1 amfi=0xff cs_debug=1 ipc_control_port_options=0"
sudo spctl --global-disable
sudo defaults write /Library/Preferences/com.apple.security GKAutoRearm -bool NO
sudo defaults write /Library/Preferences/com.apple.security.coderequirements Entitlements -string always
sudo defaults write /Library/Preferences/com.apple.security.coderequirements AllowUnsafeDynamicLinking -bool YES
sudo defaults write /Library/Preferences/com.apple.security.libraryvalidation.plist DisableLibraryValidation -bool YES
defaults write com.apple.loginwindow DisableScreenLockImmediate -bool yes
@iamwildtuna
iamwildtuna /gist:7772b7c84a11bf6e1385f23096a73a15
Last activeOctober 13, 2025 14:53
VPN IP Addresses (IP адреса ChatGPT, Copilot, Meta, Facebook, Instagram, YouTube, Medium, X ex. Twitter, Discord)
Meta(Instagram,Facebook)
//Узлы
157.240.253.174,157.240.253.172,157.240.253.167,157.240.253.63,157.240.253.32
157.240.252.174,157.240.252.172,157.240.252.167,157.240.252.63,157.240.252.38
57.144.112.34,57.144.110.1,157.240.205.174,87.245.223.97
//Подсети
213.102.128.0/24
204.15.20.0/22
199.201.0.0/16
@joelonsql
joelonsql /PostgreSQL-EXTENSIONs.md
Last activeOctober 13, 2025 14:52
1000+ PostgreSQL EXTENSIONs

This is a list of URLs to PostgreSQL EXTENSION repos,listed in alphabetical order of parent repo,with active forks listed under each parent.

⭐️ >= 10 stars
⭐️⭐️ >= 100 stars
⭐️⭐️⭐️ >= 1000 stars
Numbers of stars might not be up-to-date.

@Yamonov
Yamonov /CMYKto100GCRConverter_ai.jsx
Last activeOctober 13, 2025 14:51
IllustratorのCMYK値を、CMYのうち2色+Kに置き換えるスクリプト
/*
<javascriptresource>
<name>CMYK値を整理</name>
<category>Yamo/CMYKGCR100</category>
</javascriptresource>
*/
// Ver 1.2 (2025/10/09)
// グローバルスウォッチに対応(特色は維持)
NewerOlder

[8]ページ先頭

©2009-2025 Movatter.jp