Skip to content

Instantly share code, notes, and snippets.

@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
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
@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 October 3, 2022 18:38
[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*
@5310
5310 / ._tasker_ingress-mode.md
Last active September 7, 2017 13:04
Tasker Profiles and Tasks for 'Ingress Mode' #script

These are the tasks and profiles I use to optimize my Ingress Pokémon Go sessions.

Root required. Use at your own risk!

  • Ingress_Mode_Quick_Setting.tsk.xml adds shortcuts to my (CyanogenMod) dropdown to enable and disable the mode and also launch the apps.
  • Enable_Ingress_Mode.tsk.xml applies up the actual settings as well as the profile with further optimizations.
  • Disable_Ingress_Mode.tsk.xml reverts these changes.
  • Running_Ingress_or_Pokémon_Go.prf.xml monitors if the games are running and optimizes based on it.
  • Enter_Ingress_Mode.tsk.xml keeps screen awake and power usage and background data minimized while the games are running.
  • Exit_Ingress_Mode.tsk.xml temporarily reverts these changes when the apps are not in foreground.
@5310
5310 / keybase.md
Created March 17, 2016 07:49
#archive