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 / settings.json
Created April 24, 2023 22:10
project settings.json for .vscode
{
"eslint.format.enable": true,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true,
"source.fixAll.eslint": true
},
"files.associations": {
"*.js": "javascriptreact"
},
one.one.one.one
1dot1dot1dot1.cloudflare-dns.com
dns.google
dns.quad9.net
dns.adguard.com
dns-family.adguard.com
CleanBrowsing
adult-filter-dns.cleanbrowsing.org
#!/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 February 11, 2018 04:10 — forked from alexpchin/socket-cheatsheet.js
A quick cheatsheet for socket.io
// 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
{
"ecmaVersion": 6,
"libs": [
"browser",
"jquery",
"underscore"
],
"loadEagerly": [
"absolute/or/relative/path/to/your/js/**/*.js"
],
{
"auto_complete_triggers":
[
{
"characters": "<",
"selector": "text.html"
},
{
"characters": ".",
"selector": "source.js"
@soenkekluth
soenkekluth / SassMeister-input.scss
Created August 15, 2014 11:07
Generated by SassMeister.com.
// ----
// libsass (v2.0.0)
// ----
$cols: 4;
$mobile-first : false;
$bp-names: 'xs' 's' 'm' 'l' 'xl';
$bp-vals: 320px 568px 768px 1024px 1280px;
@soenkekluth
soenkekluth / project.sublime-project
Last active August 29, 2015 13:57
sublime-project
{
"folders":
[
{
"follow_symlinks": true,
"path": ".",
"folder_exclude_patterns": [ "release", "public", "dist", "material" ]
}
],
"ternjs":
@soenkekluth
soenkekluth / gulpfile.js
Last active October 26, 2016 18:15
gulpfile.js
'use strict';
/*******************************************************************************
DEPENDENCIES
*******************************************************************************/
// Load plugins fails with some plugins!
// var $ = require('gulp-load-plugins')();
// instead use fashion style:
@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"