Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
-=[ Dorkin' Out ]=-

Jordan Eldredge captbaritone

💭
-=[ Dorkin' Out ]=-
View GitHub Profile
View no-useless-null-checks.js
const EQUALITY_OPERATORS = new Set(['==', '===', '!=', '!==']);
module.exports = {
meta: {
messages: {
constant: 'Constant condition.',
coalescingNeverNullish: 'Constant condition. Value can never be nullish.',
coalescingAlwaysNullish:
'Constant condition. Value will always be nullish.',
},
View gist:5b9941459e21d91e461b8a03721647bf
╭─[23:32]: jordaneldredge at Jordans-MacBook-Pro in ~/projects/skin-scrapers/niko-niko.net
╰─➤ find . | grep -i zip | wc -l
218
╭─[23:32]: jordaneldredge at Jordans-MacBook-Pro in ~/projects/skin-scrapers/niko-niko.net
╰─➤ find . | grep -i zip
./winamp/Zel.ZIP
./winamp/shin.zip
./winamp/rasen7.zip
./winamp/naus.ZIP
@captbaritone
captbaritone / index.js
Created Sep 24, 2019
maki compiler as a service
View index.js
const express = require("express");
const path = require("path");
const fsExtra = require("fs-extra");
const os = require("os");
const app = express();
const port = 3000;
const { exec } = require("child_process");
const Busboy = require("busboy");
const tmpDir = os.tmpdir();
View example_of_two_tracks.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
</head>
<body>
<div id='app'>
<!-- Webamp will attempt to center itself within this div -->
View license-isssue.md
View gist:ada236ea9c8dd1ad5cd1f21cce9d6244
// Modules to control application life and create native browser window
const {app, BrowserWindow} = require('electron')
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let mainWindow
function createWindow () {
// Create the browser window.
mainWindow = new BrowserWindow({width: 800, height: 600})
@captbaritone
captbaritone / modern
Created Jun 27, 2018
Tell if a skin is modern or not
View modern
#!/bin/bash
# Tell if a skin is modern or not
unzip -l $1 | grep -i "skin.xml" >/dev/null
View bind.html
<html>
<body>
<script>function test(a, b) {};</script>
<script src='https://unpkg.com/underscore@1.8.3/underscore.js'></script>
<script> console.log("1.8.3 result: ", _.bind(test, {}).length); // 2 </script>
<script src='https://unpkg.com/underscore@1.9.0/underscore.js'></script>
View crash_safari.html
<script>
var context = new (window.AudioContext || window.webkitAudioContext)();
function start () {
var source = context.createOscillator();
var chanMerge = context.createChannelMerger(2);
var filter = context.createBiquadFilter();
source.connect(chanMerge, 0, 0);
source.connect(chanMerge, 0, 1);
View gist:f27385b454ecdaf8174a921604524412
Process: com.apple.WebKit.WebContent [15802]
Path: /System/Library/Frameworks/WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.WebContent.xpc/Contents/MacOS/com.apple.WebKit.WebContent
Identifier: com.apple.WebKit.WebContent
Version: 12603 (12603.1.30.0.34)
Build Info: WebKit2-7603001030000034~4
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Safari [15728]
User ID: 502