Skip to content

Instantly share code, notes, and snippets.

View Trippnology's full-sized avatar

Trippnology Trippnology

View GitHub Profile
@Trippnology
Trippnology / esm-package.md
Created May 4, 2023 20:09 — forked from sindresorhus/esm-package.md
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@Trippnology
Trippnology / 2022-11-06_verified_ids.txt
Created May 4, 2023 16:44 — forked from igorbrigadir/2022-11-06_verified_ids.txt
All 423,502 @verified follows from 2022-11-06, which is all the twitter user IDs that were verified before Twitter's new Blue Verification.
This file has been truncated, but you can view the full file.
1040206865387409408
1378815453510914056
1124983612389171200
1250006106736398336
1151791608494473219
832501002200838144
752487114621718528
968788335207632896
968063439624052736
158686789
@Trippnology
Trippnology / legacy-verified.csv
Created May 4, 2023 16:42 — forked from travisbrown/legacy-verified.csv
Twitter accounts with legacy verification on 4 April 2023 (see https://twitter.com/travisbrown/status/1643229276278235136)
We can't make this file beautiful and searchable because it's too large.
Twitter ID, Screen name, Followers
12,jack,6526006
13,biz,2608289
20,ev,1679155
57,SarahM,17448
59,Tim535353,9340
76,marciadorsey,19501
224,davepell,57523
291,goldman,916937
295,joshk,149086
<!-- See: https://www.filamentgroup.com/lab/load-css-simpler/ -->
<link rel="stylesheet" href="/path/to/my.css" media="print" onload="this.media='all'">
@Trippnology
Trippnology / compound-interest.js
Last active July 19, 2018 01:18 — forked from actuallymentor/compound-interest.js
A simple script to calculate compound interest
// Input it initial amount
// Interest as a number, e.g. 5% is 1.05 on a yearly basis
// Length as number of years
// Name of this calculation
// Addition determines whether the input variable is one time or a yearly contribution
function compound( input, interest, length, name, addition ) {
var accumulated = input
for ( i=0; i < length; i++ ) {
accumulated *= interest
if ( addition ){
@Trippnology
Trippnology / equalise-height.js
Created April 3, 2018 18:23
jQuery: Equalise height of set of elements
function equalizeHeight(selector) {
var maxheight = 0;
$(selector).each(function(){
var height = parseInt($(this).css('height'));
if (height > maxheight ) {
maxheight = height;
}
});
$(selector).css('height', maxheight);
}
@Trippnology
Trippnology / channel_v3.json
Last active January 3, 2016 18:12
Sublime Package Control: Backup package list
This file has been truncated, but you can view the full file.
{"repositories": ["https://bitbucket.org/jjones028/p4sublime/raw/tip/packages.json", "https://bitbucket.org/klorenz/sublime_packages/raw/tip/packages.json", "https://csch1.triangulum.uberspace.de/release/packages.json", "https://eberstarkgroup.com/releases/packages.json", "https://packagecontrol.io/packages_2.json", "https://packagecontrol.io/repository.json", "https://raw.githubusercontent.com/20Tauri/DoxyDoxygen/master/DoxyDoxygen.json", "https://raw.githubusercontent.com/Andr3as/Sublime-SurroundWith/master/packages.json", "https://raw.githubusercontent.com/AutoIt/SublimeAutoItScript/master/packages.json", "https://raw.githubusercontent.com/FichteFoll/sublime_packages/master/package_control.json", "https://raw.githubusercontent.com/Floobits/floobits-sublime/master/packages.json", "https://raw.githubusercontent.com/Harrison-M/indent.txt-sublime/master/packages.json", "https://raw.githubusercontent.com/Hexenon/FoxCode/master/packages.json", "https://raw.githubusercontent.com/Kaizhi/SublimeUpdater/master/packa
@Trippnology
Trippnology / .editorconfig
Last active January 2, 2016 13:22
Editor Config
# editorconfig.org
root = true
[*]
indent_style = tab
end_of_line = crlf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@Trippnology
Trippnology / auto-copyright.php
Created November 17, 2015 19:52
WP: Automatic copyright date and link
@Trippnology
Trippnology / wp-debug-variable.php
Created November 12, 2015 15:18
WP: Debug a variable
<?php echo '<pre>'; var_dump( $post ); echo '</pre>'; ?>