Skip to content

Instantly share code, notes, and snippets.

made you look

andreas andreasvirkus

made you look
View GitHub Profile
edsiper /
Last active Jul 14, 2021
Kubernetes Useful Commands
MeirBon / Dell XPS 15 9560 Manjaro Setup instructions
Last active May 18, 2021
Small, quick guide to set up Manjaro on the XPS 15 9560
View Dell XPS 15 9560 Manjaro Setup instructions
# 1. First of all of course get Manjaro:
# I recommend using Etcher to copy the image to your USB:
# 2. Before installing make sure:
# - Secure boot is disabled in BIOS
# - Your SSD, HDD or NVME drive is set to AHCI instead of RAID
# - Fastboot should be on Auto or minimal, but this shouldn't matter to much
nblackburn / camelToKebab.js
Last active May 6, 2021
Convert a string from camel case to kebab case.
View camelToKebab.js
module.exports = (string) => {
return string.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, '$1-$2').toLowerCase();
View .tmux.conf
set -g default-terminal "xterm-256color"
set-option -ga terminal-overrides ",xterm-256color:Tc"
set -g prefix C-x
unbind-key C-x
bind-key C-2 send-prefix
bind \ split-window -h -c '#{pane_current_path}'
bind / split-window -v -c '#{pane_current_path}'
# Copy-paste integration
View css-breakpoint-mixins.scss
@mixin for-phone-only {
@media (max-width: 599px) { @content; }
@mixin for-tablet-portrait-up {
@media (min-width: 600px) { @content; }
@mixin for-tablet-landscape-up {
@media (min-width: 900px) { @content; }
@mixin for-desktop-up {
ericelliott / manifest.json
Created Nov 8, 2016
Sample manifest.json
View manifest.json
"name": "My Progressive Web Application",
"short_name": "Progressive",
"start_url": "/?home=true",
"icons": [
"src": "/icons/icon36.png",
"sizes": "36x36",
"type": "image/png"
View node-wpapi-oauth-option1.js
var WPAPI = require( 'wpapi' );
var wp = new WPAPI({
endpoint: endpointUrl,
oauth: {
clientId: clientId,
clientSecret: clientSecret,
callback: callbackUrl // optional: (defaults to oob)
ebidel / fancy-tabs-demo.html
Last active Jul 4, 2021
Fancy tabs web component - shadow dom v1, custom elements v1, full a11y
View fancy-tabs-demo.html
function execPolyfill() {
// CustomElementsV1.min.js v1 polyfill from
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
The complete set of authors may be found at
Restuta /
Last active Jul 19, 2021
Sizes of JS frameworks, just minified + minified and gzipped, (React, Angular 2, Vue, Ember)

Below is the list of modern JS frameworks and almost frameworks – React, Vue, Angular, Ember and others.

All files were downloaded from and named accordingly. Output from ls command is stripped out (irrelevant stuff)

As-is (minified)

$ ls -lhS
566K Jan  4 22:03 angular2.min.js
lambtron / sorter.js
Created Oct 20, 2015
Custom sort method for metalsmith-collections plugin in Segment's technical documentation.
View sorter.js
* Generate a custom sort method for given starting `order`. After the given
* order, it will ignore casing and put periods last. So for example a call of:
* sorter('Overview');
* That is passed:
* - Analytics.js