Skip to content

Instantly share code, notes, and snippets.

View guidoschmidt's full-sized avatar

Guido Schmidt guidoschmidt

View GitHub Profile
@guidoschmidt
guidoschmidt / HTML meta tags
Last active August 29, 2015 14:22
HTML meta tags
<!-- META -->
<meta charset="utf-8">
<meta http-equiv="Content-Type"
content="text/html; charset=utf-8" >
<link rel="canonical" href="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="keywords"
content="" >
<meta name="description"
content="">
@guidoschmidt
guidoschmidt / Minted Syntax Highlighting
Created June 28, 2015 15:24
Minted Syntax Highlighting
\begin{minted}{cpp}
\end{minted}
@guidoschmidt
guidoschmidt / dumb.jsx
Created December 11, 2015 16:31
Dumb React Component
import React from 'react'
class Classname extends React.Component {
render() {
return (
<h1>Patients</h1>
)
}
}
Classname.defaultProps = {
@guidoschmidt
guidoschmidt / smart.jsx
Last active January 10, 2016 11:16
Smart React Component
import React from 'react';
class Component extends React.Component {
constructor(props) {
super(props);
this.state = {};
}
render() {
return (
@guidoschmidt
guidoschmidt / observer-observable.js
Created January 26, 2016 13:13
Minimal observable example implementation
/**
* OBSERVER
*/
var Observer = function() {};
Observer.prototype.create = function(onNext) {
this._onNext = onNext;
};
Observer.prototype.onNext = function(value) {
@guidoschmidt
guidoschmidt / addto-package.json
Last active March 24, 2016 11:57
Initial webpack configuration via script
,"scripts": {
"build": "./node_modules/.bin/webpack --config config/webpack.prod.conf.js",
"dev": "./node_modules/.bin/webpack-dev-server --port 1337 --config config/webpack.dev.config.js --content-base src/ --hot --inline"
}
}
@guidoschmidt
guidoschmidt / com.docker.docker-machine.plist
Created March 18, 2016 08:32 — forked from chusiang/com.docker.docker-machine.plist
run docker-machine on system startup - Mac OSX - El Capitan
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.docker.docker-machine</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/docker-machine</string>
<string>start</string>
@guidoschmidt
guidoschmidt / gist:01b9d39a5970076e94297a2dab4b5ce7
Created March 29, 2016 20:36
Oh noes, did forget to sudo vim...
Don't worry, use:
:w !sudo tee %
@guidoschmidt
guidoschmidt / index.html
Created April 2, 2016 08:59
Mobile Browsers Color Tints
<!-- Chrome, Firefox OS, Opera and Vivaldi -->
<meta name="theme-color" content="#4285f4">
<!-- Windows Phone -->
<meta name="msapplication-navbutton-color" content="#4285f4">
<!-- iOS Safari -->
<meta name="apple-mobile-web-app-status-bar-style" content="#4285f4">
@guidoschmidt
guidoschmidt / compose.sh
Last active January 1, 2017 19:58
ffmpeg compose videos next to each other
ffmpeg -i speeded-crop.mov -i unspeeded-crop.mov -filter_complex "[0:v]setpts=PTS-STARTPTS, pad=iw*2:ih[bg]; [1:v]setpts=PTS-STARTPTS[fg]; [bg][fg]overlay=w" output.mov