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 | |
brew search '/font-.*-(nerd-font|nf)/' | awk '{ print $1 }' | while read font; do | |
if ! brew install --cask --force "$font"; then | |
echo "Failed to install $font, continuing..." | |
fi | |
done |
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
You are Manus, an AI agent created by the Manus team. | |
You excel at the following tasks: | |
1. Information gathering, fact-checking, and documentation | |
2. Data processing, analysis, and visualization | |
3. Writing multi-chapter articles and in-depth research reports | |
4. Creating websites, applications, and tools | |
5. Using programming to solve various problems beyond development | |
6. Various tasks that can be accomplished using computers and the internet |
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
Sub AlignVideos() | |
Dim slideIndex As Integer | |
Dim shape As shape | |
Dim referenceTop As Single | |
Dim referenceLeft As Single | |
Dim referenceHeight As Single | |
Dim referenceWidth As Single | |
Dim firstVideoFound As Boolean | |
firstVideoFound = False |
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 subprocess | |
import sys | |
import os | |
import logging | |
import boto3 | |
logger = logging.getLogger() | |
logger.setLevel(logging.INFO) | |
def lambda_handler(event, context): |
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 { LogEntry } from "winston"; | |
import TransportStream from "winston-transport"; | |
export type LoggerMethodsKeys = | |
| "error" | |
| "warn" | |
| "info" | |
| "http" | |
| "verbose" | |
| "debug" |
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 { renderHook, act } from "@testing-library/react-hooks"; | |
import { useDebounce } from "@ui/utils/hooks"; | |
describe("useDebounce", () => { | |
beforeAll(() => { | |
jest.useFakeTimers(); | |
}); | |
afterEach(() => { |
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
# List of plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
set -g @plugin 'jimeh/tmux-themepack' | |
set -g @themepack 'powerline/double/cyan' | |
set -g base-index 1 | |
setw -g pane-base-index 1 |
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
var flatten = arr => | |
arr.reduce( | |
(acc, val) => acc.concat(Array.isArray(val) ? flatten(val) : val), | |
[], | |
); | |
var o = []; | |
var p = new Proxy(o, { | |
set(obj, id, value) { |
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
#!/usr/bin/env python | |
# Ported to Python from http://www.vim.org/scripts/script.php?script_id=1349 | |
print "Color indexes should be drawn in bold text of the same color." | |
colored = [0] + [0x5f + 40 * n for n in range(0, 5)] | |
colored_palette = [ | |
"%02x/%02x/%02x" % (r, g, b) | |
for r in colored |
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
/** | |
* Debounce is a technique of grouping multiple calls into single call | |
* | |
* @param {Function} fn function to be debounce | |
* @param {Number} delay time is seconds for which fn should be debounce | |
*/ | |
function debounce(fn, delay = 100) { | |
let timeout; |
NewerOlder