Skip to content

Instantly share code, notes, and snippets.

View hotmeteor's full-sized avatar
👾

Adam Campbell hotmeteor

👾
View GitHub Profile

Keybase proof

I hereby claim:

  • I am hotmeteor on github.
  • I am hotmeteor (https://keybase.io/hotmeteor) on keybase.
  • I have a public key whose fingerprint is 1BE8 85E5 5876 AAB3 F655 0EFD 8404 1CBA 05AE E58B

To claim this, I am signing this object:

@hotmeteor
hotmeteor / modal.html
Created March 16, 2014 15:55
Mobile-first CSS/HTML modal window
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>firstswim</title>
<meta name="description" content="">
@hotmeteor
hotmeteor / data-replace.scss
Created March 31, 2014 15:21
Text replacer for smaller screens.
@media only screen and (max-width: 599px) {
[data-replace] {
display: inline-block;
overflow: hidden;
letter-spacing: -999em;
vertical-align: bottom;
&::before {
content: attr(data-replace);
letter-spacing: 0;
@hotmeteor
hotmeteor / config
Last active August 29, 2015 14:00
Have VirtualHostX point domains to a local port
ProxyPass / http://localhost:9100/
ProxyPassReverse / http://localhost:9100/
@hotmeteor
hotmeteor / config
Created May 6, 2014 23:38
Make AJAX calls to MAMP on the same domain as your grunt server
ProxyPass /ajax/ http://localhost:80/myappfolder/app/
ProxyPassReverse /ajax/ http://localhost:80/myappfolder/app/
ProxyPass / http://localhost:9000/
ProxyPassReverse / http://localhost:9000/
git tag -a v1.0 -m 'my version 1.0'
git push --tags
@hotmeteor
hotmeteor / copy
Last active August 29, 2015 14:02
rsync copy huge files, with verbosity, mirroring, progress, and resume.
rsync -vaP --progress /Volumes/Source /Volumes/Destination --dry-run
from PIL import Image
from PIL.ExifTags import TAGS, GPSTAGS
def get_exif_data(image):
"""Returns a dictionary from the exif data of an PIL Image item. Also converts the GPS Tags"""
exif_data = {}
info = image._getexif()
if info:
for tag, value in info.items():
decoded = TAGS.get(tag, tag)
@hotmeteor
hotmeteor / gradient.css
Last active August 29, 2015 14:05
Beautiful radial gradient
/* as seen at http://uilang.com/ */
main {
background: radial-gradient(ellipse farthest-side at 100% 100%, #F8FFF3 10%, #85D8CE 50%, #085078 120%);
}
@hotmeteor
hotmeteor / mamp-brew-imagemagick
Last active August 29, 2015 14:08
MAMP and brew Imagemagick path
Source: http://omeka.org/forums/topic/ye-olde-imagemagickmamp-path-problem
1. Navigate to: /Applications/MAMP/Library/bin/envvars
2. Open `envvars` and comment out these two lines:
```#DYLD_LIBRARY_PATH="/Applications/MAMP/Library/lib:$DYLD_LIBRARY_PATH"
#export DYLD_LIBRARY_PATH```
3. Add `export PATH="$PATH:/usr/local/bin"`
4. Restart MAMP
5. Profit $$$