Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Sönke Kluth soenkekluth

🎯
Focusing
View GitHub Profile
View brew-cask-upgrade.sh
#!/bin/bash
brew update
brew upgrade
echo "outdated casks:"
brew cask outdated
for c in $(brew cask outdated | xargs -n1); do
echo "updating $c"
@soenkekluth
soenkekluth / socket-cheatsheet.js
Created Feb 11, 2018 — forked from alexpchin/socket-cheatsheet.js
A quick cheatsheet for socket.io
View socket-cheatsheet.js
// sending to sender-client only
socket.emit('message', "this is a test");
// sending to all clients, include sender
io.emit('message', "this is a test");
// sending to all clients except sender
socket.broadcast.emit('message', "this is a test");
// sending to all clients in 'game' room(channel) except sender
View .tern-project
{
"ecmaVersion": 6,
"libs": [
"browser",
"jquery",
"underscore"
],
"loadEagerly": [
"absolute/or/relative/path/to/your/js/**/*.js"
],
View Preferences.sublime-settings
{
"auto_complete_triggers":
[
{
"characters": "<",
"selector": "text.html"
},
{
"characters": ".",
"selector": "source.js"
@soenkekluth
soenkekluth / SassMeister-input.scss
Created Aug 15, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v2.0.0)
// ----
$cols: 4;
$mobile-first : false;
$bp-names: 'xs' 's' 'm' 'l' 'xl';
$bp-vals: 320px 568px 768px 1024px 1280px;
View project.sublime-project
{
"folders":
[
{
"follow_symlinks": true,
"path": ".",
"folder_exclude_patterns": [ "release", "public", "dist", "material" ]
}
],
"ternjs":
View gulpfile.js
'use strict';
/*******************************************************************************
DEPENDENCIES
*******************************************************************************/
// Load plugins fails with some plugins!
// var $ = require('gulp-load-plugins')();
// instead use fashion style:
View Preferences.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"