Skip to content

Instantly share code, notes, and snippets.

@hguerrero
hguerrero / kong.yml
Created March 13, 2025 15:47
Kong tech enablement for 3.10 demos config
_format_version: "3.0"
_transform: true
services:
- name: request_callout
url: https://echo-api.3scale.net/
routes:
- name: request_callout
hosts:
- callout.dev
@dvmn-tasks
dvmn-tasks / github_desktop_linux.md
Last active March 13, 2025 15:47
Как установить клиент Github Desktop для Linux

Как установить клиент Github Desktop для Linux

По этой ссылке вы можете найти релизы Github Desktop для Linux. Чтобы скачать один из них, кликните по нужному названию (например, GitHubDesktop-linux-amd64-1.4.2-linux1.deb).

Если вы используете Ubuntu или Debian - вам нужен установщик с расширением .deb. Скачайте его, откройте и нажмите install в появившемся окошке. Готово, программа установлена.

Как запустить

@straker
straker / README.md
Last active March 13, 2025 15:47
Basic Tetris HTML and JavaScript Game

Basic Tetris HTML and JavaScript Game

This is a basic implementation of the game Tetris, but it's missing a few things intentionally and they're left as further exploration for the reader.

Further Exploration

.
├── cmd
│   ├── cli
│   └── web
├── internal
│   ├── database
│   ├── request
│   ├── response
│   ├── templatefuncs
│   ├── validator
@Saadnajmi
Saadnajmi / Ripple.tsx
Created December 29, 2024 06:31
Ripple Effect Shader with react-native-skia
import { Canvas, Circle, Group, Rect, Shader, Skia, useClock, RuntimeShader, SkRuntimeEffect, RoundedRect } from "@shopify/react-native-skia";
import { SafeAreaView, StyleSheet } from "react-native";
import { useDerivedValue, useSharedValue } from "react-native-reanimated";
import { Gesture, GestureDetector, GestureHandlerRootView } from 'react-native-gesture-handler';
const styles = StyleSheet.create({
centered: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
@alexrudall
alexrudall / #ChatGPT Streaming.md
Last active March 13, 2025 15:42
ChatGPT streaming with ruby-openai, Rails 7, Hotwire, Turbostream, Sidekiq and Tailwind!

How to add ChatGPT streaming to your Ruby on Rails 7 app!

This guide will walk you through adding a ChatGPT-like messaging stream to your Ruby on Rails 7 app using ruby-openai, Rails 7, Hotwire, Turbostream, Sidekiq and Tailwind. All code included below!

Want more content like this, for free? Check out my free book, RailsAI!

Alt Text

@AncientJames
AncientJames / pixelmap.py
Created February 28, 2025 02:14
This is the TPC I used to pixel map the Fibrovisor ( https://www.youtube.com/watch?v=zz59e1wWyVc ). It uses rgbmatrix ( https://github.com/hzeller/rpi-rgb-led-matrix ) to light up one pixel at a time, and opencv to record the position of the brightest spot in the frame.
#!/usr/bin/env python
import time
import sys
import getpass
from rgbmatrix import RGBMatrix, RGBMatrixOptions
import cv2 as cv
options = RGBMatrixOptions()
options.hardware_mapping = 'regular'
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<!-- saved from url=(0103)https://www.whoscored.com/Matches/1553545/Live/International-European-Championship-2020-England-Germany -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="https://d2zywfiolv4f83.cloudfront.net/" rel="dns-prefetch">
<link href="https://d2zywfiolv4f83.cloudfront.net/" rel="preconnect" crossorigin="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="apple-itunes-app" content="app-id=940048063">
<!-- #17 -->
@wpoely86
wpoely86 / arpack.cpp
Created June 18, 2014 10:22
arpack usage example
double arpackDiagonalize()
{
// dimension of the matrix
int n = dim;
// number of eigenvalues to calculate
int nev = 1;
// reverse communication parameter, must be zero on first iteration
int ido = 0;
@pangyuteng
pangyuteng / README.md
Last active March 13, 2025 15:38
setting up Dell Poweredge R720 + Nvidia Tesla P40 24GB
  Dell Poweredge R720
  Nvidia Tesla P40 24GB 
  GPU pass-through via Proxmox

psu

  • ? am using only one 1100w psu, the other 1100w is not plugged in.