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
| (() => { | |
| if (window.stopExpand) { console.log("[expand] already running — call stopExpand() first"); return; } | |
| const SELECTOR = '[aria-expanded="false"]'; | |
| const MENUISH = '[aria-haspopup],[role="combobox"],[role="menu"],[role="menuitem"],[role="listbox"],[role="dialog"],nav,header'; | |
| const root = () => document.querySelector('[data-testid="conversation"], [data-testid="chat-messages"], main [role="log"], main') || document.body; | |
| const isChip = (el) => !el.closest(MENUISH) && !el.matches(MENUISH) && root().contains(el); | |
| const seen = new WeakSet(); | |
| let count = 0; | |
| const sweep = () => { | |
| for (const el of root().querySelectorAll(SELECTOR)) { |
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
| import requests | |
| import feedparser | |
| import sqlite3 | |
| import os | |
| import logging | |
| import dotenv | |
| import time | |
| dotenv.load_dotenv() | |
| logging.basicConfig(level=logging.INFO) |
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
| { | |
| "platform": "iOS", | |
| "platform_version": "15.5", | |
| "model": "iPhone14,3", | |
| "device_type": "Physical", | |
| "app_version": "2.0.1", | |
| "build_number": "1653370657", | |
| "en_version": "2", | |
| "daily_summaries": [ | |
| { |
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 http = require('http'); | |
| const QUESTIONS = [ | |
| 'Have you found happiness?', | |
| 'What makes you happy?', | |
| 'What would make today better?', | |
| 'Are you drinking enough water?', | |
| 'Have you eaten two pieces of fruit today?', | |
| 'Have you eaten three pieces of vegetables today?', | |
| 'Are you reading this?' |
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
| #!/bin/bash | |
| tmp_path="/tmp/wordpress-cleaner" | |
| echo "Wordpress Ultra Cleaner" | |
| echo "--------" | |
| echo "Fetching fresh copy of Wordpress" | |
| curl -OL wordpress.org/latest.tar.gz |
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
| _get_gcp_accounts() { | |
| res=$(gcloud auth list --format="value(account)") | |
| for i in $res; do | |
| COMPREPLY+=("$i") | |
| done | |
| } | |
| _get_gcp_projects() { |
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
| !function () { | |
| console.log("foo"); | |
| }(); | |
| (function() { | |
| console.log("foo"); | |
| })(); |
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
| #!/bin/bash | |
| modprobe -r psmouse && modprobe psmouse |
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
| [Unit] | |
| Description=Restart trackpad after suspend | |
| After=basic.target suspend.target hibernate.target | |
| [Service] | |
| User=root | |
| Environment=DISPLAY=:0 | |
| ExecStart=/usr/bin/restart-trackpad | |
| [Install] |
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 Spark = ({ | |
| height = 20, | |
| width = 140, | |
| series = [], | |
| color = "#4CAF50", | |
| backgroundColor = "#37474F", | |
| radius = 3, | |
| padding = [4, 4] | |
| }) => { | |
| const max = series.reduce((p, c) => { |
NewerOlder