Skip to content

Instantly share code, notes, and snippets.

@LoueeD
LoueeD / bsky-comments.js
Last active January 24, 2025 04:10
bluesky comments web component - inspired by emilyliu and coryzue
// Moved to a github repo for versioning, the file can now be loaded from a CDN
// <script type="module" src="https://esm.sh/gh/loueed/[email protected]/comments"></script>
class BskyComments extends HTMLElement {
constructor() {
super();
this.attachShadow({ mode: "open" });
this.visibleCount = 3;
this.thread = null;
this.error = null;
@LoueeD
LoueeD / vue-scan.js
Last active February 28, 2025 08:07
tiny vue render overlay inspired by react-scan
function createDOMHighlighter() {
const canvas = document.createElement('canvas');
const ctx = canvas.getContext('2d');
Object.assign(canvas.style, {
position: 'fixed',
inset: '0',
zIndex: '99999999',
pointerEvents: 'none',
width: '100%',
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["Test.0664605f1bd9b90b791b"]=t():e["Test.0664605f1bd9b90b791b"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=
@LoueeD
LoueeD / What the Google Pixel 3 needs to succeed.md
Created June 4, 2018 23:19
What the Google Pixel 3 needs to succeed

Later this year Google will be releacing the 3rd Pixel phone, here are a few area’s that I think Google need to focus on. One of the big advantages that the Pixel has compared to other Android devices is the fact that you have instant access to software updates.

A lot of people dont realize that Samsung phones dont get major Android updates when Google publishes a new verison. Samsung has to take the new OS and develop their own bloatware on top of the system which can change the way Android works. This secondary development period means that when Android P is released later this year, Samsung users will be luckly to get it before mid 2019.

The Pixel doesnt suffer from this issue, Google controls the hardware and software, this lets them instantly push new features to their users (just like iOS).

Demand

Apple’s newest iOS 11 has been installed on 80% of active iOS devices, compare this to the 6% of Android phones that are currently running the newest OS. Some peopl
@LoueeD
LoueeD / 5 Predictions for WWDC 2018.md
Last active June 4, 2018 22:52
Predictions for WWDC 2018

Lots of people are discussing the likely announcments at this years WWDC. We can expect lots of software improvments on iOS and MacOS, maybe some new hardware updates like AirPod 2 and the iPhone SE 2. iOS 12 will have some new features, for example updates to Siri, which will also work on the HomePod.

I’d like to list some predictions around Apples main event. A lot of issues have hit big companies in the past few months. We had the Cambridge Analytica mess with Facebook, the complex GRDP laws in the EU and issues with Alexa malfunctioning. These problems show us that privacy is a big issues with todays devices and user behaviour.

Apple’s “Digital Health”

Apple will use their big announcment to start a convesation with the user about how people should use their smartphones. The next iOS update will include a new easy to read breakdown of how much time you spend on apps, If this is done correctly it could break people out of the “dopamine feedback loop” app
Verifying my Blockstack ID is secured with the address 14nBQjFDikeaBU3WmN1U7GjSLu9h8ibLT7 https://explorer.blockstack.org/address/14nBQjFDikeaBU3WmN1U7GjSLu9h8ibLT7
@LoueeD
LoueeD / index.html
Created November 15, 2017 22:30
Notchless Photo Generator
<div class="site-canvas" id="app">
<div class="column">
<h1>Notchless</h1>
<h2>
Simply click to add a photo and
then download a notchless version.
</h2>
<div class="download">
<span v-if="!photoName">Upload Photo</span>
<span v-if="photoName">{{photoName}}</span>