Skip to content

Instantly share code, notes, and snippets.

View soenkekluth's full-sized avatar
🎯
Focusing

Sönke Kluth soenkekluth

🎯
Focusing
View GitHub Profile
@soenkekluth
soenkekluth / Preferences.sublime-settings
Last active August 29, 2015 13:57
sublime-settings
{
"auto_complete_triggers":
[
{
"characters": "qazwsxedcrfvtgbyhnujmikolpQAZWSXEDCRFVTGBYHNUJMIKOLP<",
"selector": "text, source, meta, string, punctuation, constant"
},
{
"characters": "/",
"selector": "string.quoted.double.html, string.quoted.single.html, source.css, source.scss"
@arielsalminen
arielsalminen / vunits.js
Created March 3, 2012 05:43 — forked from LeaVerou/vunits.js
Static polyfill for vw, vh, vm units
/**
* Polyfill for the vw, vh, vm units
* Requires StyleFix from -prefix-free http://leaverou.github.com/prefixfree/
* @author Lea Verou
*/
(function() {
if(!window.StyleFix) {
return;
@bastianallgeier
bastianallgeier / project-related-html-tags.html
Last active December 18, 2015 22:58
This is a proposal by @sashtown and @bastianallgeier for the W3C to introduce new, project-related HTML wrapper tags :)
@zackify
zackify / .eslintrc
Last active December 21, 2015 17:57
Upgrade to Babel 6
{
"parser": "babel-eslint",
"env": {
"es6": true,
"mocha": true,
"node": true
},
"ecmaFeatures": {
"blockBindings": true,
"forOf": true,
@facelordgists
facelordgists / Optimize-nginx.md
Last active November 21, 2016 12:01
SERVER: nginx & apache - Enable Gzip & future headers + disable etags
@developit
developit / demo.html
Last active May 12, 2017 14:31
Just bundle embed.js via webpack with target:umd and the name "embed" (or pick one)
<script src="/path/to/embed.umd.js"></script>
<div id="foo"></div>
<script>
var parent = document.getElementById('foo')
embed.renderWidget(
'foo', // widget name
{ a: 'b' }, // props
parent // render into this
);
@304352303
304352303 / dabblet.css
Created February 11, 2018 03:55 — forked from csssecrets/dabblet.css
Smooth state animations
/**
* Smooth state animations
* Photo credits: https://www.flickr.com/photos/employtheskinnyboy/3904743709
*/
@keyframes panoramic {
to { background-position: 100% 0; }
}
.panoramic {
@donnydavis
donnydavis / chromeify
Created March 12, 2018 22:27
OSX Google Chrome Appify
#!/bin/sh
#This is not new, just a few minor edits to an old script for OSX.
echo "What should the Application be called (no spaces allowed e.g. GCal)?"
read inputline
name=$inputline
echo "What is the url (e.g. https://www.google.com/calendar/render)?"
read inputline
@phun-ky
phun-ky / webpack.config.js
Last active July 10, 2018 10:51
webpack + postcss + extract-text-plugin = no CSS duplicates
postcss: () => {
return [
cssnano({
reduceIdents: false,
discardDuplicates: true,
autoprefixer: true
})
];
},modules: {
loaders: [{
@xgin
xgin / letsencrypt-hostname.sh
Created January 4, 2016 07:29
Secure plesk clean installation with hostname certificate by Let's Encrypt
#!/bin/bash -e
### Copyright 1999-2015. Parallels IP Holdings GmbH. All Rights Reserved.
### Secure plesk clean installation with hostname certificate by Let's Encrypt
export PYTHONWARNINGS="ignore:Non-standard path"
LE_HOME=${LE_HOME:-"/usr/local/psa/var/modules/letsencrypt"}
HOSTNAME=$(hostname)
# Use staging server for testing
# --server https://acme-staging.api.letsencrypt.org/directory