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
/* usbreset -- send a USB port reset to a USB device | |
* | |
* Compile using: gcc -o usbreset usbreset.c | |
* | |
* */ | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <errno.h> |
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/bash | |
# | |
# Remap section sign key (§) to ESC | |
# | |
# 0x700000064 - section sign (§) key below ESC | |
# 0x700000029 - ESC | |
# | |
# https://developer.apple.com/library/content/technotes/tn2450/_index.html | |
# |
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
.rotate(@val) { | |
-moz-transform: rotate(@val); /* FF3.5+ */ | |
-o-transform: rotate(@val); /* Opera 10.5 */ | |
-webkit-transform: rotate(@val); /* Saf3.1+, Chrome */ | |
-ms-transform: rotate(@val); /* IE9 */ | |
transform: rotate(@val); | |
/* IE6-IE8 */ | |
@radians: ~`parseInt("@{val}") * Math.PI * 2 / 360`; | |
@costheta: ~`Math.cos("@{radians}")`; |