Skip to content

Instantly share code, notes, and snippets.

@mebeim
mebeim / so-layout-whack-a-mole.user.js
Last active May 17, 2022 15:49
Fix new "responsive" and unusable design of StackOverflow user profiles
// ==UserScript==
// @name SO Layout Whack-A-Mole
// @description Fix new "responsive" and unusable design of StackOverflow user profiles
// @version 0.8.1
// @author Marco Bonelli
// @namespace https://mebeim.net
// @match https://stackoverflow.com/users/*/*
// @downloadURL https://gist.githubusercontent.com/mebeim/b50951a0f4bbcaac0c1aa73e6a7cdc66/raw/so-layout-whack-a-mole.user.js
// @updateURL https://gist.githubusercontent.com/mebeim/b50951a0f4bbcaac0c1aa73e6a7cdc66/raw/so-layout-whack-a-mole.user.js
// @grant none
@Oaphi
Oaphi / SOmods.tex
Last active November 12, 2021 21:09 — forked from normalhuman/SOmods.tex
[2021 update] SO moderator timeline, from a template by Najib Idrissi. See http://meta.stackoverflow.com/a/311059
\documentclass[tikz]{standalone} % last update March 2016
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\title{Moderator chart}
\begin{document}
\definecolor{rows}{rgb}{0.95,0.95,0.95}
\definecolor{myblue}{rgb}{0.1,0.3,0.9}
\definecolor{mypurple}{rgb}{0.5,0.3,0.7}
\begin{tikzpicture}[scale=0.5]
% 1 horizontal unit = 1 month, 0 = january 2010
Site Asked AskedAndClosed PctAskedAndClosed AllClosed DuplicatesClosed DuplicatesReopened OTClosed OTReopened UnclearClosed UnclearReopened TooBroadClosed TooBroadReopened OpinionBasedClosed OpinionBasedReopened
Stack Overflow 3077287 504944 16.41 521241 151348 4872.0 144942 3192.0 118557 3579.0 86831 1746.0 19563 277.0
Super User 51316 9415 18.35 9660 1189 36.0 5065 82.0 2239 93.0 677 16.0 490 4.0
Server Fault 26301 4064 15.45 4322 285 6.0 2982 15.0 769 6.0 209 1.0 77 2.0
Stack Apps 204 26 12.75 26 1 0.0 23 0.0 1 0.0 0 0.0 1 0.0
Cooking 2340 510 21.79 527 210 4.0 145 5.0 69 5.0 31 2.0 72 4.0
Home Improvement 10754 857 7.97 1016 106 4.0 457 5.0 310 6.0 79 2.0 64 1.0
Game Developers 5326 797 14.96 876 150 7.0 461 21.0 80 3.0 106 3.0 79 5.0
Gaming 6795 1848 27.2 2109 765 13.0 604 13.0 601 19.0 72 6.0 67 4.0
GIS 19727 3788 19.2 4090 591 28.0 1602 89.0 1052 90.0 616 96.0 229 9.0
@wraithgar
wraithgar / promisify.js
Created May 24, 2020 19:56
Promisify all the functions in any object with a few lines of es6
const handler = {
get: function (target, prop, receiver) {
if (typeof target[prop] !== 'function' ) {
return target[prop]
}
return function () {
return new Promise((resolve, reject) => {
Reflect.get(target, prop, receiver).apply(target, [...arguments, function (err, result) {
if (err) {
return reject(err)
@zsoumya
zsoumya / bc4trialreset.cmd
Created July 12, 2019 21:25
Beyond Compare 4 Trial Reset
reg delete "HKCU\Software\Scooter Software\Beyond Compare 4" /v CacheID /f
@fnky
fnky / ANSI.md
Last active April 24, 2024 03:46
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@rise-worlds
rise-worlds / For Mac 4.2.6 unlimited trial.md
Last active April 24, 2024 06:44 — forked from satish-setty/trial.md
Beyond Compare 4 license for Windows, Mac, Linux

for 4.2.4 or higher, 4.2.5,4.2.6,4.3.7, it's works, this is the way which makes Always in evaluation mode.

  1. open Terminal, go to the dir : cd /Applications/Beyond Compare.app/Contents/MacOS
  2. change the name BCompare to BCompare.bak: mv BCompare BCompare.bak
  3. touch a file name BCompare , and chmod a+ux BCompare : touch BCompare && chmod a+ux BCompare
  4. open BCompare with text editor, insert the script :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
@heminy
heminy / base62.cpp
Last active August 18, 2021 14:03
base62 for C++
#include <iostream>
#include <cassert>
using namespace std;
const string CODES = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
string toBase62(int value) {
string str;
@GHosaPhat
GHosaPhat / Visual Studio solution file headers
Last active May 30, 2021 20:44 — forked from JamesSkemp/Visual Studio solution file headers
Visual Studio solution file headers - 2002 through 2017
*********************************************************************************************
** Below is the header text written in the .sln files produced by Microsoft Visual Studio. **
** By default, each header is preceeded by a new line character (CRLF) in the .sln file. **
** I've identified the specific Visual Studio version used to create each header in place **
** of this blank line and indicated each as such >> VSVERSION <<. **
*********************************************************************************************
** DO NOT INCLUDE ANYTHING FROM THIS LINE IN YOUR .SLN FILE. REPLACE THIS WITH A NEW LINE **
** CHARACTER (CRLF) OR JUST DELETE IT ENTIRELY. OTHERWISE VISUAL STUDIO WILL NOT BE ABLE **
** TO READ THE .SLN FILE TO OPEN THE SOLUTION. **
*********************************************************************************************
@whoshuu
whoshuu / curlget.cpp
Created March 31, 2015 06:44
Example libcurl GET request
#include <curl/curl.h>
#include <string>
size_t writeFunction(void *ptr, size_t size, size_t nmemb, std::string* data) {
data->append((char*) ptr, size * nmemb);
return size * nmemb;
}
int main(int argc, char** argv) {
auto curl = curl_easy_init();