Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

Discover gists

@nbeirne
nbeirne /fizzbuzz.py
Last activeOctober 8, 2025 02:56
fizzbuzz.py
c=lambdaa:lambdab:a
d=lambdan:lambdaf:lambdax:f(n(f)(x))
e=lambdan:lambdaf:lambdax:n(lambdaa:lambdab:b(a(f)))(lambday:x)(lambday:y)
g=lambdaa,b:lambdaf:lambdax:a(f)(b(f)(x))
h=lambdaa,b:lambdaf:lambdax:a(b(f))(x)
i=lambdaa,b:b(e)(a)
j=lambdan:n(lambdax:lambdaa:lambdab:b)(c)
k=d(lambdaf:lambdax:x)
l=d(k)
m=d(l)
@francopig
francopig /.md
Last activeOctober 8, 2025 02:53
Asimov Code apuntes

Hola! 👨‍💻 Este archivo contiene enlaces a mis apuntes de materias universitarias y videos del canal. A medida que vaya haciendo nuevos, los voy a agregar aquí. También, si se realizan cambios en los archivos de Notion, estos se actualizan automáticamente. Así que siempre tendrán acceso a la versión más nueva. Espero que les sea de utilidad. 🤠

Apuntes universitarios 📖

@n1snt
n1snt /Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last activeOctober 8, 2025 02:46
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@MarvNC
MarvNC /get-discord-token-from-browser.md
Last activeOctober 8, 2025 02:45
How to Get Your Discord Token From the Browser Developer Console

New method (contributed byyouyoumu)

  • Open the browser console withF12 orCtrl + Shift + I.
  • Enable mobile device emulation withCtrl + Shift + M.
  • Paste the following code into the console and press Enter:
constiframe=document.createElement('iframe');
@mdasifmunshe
mdasifmunshe /Install Tailwind CSS v4 with Vite and Yarn
Last activeOctober 8, 2025 02:40
Setting up Tailwind CSS in a Vite app with Yarn
/*
The following gist is tested with react+typescript+swc.
Other Framework may differ from each other at "vite.config.ts" file.
*/
/* Terminal */
yarn create vite my-app
cd my-app
@jirihnidek
jirihnidek /flock_example.py
CreatedJune 21, 2021 13:56
File locking using fcntl.flock using Python
"""
Example of using fcntl.flock for locking file. Some code inspired by filelock module.
"""
importos
importfcntl
importtime
defacquire(lock_file):
@B1G
B1G /README.md
Last activeOctober 8, 2025 02:38
Ubuntu Speech-to-Text with nerd-dictation and Vosk

A simple setup for offline speech-to-text using nerd-dictation and Vosk on Ubuntu.

Features

  • 🎤 Offline speech recognition (no internet required)
  • 🖥️ Two modes: Terminal output and GUI typing
  • ⌨️ Keyboard shortcut support
  • 📋 Direct typing into applications
  • 🔧 Works with any Ubuntu desktop environment
@ruvnet
ruvnet /Flow.md
Last activeOctober 8, 2025 02:37
Claude Flow Playbook for Advanced Coordination, Context Engineering, and Artifact-Centric Swarms

Claude Flow treats memory as the backbone and MCP tools as the hands. You get concurrent agents that coordinate cleanly, keep context tight, and ship durable artifacts without dragging long text through prompts. It feels like an ops layer for intelligence.

The stack is simple. Claude Code as the client. Claude Flow as the MCP server. SQLite memory at .swarm/memory.db for state, events, patterns, workflow checkpoints, and consensus. Artifacts hold the big payloads. Manifests in memory link everything with ids, tags, and checksums.

Coordination is explicit. Agents write hints to a shared blackboard, gate risky steps behind consensus, and record every transition as an event. Hooks inject minimal context before tools run and persist verified outcomes after. Small bundles in, durable facts out.

Planning keeps runs stable. Use GOAP to sequence actions with clear preconditions. Use OODA to shorten loops.

Observe metrics, orient with patterns, decide through votes, act with orchestration. Topology adapts from hi

@rajkosto
rajkosto /nokia-router-cfg-tool.py
Last activeOctober 8, 2025 02:36— forked fromthedroidgeek/nokia-router-cfg-tool.py
Nokia/Alcatel-Lucent router backup configuration tool
#!/usr/bin/env python3
#
# Nokia/Alcatel-Lucent router backup configuration tool
# G2425 support added by rajkosto on 20/11/2022
# XS-2426G-B support added by rajkosto on 28/02/2023
#
# Features:
# - Unpack/repack .cfg files generated from the backup and restore functionnality
@kendallroth
kendallroth /forward_wsl2_ports.ps1
Last activeOctober 8, 2025 02:34
Forward WSL2 ports to host
# Forward WSL2 ports to host machine/platform (handles Windows Firewall)
#
# NOTE: 'iex' is a shortform for 'Invoke-Expression'
# Ports that should be forwarded to WSL2 and allowed through firewall (comma-separated)
$ports=@(8081);
# WSL IP address changes whenever WSL restarts
$wsl_ip=$(wsl hostname-I).Trim();
NewerOlder

[8]ページ先頭

©2009-2025 Movatter.jp