Skip to content

Instantly share code, notes, and snippets.

@roachhd
roachhd / README.md
Last active May 1, 2024 22:17
EMOJI cheatsheet 😛😳😗😓🙉😸🙈🙊😽💀💢💥✨💏👫👄👃👀👛👛🗼🔮🔮🎄🎅👻

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: 😄

@ryanc-me
ryanc-me / using_res_config_settings.md
Last active May 1, 2024 22:12
Using res.config.settings in Odoo
@Klerith
Klerith / vite-testing-config.md
Last active May 1, 2024 22:11
Vite + Jest + React Testing Library - Configuraciones a seguir

Instalación y configuracion de Jest + React Testing Library

En proyectos de React + Vite

  1. Instalaciones:
yarn add --dev jest babel-jest @babel/preset-env @babel/preset-react 
yarn add --dev @testing-library/react @types/jest jest-environment-jsdom
  1. Opcional: Si usamos Fetch API en el proyecto:
@diegum
diegum / bitset_iter.h
Last active May 1, 2024 22:10
Missed an iterator for C++ STL bitset? Have mine!
// bitset_iter.h v1.1.0
// Copyright 2019, Diego Dagum
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
@nathanl
nathanl / exponential_backoff.rb
Created February 25, 2015 14:41
Exponential backoff in Ruby
# Exponential backoff in Ruby
begin
make_request
rescue RequestError => e
if retries <= max_retries
retries += 1
sleep 2 ** retries
retry
else
raise "Timeout: #{e.message}"
@mattst
mattst / FocusMostRecentTabCloser.py
Last active May 1, 2024 22:05
Sublime Text 3 Plugin - Closes the focused view and focuses the next most recent view
#
# MIT License
#
# To use, assign keys to the "focus_most_recent_tab_closer" command, e.g.
# {"keys": ["ctrl+k", "ctrl+w"], "command": "focus_most_recent_tab_closer"},
#
import sublime
import sublime_plugin
import time
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active May 1, 2024 22:04
crack activate Office on mac with license file
@howyay
howyay / Setting up Postfix on Debian.md
Last active May 1, 2024 22:04
A guide to set up a Postfix + Dovecot IMAP server with complete spf, dkim and dmarc support.

An ultimate guide to Postfix + Dovecot IMAP server with complete SPF, DKIM and DMARC support and additional instructions for a multi-domain setup

In this guide, domain.com will be your root domain and mail.domain.com will be the hostname of your mail server

Draft Article: Harnessing the Power of 1 Million Tokens with Hypergraph Prompting

Introduction:

Building prompts for one million token context windows necessitates a complete reimagining of how prompts are created, signaling a pivotal transformation in artificial intelligence with the introduction of Google's Gemini 1.5. This groundbreaking advancement, featuring an extensive context window of 1 million tokens, challenges us to devise innovative approaches like hypergraph prompting. This method intricately weaves together the spatial, temporal, relational, and executional dimensions of data, creating a visual and logical fabric of connections that mirrors the interconnected spirals of a DNA strand, to navigate and effectively leverage this vast informational expanse.

Understanding the Scale of a 1 Million Token Context Window:

Imagine a context window of 1 million tokens as a vast library containing hundreds of books, thousands of pages, or hours of multimedia content, all accessible in a sing

@TravisEvashkevich
TravisEvashkevich / gist:390e100fddf1f9cd572b367446ccf547
Last active May 1, 2024 22:03
Pytoshop and Pillow PSD Creation
#imports
from PIL import Image
import numpy
import pytoshop
from pytoshop.user import nested_layers
from pytoshop import enums
from pytoshop.image_data import ImageData
#Convert Pillow image to pyto layer (not fool proof by anymeans)
def pillow_image_to_pyto_image(name, image, x, y, visible, opacity, group_id, blend_mode, metadata, layer_color, color_mode, width = 0, height = 0):