Skip to content

Instantly share code, notes, and snippets.

View RichLewis007's full-sized avatar

Rich Lewis RichLewis007

View GitHub Profile
@xphir
xphir / userChrome.css
Created June 29, 2025 09:41
Firefox hide native vertical tab bar if Sidebery is enabled
/*
Credit: https://gist.github.com/abhinav/00c2053b750b72e2d43bcf1652b5fb66
This is a userChrome.css for Firefox
that hides the vertical tab sidebar (used by Sidebery),
but only if Sidebery is enabled and the window title contains the "sidebery" preface.
Instructions:
1. Enable userChrome.css support and vertical tabs in Firefox:
1.1 Go to about:config
1.2 Set `toolkit.legacyUserProfileCustomizations.stylesheets` to `true`

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@nolili
nolili / gist:a583ea045dafafebb17f
Last active June 22, 2020 01:41
Heart Rate Monitor Example(Swift)
import UIKit
import CoreBluetooth
class ViewController: UIViewController, CBCentralManagerDelegate, CBPeripheralDelegate {
let centralManager:CBCentralManager!
var connectingPeripheral:CBPeripheral!
required init(coder aDecoder: NSCoder) {
@n3wtron
n3wtron / simple_mjpeg_streamer_http_server
Last active July 8, 2024 17:49
Simple Python Motion Jpeg (mjpeg server) from webcam. Using: OpenCV,BaseHTTPServer
#!/usr/bin/python
'''
Author: Igor Maculan - [email protected]
A Simple mjpg stream http server
'''
import cv2
import Image
import threading
from BaseHTTPServer import BaseHTTPRequestHandler,HTTPServer
from SocketServer import ThreadingMixIn
@roberto
roberto / _flash_messages.html.erb
Created August 13, 2012 22:47
Rails flash messages using Twitter Bootstrap
<% flash.each do |type, message| %>
<div class="alert <%= bootstrap_class_for(type) %> fade in">
<button class="close" data-dismiss="alert">Γ—</button>
<%= message %>
</div>
<% end %>