Skip to content

Instantly share code, notes, and snippets.

View ba55ie's full-sized avatar
🍌
Use the Source Luke

Sebastiaan ba55ie

🍌
Use the Source Luke
  • Schiedam
View GitHub Profile
@ba55ie
ba55ie / update.ps1
Last active April 9, 2024 08:34
Update Windows Software
winget update --all --accept-source-agreements --accept-package-agreements
@ba55ie
ba55ie / radar.json
Last active March 21, 2024 13:59
Front-end Tech Radar
[
{
"name": "SCSS",
"ring": "hold",
"quadrant": "tools",
"isNew": "FALSE",
"description": "Sass is a CSS extension language."
},
{
"name": "Fractal",
@ba55ie
ba55ie / profiles.md
Last active August 3, 2023 14:54
VS Code profiles

Settings

Your (default) settings can be found at:

  • Windows %APPDATA%\Code\User\settings.json
  • macOS $HOME/Library/Application Support/Code/User/settings.json
  • Linux $HOME/.config/Code/User/settings.json

Extensions

@ba55ie
ba55ie / rollup-plugin-copy-watch.js
Created June 3, 2021 12:10
Rollup plugin copy watch
import * as chokidar from 'chokidar';
import copy from 'rollup-plugin-copy';
import { red } from 'colorette';
export default function copyWatch(options = {}) {
const {
hook = 'buildEnd',
watch = false,
} = options;
@ba55ie
ba55ie / git-yolo.md
Created January 15, 2021 09:37
Git - Remove local branches that have been deleted on remote

Remove local branches that have been deleted on remote

Add the following command to [alias] section in your .gitconfig.

[alias]
  yolo = "!f() { git remote prune origin; git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}' | xargs git branch -D; }; f"

Merged

@ba55ie
ba55ie / setup.md
Last active January 19, 2021 07:13
OSX development

Setup OSX for (web) development

Dev Tools

Commandline tools

@ba55ie
ba55ie / rollup-plugin-handlebars-nested.js
Last active April 10, 2020 13:08
Basic Rollup plugin for nested handlebars. Quick 'n dirty, no configuration options, you have to add them yourself
import path from 'path';
import fs from 'fs';
import Handlebars from 'handlebars';
class ImportScanner extends Handlebars.Visitor {
constructor() {
super();
this.partials = new Set();
}
@ba55ie
ba55ie / client.js
Last active February 20, 2019 07:11
Node.js SignalR V2.2.0 client
'use strict';
const jsdom = require('jsdom');
const window = jsdom.jsdom().defaultView;
const url = 'http://YOUR_SIGNALR_URL'; // Used for CORS
const hubs = 'http://YOUR_SIGNALR_HUBS_URL';
function loadScript(src) {
return new Promise((resolve, reject) => {
@ba55ie
ba55ie / Backbone Child View
Last active August 29, 2015 14:07
Backbone child View with extended events
BaseView.extend({
// Extend BaseView events
// _.result() will invoke the events method or return the object
events: function() {
return _.extend(_.result(BaseView.prototype, 'events'), {
'click': 'onClick'
});
},