Skip to content

Instantly share code, notes, and snippets.

View jscheid's full-sized avatar

Julian Scheid jscheid

View GitHub Profile
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.
@jscheid
jscheid / html-webpack-sri-test.patch
Last active June 11, 2016 00:31
html-webpack-plugin/webpack-subresource-integrity test case example
diff --git a/package.json b/package.json
index 7fba20f..0ba9d1e 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,7 @@
"description": "Webpack plugin for ensuring subresource integrity",
"main": "index",
"scripts": {
- "test": "karma start --single-run",
+ "test": "karma start --single-run && mocha test/test-webpack.js",

Keybase proof

I hereby claim:

  • I am jscheid on github.
  • I am jscheid (https://keybase.io/jscheid) on keybase.
  • I have a public key whose fingerprint is 7198 317A 9966 BC30 7B89 AFF5 64D5 AD8F 4233 4B48

To claim this, I am signing this object:

bar: 'bar'
foo_json: '{{ foo | to_json }}'