Skip to content

Instantly share code, notes, and snippets.

View jscheid's full-sized avatar

Julian Scheid jscheid

View GitHub Profile
into -> try_into
query_all time: [37.094 us 37.383 us 37.723 us]
change: [+3.5800% +5.1397% +6.9096%] (p = 0.00 < 0.05)
Performance has regressed.
try_into -> into
query_all time: [36.867 us 37.347 us 37.870 us]
change: [-3.3305% -1.6812% -0.0427%] (p = 0.05 > 0.05)
declare module "@alexanderolsen/libsamplerate-js" {
interface Options {
converterType: number;
wasmPath: string;
}
interface Module {
simple(
numSamples: number,
numChannels: number,
@jscheid
jscheid / .dockerignore
Last active July 9, 2021 11:10
Running makem in Docker
Dockerfile
/.sandbox/
/.git/
const prettier = require("prettier");
const chalk = require("chalk");
const normal = chalk.grey;
const highlight = chalk.white.bgBlue.bold;
function showNewline(s) {
return s.replace(/\n/g, "\u23ce\n");
}
➜ prettier-php-test git:(main) ✗ yarn node test.js
yarn node v1.22.10
{
name: 'PHP',
type: 'programming',
tmScope: 'text.html.php',
aceMode: 'php',
codemirrorMode: 'php',
codemirrorMimeType: 'application/x-httpd-php',
color: '#4F5D95',
const typescript = require("typescript");
const { resolveModuleName } = require("ts-pnp");
const origCreateProgram = typescript.createProgram;
function createCompilerHost(compilerOptions) {
const compilerHost = {
...typescript.createCompilerHost(compilerOptions),
resolveModuleNames,
resolveTypeReferenceDirectives,
+ gem install racc
Building native extensions. This could take a while...
Successfully installed racc-1.5.0
Parsing documentation for racc-1.5.0
Done installing documentation for racc after 0 seconds
1 gem installed
+ bundle --gemfile=Gemfile.without-patch --path=without-patch
Using concurrent-ruby 1.1.6
Using i18n 1.8.2
Using minitest 5.14.0
@jscheid
jscheid / gist:29dee9816e89a27c71b54fd40719a70f
Last active February 23, 2019 23:30
Upgrade webpack-subresource-integrity with angular-cli
$ yarn --version
1.13.0
$ ng --version
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
const moment = require('moment');
const CountryLanguage = require('country-language');
const glob = require('glob-promise');
const path = require('path');
const Promise = require('bluebird');
console.log('resolved=', require.resolve('moment'));
const data = {};
;;; node-local-flycheck -- Try to use linters from node_modules, and node from nvm -*- lexical-binding: t -*-
;; (C) 2016 Julian Scheid
;; Author: Julian Scheid <julians37@gmail.com>
;; Version: 0.1.0
;; Keywords: convenience flycheck javascript
;; This file is not part of GNU Emacs.