- Settings -> Keyboard -> Input Sources:
hope you find this useful, feel free to comment asking for shit
"use client"; | |
import { AddPersonModal, AddPersonModalHandle } from "@/app/form"; | |
import { useRef } from "react"; | |
export function AddBtn() { | |
const ref = useRef<AddPersonModalHandle>(null); | |
return ( | |
<> |
#include <Arduino.h> | |
#include <Wire.h> | |
#include <Adafruit_Sensor.h> | |
#include <Adafruit_ADXL345_U.h> | |
#include <Adafruit_NeoPixel.h> | |
#include <math.h> | |
// adaFruit led parmeters | |
#define PIN 0 |
Host github.com:COMPANY/* | |
AddKeysToAgent yes | |
UseKeychain yes | |
IdentityFile ~/.ssh/id_work | |
Host github.com:PERSONAL/* | |
AddKeysToAgent yes | |
UseKeychain yes | |
IdentityFile ~/.ssh/id_personal |
// https://gist.github.com/wildeyes/987fbb65c5135812cdeb91a1efea3653 | |
// So, imagine you have to add 200 people to a group chat for work. | |
// how do you do it? | |
// 1. add them all via google contacts, add to their names some identifier, like GROUP | |
// 2. open whatsapp web, wait for contacts to sync (this could take some time) | |
// 3. click menu -> new group | |
// 4. open devtools (f12), go to console tab | |
// 5. copy the following script to the console and change what's inside the quotes on the following line to the identifier you chose (like GROUP) and press enter | |
whatsappSelectAllContacts('YOUR STRING HERE') |
Guys, I know we're programmers, but I feel as if the community doesn't get it. Not just code needs to be free - But UX, as well. We need to allow programmers to innovate different UIs on top of our applications. Packaging UI + Data + Platform is awesome, but it's unsustainble. We need to think bigger.
We need to separate user's data from the platform (web3-esque, but it's too complicated for me). Let people store the data wherever they want, so that they can move freely between apps. Remember email? now we're stuck with whatsapp. Whatsapp had VC funding, open source doesn't. The only way to survive is to allow interoperability. We need to separate UI from platform. Have some stock UI, and let users and power users extend the UI. It's very hard to do good UI + UX as open source. We need to first and foremost allow a community to form around our open source, so that people create their own solutions on top of ours.
I have so many q
// open ril_export.html, run this in dev tools, paste wherever you need | |
const _ = e => $$(e).map(ele => [ele.text, ele.href, ele.attributes.time_added.value, ...ele.attributes.tags.value.split(',')]); | |
copy({ unread: _('ul:first-of-type a'), read: _('ul:last-of-type a') }) |
import { onSnapshot, applySnapshot, getSnapshot } from 'mobx-state-tree'; | |
interface PersistenceWhitelist<T> { | |
key: string; | |
getPersistence: (T) => Partial<T>; | |
} | |
/** | |
* Rehydrate a store from localstorage. Set up an event to persist store data to localstorage. | |
* @param key localstorage key |
// https://www.thetopsites.net/article/50469550.shtml | |
Object.keys(window).forEach(key => { | |
if (/^on/.test(key)) { | |
window.addEventListener(key.slice(2), event => { | |
console.log(event); | |
}); | |
} | |
}); |
javascript:window.open(`https://openbase.io/js/${document.documentElement.innerText.match(/(?:(npm install)|(npm i)|(yarn add)) ([\w\-]+)/).slice(-1)}`) |