Skip to content

Instantly share code, notes, and snippets.

View rjmoggach's full-sized avatar
🦄
React'ing.

Robert Moggach rjmoggach

🦄
React'ing.
View GitHub Profile
@rjmoggach
rjmoggach / index.html
Created March 4, 2015 08:24
Famous App z-translate a Gridlayout in Famo.us 0.3.4 // source http://jsbin.com/solabu
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="z-translate a Gridlayout in Famo.us 0.3.4" />
<meta charset="utf-8">
<title>Famous App</title>
<meta name="viewport" content="width=device-width, maximum-scale=1, user-scalable=no" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
@rjmoggach
rjmoggach / index.html
Created March 4, 2015 08:31
famo.us App Tree Famo.us 0.3.1 global-seed // source http://jsbin.com/fobaxo/1
<!DOCTYPE HTML>
<html>
<head>
<title>famo.us App</title>
<meta name="description" content="Tree Famo.us 0.3.1 global-seed" />
<meta name="viewport" content="width=device-width, maximum-scale=1, user-scalable=no" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
@rjmoggach
rjmoggach / index.html
Created March 4, 2015 08:34
Famous App BackSwapper View Famo.us 0.3.4 // source http://jsbin.com/notika
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="BackSwapper View Famo.us 0.3.4" />
<meta charset="utf-8">
<title>Famous App</title>
<meta name="viewport" content="width=device-width, maximum-scale=1, user-scalable=no" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
@rjmoggach
rjmoggach / index.html
Created March 4, 2015 08:40
Famous App Stacking Famo.us Surfaces 0.3.0 // source http://jsbin.com/xobeje
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Stacking Famo.us Surfaces 0.3.0" />
<meta charset="utf-8">
<title>Famous App</title>
<meta name="viewport" content="width=device-width, maximum-scale=1, user-scalable=no" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
@rjmoggach
rjmoggach / osx_automount_nfs.md
Created January 11, 2016 23:15 — forked from L422Y/osx_automount_nfs.md
Automounting NFS share in OS X into /Volumes

I have spent quite a bit of time figuring out automounts of NFS shares in OS X...

Somewhere along the line, Apple decided allowing mounts directly into /Volumes should not be possible:

/etc/auto_master (see last line):

#
# Automounter master map
#

+auto_master # Use directory service

import os
import time
import urllib2
try:
import simplejson as json
except ImportError:
import json
import vimeo
@rjmoggach
rjmoggach / ffmpeg-html5
Last active July 15, 2020 05:16 — forked from yellowled/ffmpeg-html5
Convert videos to proper formats for HTML5 video on Linux shell using ffmpeg. Will probably convert this to a bash script later, but for the time being, here's some examples. Not sure there have actually sensible dimensions and bitrates for web video.
#!/usr/bin/env bash
FULLFILE="$1"
FILENAME=$(basename "$FULLFILE" | cut -d. -f1)
# webm
for size in 640x360; do
ffmpeg -i $FULLFILE -f webm -vcodec libvpx -acodec libvorbis -ab 128000 -crf 22 -s ${size} ${FILENAME}-${size}.webm
done
@rjmoggach
rjmoggach / _divider.scss
Created March 11, 2016 22:08
Bootstrap 4 Column Dividers
@import 'variables';
$divider-height: 100%;
@mixin make-column-dividers($breakpoints: $grid-breakpoints) {
// Common properties for all breakpoints
%col-divider {
position: absolute;
content: " ";
top: (100% - $divider-height)/2;
@rjmoggach
rjmoggach / idmx.py
Created September 28, 2017 14:35
Identity Matrix Locator Creator
import maya.cmds as cmds
import maya.mel as mel
import maya.OpenMaya as OpenMaya
class IdMx():
"""
Identity Matrix Locator Creator Class
written by Robert Moggach, 2010
This creates an animated locator that represents
the identity matrix for two selected
@rjmoggach
rjmoggach / profitcoin.py
Created November 16, 2017 02:45
python script to return currently most profitable coins to mine
#!/usr/bin/env python
import urllib2
import json
import argparse
SRC_META = {
'whattomine': {
'url': "https://whattomine.com/coins.json",
'sort_key': 'profitability',