Skip to content

Instantly share code, notes, and snippets.

View kirtangajjar's full-sized avatar
😎
Crunching code

Kirtan Gajjar kirtangajjar

😎
Crunching code
View GitHub Profile
@danish17
danish17 / gist:c5c5fb6eb99d452c339e393ed637640b
Last active August 31, 2024 09:57
LogiOps MX Master 3 Configuration
// Logiops (Linux driver) configuration for Logitech MX Master 3.
// Includes gestures, smartshift, DPI.
// Tested on logid v0.2.3 - GNOME 3.38.4 on Zorin OS 16 Pro
// What's working:
// 1. Window snapping using Gesture button (Thumb)
// 2. Forward Back Buttons
// 3. Top button (Ratchet-Free wheel)
// What's not working:
// 1. Thumb scroll (H-scroll)
// 2. Scroll button
@tomjn
tomjn / tomjn_http2_push.php
Created January 25, 2019 23:43
A naive and incomplete, but functional approach to http2 push
<?php
/**
* Plugin name: HTTP2 Push scripts
* Author: Tom J Nowell
*/
function tomjn_get_dep_url( /*\WP_Dependency*/ $dep ) {
global $wp_version;
$relative = str_replace( site_url(), '', $dep->src );
$ver = $dep->ver;
@korakot
korakot / record.py
Last active August 23, 2024 08:45
Record audio in Colab using getUserMedia({ audio: true })
# all imports
from IPython.display import Javascript
from google.colab import output
from base64 import b64decode
from io import BytesIO
!pip -q install pydub
from pydub import AudioSegment
RECORD = """
const sleep = time => new Promise(resolve => setTimeout(resolve, time))
@janlelis
janlelis / emoji-variations.md
Last active March 5, 2019 11:01
Emoji Variations and Names

See character.construction/emoji-vs-text for more up-to-date listings.

Emoji Variations and Names (Emoji 11.0 / Unicode 11.0.0)

Text (U+FE0E) Default Emoji (U+FE0F) Name
😀︎ 😀 😀️ GRINNING FACE
😁︎ 😁 😁️ GRINNING FACE WITH SMILING EYES
😂︎ 😂 😂️ FACE WITH TEARS OF JOY
🤣︎ 🤣 🤣️ ROLLING ON THE FLOOR LAUGHING
@VictorLaskin
VictorLaskin / fn_universal.cpp
Last active July 7, 2021 09:26
Templates as first-class citizens in C++11
// Templates as first-class citizens in C++11
// Example code from http://vitiy.info/templates-as-first-class-citizens-in-cpp11/
// Written by Victor Laskin (victor.laskin@gmail.com)
#include <iostream>
#include <algorithm>
#include <functional>
#include <vector>
#include <tuple>
@VictorLaskin
VictorLaskin / listcompr.cpp
Created February 16, 2015 18:36
C++11: Implementation of list comprehension in SQL-like form
// List comprehension in C++11 in form of SQL-like syntax
// Example code from http://vitiy.info/cpp11-writing-list-comprehension-in-form-of-sql/
// Written by Victor Laskin (victor.laskin@gmail.com)
#include <iostream>
#include <functional>
#include <vector>
#include <future>
#include <algorithm>
using namespace std;
@Tehnix
Tehnix / brew-up-system.sh
Last active December 7, 2023 18:55
Set up OS X with brew
#!/bin/sh
binaries=(
awscli
trash
tree
git
mosh
tmux
screen
zsh
@staltz
staltz / introrx.md
Last active November 4, 2024 10:23
The introduction to Reactive Programming you've been missing