- preferences
- key repeat rate to max, delay to shortest
- Set key repeat rate faster than preferences pane allows:
defaults write -g KeyRepeat -int 1
- disable natural scrolling
- caps lock -> esc
- scroll speed to max
- disable notifications from 4:00AM to 3:59AM (there's no good way to kill them entirely)
- minimize and autohide the dock
- key repeat rate to max, delay to shortest
- increase resolution
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# don't allow the commit if it contains any files that are not correctly | |
# formatted by prettier (https://github.com/jlongster/prettier/). | |
# Directly inspired by the gofmt precommit hook: | |
# https://golang.org/misc/git/pre-commit | |
# | |
# This code is BSD licensed. | |
# | |
# To use, store as .git/hooks/pre-commit inside your repository and make sure | |
# it has execute permissions. It will not handle files with spaces in their |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In [9]: df = pandas.DataFrame(np.random.randint(100, size=(10,1)), columns=['y']) | |
In [10]: df | |
Out[10]: | |
y | |
0 13 | |
1 3 | |
2 3 | |
3 29 | |
4 24 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Bezier=function(t){function n(i){if(r[i])return r[i].exports;var e=r[i]={exports:{},id:i,loaded:!1};return t[i].call(e.exports,e,e.exports,n),e.loaded=!0,e.exports}var r={};return n.m=t,n.c=r,n.p="",n(0)}([function(t,n,r){"use strict";t.exports=r(1)},function(t,n,r){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};!function(){function n(t,n,r,i,e){"undefined"==typeof e&&(e=.5);var o=h.projectionratio(e,t),s=1-o,u={x:o*n.x+s*i.x,y:o*n.y+s*i.y},a=h.abcratio(e,t),f={x:r.x+(r.x-u.x)/a,y:r.y+(r.y-u.y)/a};return{A:f,B:r,C:u}}var e=Math.abs,o=Math.min,s=Math.max,u=Math.acos,a=Math.sqrt,f=Math.PI,c={x:0,y:0,z:0},h=r(2),x=r(3),y=function(t){var n=t&&t.forEach?t:[].slice.call(arguments),r=!1;if("object"===i(n[0])){r=n.length;var o=[];n.forEach(function(t){["x","y","z"].forEach(function(n){"undefined"!=typeof t[n]&&o.push(t[n])})}),n=o}var s=!1,u=n.length;if(r){if(r>4) |
I hereby claim:
- I am llimllib on github.
- I am llimllib (https://keybase.io/llimllib) on keybase.
- I have a public key whose fingerprint is D56E C5FA 913B 4AF6 EDB1 991F 2563 997E 879D 78DD
To claim this, I am signing this object:
playing with tree zoom
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "start limbo bot" | |
start on net-device-up | |
respawn | |
respawn limit 3 30 | |
env SLACK_TOKEN=<slack_token> | |
env LIMBO_LOGLEVEL=INFO | |
env GITHUB_USER=<github_user> |
My first experiment with Mapbox GL is a mock up of what astronauts in the ISS could see out of their window.
This map let's you fly over the latitude parallel of your choice. You can change
- the baselayer (hybrid, streest of satellite)
- the parallel you are flying over (pan left or right)
- the zoom (+ and - in upper right corner)
- rotation of view (the compass in the upper right corner)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------- starters ------ | |
Hazard: 927 | |
Agüero: 924 | |
Kane: 900 | |
Sánchez: 651 | |
van Aanholt: 641 | |
Terry: 479 | |
Cazorla: 465 | |
Silva: 428 | |
Di María: 421 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image | |
from glob import glob | |
import os | |
# pip install imagehash | |
import imagehash | |
images = {} | |
for f in glob("images/*"): |