Skip to content

Instantly share code, notes, and snippets.

@Abban
Abban / fuck-claude.js
Last active May 4, 2026 09:25
Check your NPM dependencies for Claude commits
#!/usr/bin/env node
import fs from 'node:fs';
import { Octokit } from 'octokit';
const packages = fs.readdirSync( './node_modules', { withFileTypes: true } ).filter( x => x.isDirectory() && x.name[ 0 ] !== '@' ).map( x => x.name );
const octokit = new Octokit( {
auth: `token ${ process.env.GITHUB_AUTH_TOKEN }`,
} );
const errors = [];
const claudes = [];
@thomhines
thomhines / example.js
Last active April 18, 2020 21:57
Capacitor iosMotion - Simple, partially-functional workaround for Capacitor Motion plugin (uses Native API instead of Web API). Place the .swift and .h files in the root of your App folder in Xcode, then add the javascript stuff to your app's code.
// Register the plugin with Capacitor
import { Plugins } from '@capacitor/core';
const { Keyboard } = Plugins;
// ORIENTATION
// Start tracking device orientation. This must be run in order for the following event listener to work
iosMotion.getOrientation()