Skip to content

Instantly share code, notes, and snippets.

@nateps
nateps / gist:1172490
Created August 26, 2011 01:38
Hide the address bar in a fullscreen iPhone or Android web app
<!DOCTYPE html>
<meta charset=utf-8>
<meta name=viewport content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name=apple-mobile-web-app-capable content=yes>
<meta name=apple-mobile-web-app-status-bar-style content=black>
<title>Test fullscreen</title>
<style>
html, body {
margin: 0;
padding: 0;
@thatmarvin
thatmarvin / overcastfm-keyboard-shortcuts.user.js
Last active September 16, 2015 08:26
Overcast.fm Keyboard Shortcuts
// ==UserScript==
// @name Overcast.fm Keyboard Shortcuts
// @namespace http://your.homepage/
// @version 0.2
// @description Space bar to play/pause, left/right arrow to seek forward/backward.
// @author @thatmarvin
// @match https://overcast.fm/+*
// @grant none
// ==/UserScript==
@imjasonh
imjasonh / markdown.css
Last active November 6, 2024 14:26
Render Markdown as unrendered Markdown (see http://jsbin.com/huwosomawo)
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
@koenbok
koenbok / store.ts
Last active November 10, 2023 00:17
import * as React from "react";
/**
A hook to simply use state between components
Warning: this only works with function components (like any hook)
Usage:
// You can put this in an central file and import it too
const useStore = createStore({ count: 0 })
@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active November 4, 2024 07:33
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@aaronsnoswell
aaronsnoswell / common-syllables.txt
Created February 5, 2022 12:59
The 322 most common syllables (ordered most common to least) in the 5000 most common English words
ing
er
a
ly
ed
i
es
re
tion
in