Skip to content

Instantly share code, notes, and snippets.

(module HRO-TYPE-C-31-M-13-HandSoldering (layer F.Cu) (tedit 5C4A23EB)
(fp_text reference J1 (at 0 -7.62) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value USB_C_Receptacle_USB2.0 (at 0 1.15) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_line (start -4.475 1.975) (end 4.475 1.975) (layer F.Fab) (width 0.15))
(fp_line (start -4.475 1.975) (end -4.475 -4.55) (layer F.Fab) (width 0.15))
(fp_line (start 4.475 1.975) (end 4.475 -4.55) (layer F.Fab) (width 0.15))
@i5ar
i5ar / index.html
Created December 25, 2018 07:21 — forked from tmcw/index.html
d3.keybinding
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font:12px/20px 'Helvetica';
}
textarea, input {
width:100%;
height:20px;
margin:0;
@i5ar
i5ar / main.py
Last active December 22, 2018 13:53
Add an empty file to the Registry
import winreg
import ctypes
import os
keys = [
r'.dwg\ShellNew',
r'.3dm\ShellNew',
r'.blend\ShellNew']
@i5ar
i5ar / main.py
Last active November 25, 2018 21:37
Get data from DWG
import sys
import itertools
import pdb
def find_sentinel(file, sentinel):
counter = 0
pattern = []
for i in itertools.count():
buffer = file.read(1)
@i5ar
i5ar / recover.c
Last active January 28, 2019 04:43 — forked from jcoryalvernaz/recover
Recover card
#include <stdio.h>
#include <stdbool.h>
int main(int argc, char *argv[])
{
// Make sure that I have one command line argument
if (argc != 2)
{
fprintf(stderr, "Usage: ./recover image\n");
@i5ar
i5ar / custom_xkb.desktop
Created July 9, 2018 04:30 — forked from edliaw/custom_xkb.desktop
Custom keyboard layout for GNOME
[Desktop Entry]
Name=Keyboard Layout
Type=Application
Exec=sh -c "sleep 10 && [ -f \\$HOME/.Xkeymap ] && xkbcomp \\$HOME/.Xkeymap \\$DISPLAY 2> /dev/null"
Terminal=false
NoDisplay=true
X-GNOME-Autostart-enabled=true
@i5ar
i5ar / loop.ino
Last active July 7, 2018 16:32
Pro Micro RGB led loop
/* Pro Micro loop RGB led common cathode */
//int yellowPin = 10;
//int brightness = 8;
//int fadeAmount = 8;
int redPin = 3;
int greenPin = 5;
int bluePin = 6;
@i5ar
i5ar / README.md
Last active March 28, 2021 17:36
Parrot 60

Parrot Mechanical Keyboard

Preamble

Parrot 60 is a mechanical keyboard based on the Parrot physical layout and the Parrot function layer.
Parrot 60 ANSI is a mechanical keyboard based on the ANSI physical layout and the Parrot function layer.

Every reputable pirate has a Parrot...

Layers

@i5ar
i5ar / icon.png
Last active March 17, 2018 16:07
Icon proposal for VS Code Mithril Emmet extension
icon.png
@i5ar
i5ar / README.md
Created February 27, 2018 15:30
Django Graphene example

Run Postgres database in a container

Map a different container port to connect:

docker run -d -p 5433:5432 -e POSTGRES_PASSWORD=postgres

Eventually stop database in localhost to avoid collision:

sudo su postgres

pg_ctl -D /var/lib/pgsql/data stop