Skip to content

Instantly share code, notes, and snippets.

View kenlangston's full-sized avatar

Ken Langston kenlangston

View GitHub Profile
@katowulf
katowulf / gist:4741111
Last active April 11, 2024 12:07
Firebase security rules for a simple chat room model
{
"chat": {
// the list of chats may not be listed (no .read permissions here)
// a chat conversation
"$key": {
// if the chat hasn't been created yet, we allow read so there is a way
// to check this and create it; if it already exists, then authenticated
// user (specified by auth.id) must be in $key/users
@font-face {
font-family: 'EntypoRegular';
src: url('font/entypo.eot');
src: url('font/entypo.eot?#iefix') format('embedded-opentype'),
url('font/entypo.woff') format('woff'),
url('font/entypo.ttf') format('truetype'),
url('font/entypo.svg#EntypoRegular') format('svg');
font-weight: normal;
font-style: normal;
}
@akikoo
akikoo / gist:2944398
Created June 17, 2012 12:21
Detect from JavaScript whether media queries have been executed in CSS
<!DOCTYPE html>
<!--
Technique for maintaining the media queries in CSS only. Media query CSS
execution is detected by JavaScript that reads the CSS generated content value.
Credits:
http://adactio.com/journal/5414/
http://adactio.com/journal/5429/
https://gist.github.com/2481019