Skip to content

Instantly share code, notes, and snippets.

@5310
5310 / _s2-cells-to-google-maps.readme.md
Last active October 3, 2025 12:26
Adding S2 Cells to Google My Maps #article #script
@5310
5310 / xfce4-panel-auto-opaque.sh
Last active September 18, 2020 07:02 — forked from bharadwaj-raju/panel-alpha.sh
Changes XFCE panel transparency depending on whether any window on the current workspace is maximized or not #script
#!/usr/bin/env bash
#-- CONFIGURATION
transparent_alpha=0
maximized_alpha=100
interval=0.5
#--
alpha_prop_list=()
for prop in $(xfconf-query -c xfce4-panel -p /panels -l); do
@5310
5310 / gist:8093a998bd0c88e4775e7e3ce39b62c4
Last active May 19, 2019 04:02
Blockstack verification
Verifying my Blockstack ID is secured with the address 1PmXo962nyg3XiFDL6DMkdUwiGdbKHZqxs https://explorer.blockstack.org/address/1PmXo962nyg3XiFDL6DMkdUwiGdbKHZqxs
@5310
5310 / quine-mccluskey.c
Last active October 14, 2017 17:53
Quine–McCluskey Implementation - https://repl.it/M2yV/43 #article
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define NL printf("\n")
int LOG = 0;
/* math */
@5310
5310 / git-cheat-list.md
Created February 18, 2017 04:57
Git cheat list #cheatsheet

Git cheat list

  • name of the current banch and nothing else (for automation)

    git rev-parse --abbrev-ref HEAD
    
  • all commits that your branch have that are not yet in master

    git log master..<HERE_COMES_YOUR_BRANCH_NAME>
    
@5310
5310 / 0_pracprogw
Last active September 7, 2017 13:04
PracProgW Notes #article
This Gist will collect all code or random notes from out web-dev crash-course.
@5310
5310 / npm-global-packages
Last active August 13, 2018 05:01
Globally installed NPM and PNPM packages #dotfile
# /usr/lib/node_modules
# npm list -g --depth=0
/usr/lib
+-- babel-eslint@8.2.6
+-- eslint@5.3.0
+-- eslint-config-standard@11.0.0
+-- eslint-plugin-html@4.0.5
+-- eslint-plugin-import@2.13.0
+-- eslint-plugin-node@7.0.1
@5310
5310 / kinds.md
Created August 3, 2016 05:01 — forked from anonymous/kinds.txt
Kind Polymorphism in Haskell #article

So we have all these types like Int, Float, String, Map String Int, [Maybe String], etc. What do all these types have in common? Well, essentially, they're "normal" types where we can make a value for them. Just as values have types, types have "kinds". In this case, just as 4 : Int, Int : *, and just as "Hello" : String, String : *. That is to say, all these normal types (the types of plain old values) have kind *.

Now, in OCaml, you have type parametricity, but only over types of kind *. Let's give an example of a type that's not of kind *.

Map : * -> * -> *

We apply this "type constructor" (which is a kind of "type function", just like constructors are a kind of function) to the type Int : *.

Map Int : * -> *

@5310
5310 / .XCompose
Last active April 26, 2026 07:55
[Defunct] My sequences for use with the Compose key. Based off of kragen/xcompose and then overridden. Now part of Bash-It dotfiles repo. #dotfile
# ~/.XCompose
### Based on the en_US.UTF locale. ###
include "/usr/share/X11/locale/en_US.UTF-8/Compose"
### Populated with Kragen's additions. ###
@5310
5310 / iitc-plugin-ingressKML-exporter.user.js
Last active April 14, 2023 05:26 — forked from Dron007/iitc-plugin-ingressKML-exporter.user.js
IITC plugin: Ingress KML Exporter #script #userscript
// ==UserScript==
// @id iitc-plugin-CSV@pad
// @name IITC plugin: Ingress KML Exporter
// @category Keys
// @version 1.0.20160105.02
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @updateURL https://gist.github.com/Dron007/33205981b11ab4cadb31/raw/f425c125f236256998f143f385249006c0442223/iitc-plugin-ingressKML-exporter.user.js
// @downloadURL https://gist.github.com/Dron007/33205981b11ab4cadb31/raw/f425c125f236256998f143f385249006c0442223/iitc-plugin-ingressKML-exporter.user.js
// @description Exports portals currently in view for use with Google Map ( KML Format ).
// @include https://www.ingress.com/intel*