Discover gists · GitHub
Skip to content

Instantly share code, notes, and snippets.

@Isa3v
Isa3v / script.js
Created November 17, 2020 09:43
Умный фильтр битрикс ajax обновление без параметра "AJAX_MODE=Y"
// В script.js компонента bitrix:catalog.smart.filter
// Вместо
//if (modef.style.display === 'none')
//{
// modef.style.display = 'inline-block';
//}
// Пишем. Это ajax запрос к сформированной ссылке. А дальше вытягиваем, что нужно
$.get(
BX.util.htmlspecialcharsback(result.FILTER_AJAX_URL),
@mergesort
mergesort / run_in_xcode.scpt
Last active November 28, 2024 09:04
Cursor -> Xcode -> Cursor AppleScript
tell application "System Events"
if (name of processes) contains "Xcode" then
-- Check if Xcode is already the active/focused application
if (name of first application process whose frontmost is true) is not "Xcode" then
tell application "Xcode 16.2 (Beta)"
activate
delay 0.25 -- Wait for Xcode to become active
end tell
end if
@bryanbraun
bryanbraun / git-branching-diagram.md
Last active November 28, 2024 08:58
Example Git Branching Diagram

Example Git Branching Diagram

You can use this diagram as a template to create your own git branching diagrams. Here's how:

  1. Create a new diagram with diagrams.net (formerly draw.io)
  2. Go to File > Open From > URL
  3. Insert this url (it points to the xml data below): https://gist.githubusercontent.com/bryanbraun/8c93e154a93a08794291df1fcdce6918/raw/bf563eb36c3623bb9e7e1faae349c5da802f9fed/template-data.xml
  4. Customize as needed for your team.

@devomman
devomman / activate-office-windows-mac.md
Last active November 28, 2024 08:58
Microsoft Office Active or Windows Activation | Microsoft Office Activate for Mac - Free Guide

✅ Activate Microsoft Office or Windows

💠 Windows User:

  1. Download OS & Office Link: https://files.rg-adguard.net/version/5f2ad9c6-e111-76e8-06d1-56d44c136bae
  2. Open PowerShell (Not CMD). To do that, right-click on the Windows start menu and select PowerShell or Terminal.
  3. Copy and paste the code below and press enter
irm https://get.activated.win | iex
  1. You will see the activation options.
@mietzen
mietzen / macos-bitwarden-cli-with-touch-id.md
Last active November 28, 2024 08:57
How to use use Bitwarden CLI with macOS Touch ID

How to use Bitwarden CLI with macOS Touch ID

If you want to use Bitwarden CLI for ssh have a look at: How to use use Bitwarden CLI for SSH-Keys in macOS

Wirtten and tested on macOS Ventura

Configure Touch ID for the sudo command

To allow Touch ID on your Mac to authenticate you for sudo access instead of a password you need to do the following.

@x0nu11byt3
x0nu11byt3 / elf_format_cheatsheet.md
Created February 27, 2021 05:26
ELF Format Cheatsheet

ELF Format Cheatsheet

Introduction

Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.

ELF

Compilation

@ABIDULLAH786
ABIDULLAH786 / Button.jsx
Last active November 28, 2024 08:47
reuable button component
import { lighten } from 'polished';
import styled, { keyframes } from 'styled-components';
import Loader from '../Loader';
const StyledButton = styled.button`
border: none;
cursor: pointer;
display: flex;
flex-wrap: nowrap;
align-items: center;
@ChristopherA
ChristopherA / brew-bundle-brewfile-tips.md
Last active November 28, 2024 08:46
Brew Bundle Brewfile Tips

Brew Bundle Brewfile Tips

Copyright & License

Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.

Sponsor

If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.

@intaxwashere
intaxwashere / customthunkexample.md
Last active November 28, 2024 08:42
Custom Thunks Unreal Engine TL;DR

Custom thunks TL;DR

This smol post assumes you worked on a custom thunk implementation before but no idea how it works, why you're using cursed macros from 1990s etc. If you don't have any programming experience or relatively new to Unreal world, it's likely you might not understand anything from this post, not because concepts are too difficult to grasp, but rather because this post is written for the people who has an understanding of how Unreal works since a while and want to expand their knowledge of custom thunks implementation.

Part 1:

  • A thunk is a function that you can save and call later, so if you had an array of TFunction<void()>s, you would have an array of custom thunks that you can bind/unbind new function pointers to existing TFunctions.
  • Custom thunks of Blueprints are the same, they're a fancy array/list of function pointers. Imagine for each node you placed to graph, Blueprints have a place for that node in it's list of custom thunks. For example the + node in Blueprints that
@VictorTaelin
VictorTaelin / truly_optimal_evaluation_with_unordered_superpositions.md
Last active November 28, 2024 08:42
Truly Optimal Evaluation with Unordered Superpositions

Truly Optimal Evaluation with Unordered Superpositions

In this post, I'll address two subjects:

  1. How to solve HVM's quadratic slowdown compared to GHC in some cases

  2. Why that is relevant to logic programming, unification, and program search

Optimal Evaluators aren't Optimal