Your concerns about wealth tax implications for BoldBooks Norge and the potential benefits of Swedish relocation are well-founded. Based on current Norwegian tax regulations and available investment structures, there are indeed strategies using SAFE/SLIP instruments that can help defer wealth tax exposure, though they come with specific requirements and limitations.
class Mapping { | |
constructor (public from: ObjectConstructor) { | |
this.to = from | |
} | |
to: ObjectConstructor | |
scope = 'singleton' | |
onActivation: (resolved, ...args) => {} | |
} | |
export class Kernel { |
#!/usr/bin/env bash | |
# Note: LOGIN SCREEN SCALE (200%), LOGIN SCREEN SIZE (1152x864) and DISPLAY SCALE (200%) below are dependant on | |
# Virtual Machine > Settings > Display > 'Use full resolution for Retina display' in VMware Fusion being checked | |
# (gui.fitGuestUsingNativeDisplayResolution = "TRUE" in .vmx file) | |
# Get the installed Ubuntu version e.g. 20, 18, 16 etc. | |
VERSION=$(lsb_release -r | awk '{print $2}' | cut -d '.' -f 1) |
#!/bin/sh | |
# Usage example: ./edit_sinon_docs.sh stubs 4.1.1 | |
# Will open stubs.md from 4.1.1 for editing and propagate the changes to later versions. | |
# Make sure you have SINON_HOME pointing to the repository root. | |
# You'll need git and the npm "semver" package installed (npm i -g semver) | |
cd $SINON_HOME/docs | |
FILENAME=$1.md |
// | |
// This program reads a sourcemap from stdin | |
// and replaces the "mappings" property with | |
// human readable content. It writes the output | |
// to stdout. | |
// | |
// 1. install the dependencies: | |
// npm i concat-stream vlq | |
// | |
// 2. optional: install jq for pretty printing json |
This is a collection of ES2017 classes (so a transpiler is needed, webpack is used here with babel and the env preset) that utilize Service Workers to add offline support for a site. This example should work for WordPress sites as well
Because DOMParser
is not included in Service Workers, you will need to install the npm package xmldom
npm install xmldom --save-dev
From time to time, Musk will send out an e-mail to the entire company to enforce a new policy or let them know about something that's bothering him. One of the more famous e-mails arrived in May 2010 with the subject line: Acronyms Seriously Suck:
There is a creeping tendency to use made up acronyms at SpaceX. Excessive use of made up acronyms is a significant impediment to communication and keeping communication good as we grow is incredibly important. Individually, a few acronyms here and there may not seem so bad, but if a thousand people are making these up, over time the result will be a huge glossary that we have to issue to new employees. No one can actually remember all these acronyms and people don't want to seem dumb in a meeting, so they just sit there in ignorance. This is particularly tough on new employees.
That needs to stop immediately or I will take drastic action - I have given enough warning over the years. Unless an acronym is approved by me, it should not enter the SpaceX glossary.
Snake is a fun game to make as it doesn't require a lot of code (less than 100 lines with all comments removed). This is a basic implementation of the snake game, but it's missing a few things intentionally and they're left as further exploration for the reader.
- Score
- When the snake eats an apple, the score should increase by one. Use context.fillText() to display the score to the screen
const SITEMAP_CACHE_KEY = 'sitemap-cached-pages-v1' | |
self.addEventListener('install', event => { | |
event.waitUntil(cacheSitemap()) | |
}) | |
const cacheSitemap = _ => caches.open(SITEMAP_CACHE_KEY) | |
.then(cache => | |
cacheSitemap() | |
.then(urls => urls.map(u => u.toString())) |
active_time() { | |
# Query display logs | |
logs=$(/usr/bin/pmset -g log | grep 'Display is turned') | |
# By default Mac turn off monitor after 15 minutes | |
timeout=900 | |
# Read logs line by line | |
# Line format: 2016-07-12 07:50:02 +0300 Notification Display is turned on | |
echo "$logs" | while IFS= read -r line; do | |
d=$(echo $line | cut -c 1-19); # extract full date |