Skip to content

Instantly share code, notes, and snippets.

Avatar

Avinash Ananth Narayan R Avinash-Bhat

View GitHub Profile
@Avinash-Bhat
Avinash-Bhat / qr-pure-js.js
Created Dec 6, 2012
showing url as a QR code
View qr-pure-js.js
(function() {
function cssAsNum(width){
return Number(width.replace("px",""))
}
var body,img;
body = document.body;
img = document.createElement("img");
img.style.userSelect = "none";
img.style.position = "fixed";
img.style.zIndex = 999999;
View stylus-dark.user.css
body, #stylus-popup {
background-color: #292929;
color: #e6e6e6;
}
a, .disabled a:hover, select {
color: #e6e6e6;
}
input[type="checkbox"]:not(.slider) {
background-color: #404040;
}
View rainbow_brackets.xml
<application>
<component name="RainbowSettings">
<option name="rainbowifyHTMLInsideJS" value="true" />
<option name="version" value="5.1" />
<option name="lightRoundBracketsColors">
<array>
<option value="0x263238" />
<option value="0x455a64" />
<option value="0x607d8b" />
<option value="0x90a4ae" />
@Avinash-Bhat
Avinash-Bhat / gologging_test.go
Last active Aug 23, 2020
benchmark for disabling logs with various packages
View gologging_test.go
package main
import (
logging "github.com/op/go-logging"
"io/ioutil"
"log"
"os"
"testing"
)