Fix the error bundle not found error
or something similar. This happens when the rubocop VSCode extension is set to execute using bundle exec
.
Open this file:
~/.vscode/extensions/misogi.ruby-rubocop-0.8.6/out/src/configuration.js
import sys | |
import re | |
# TODO: The main code should be inside a __main__, I think. | |
FILE = sys.argv[1] | |
file = open(FILE, "r", encoding="utf8") | |
data = file.read() | |
file.close() |
#include <bits/stdc++.h> | |
using namespace std; | |
struct Point { | |
int x, y; | |
}; | |
ostream& operator<<(ostream& os, const Point& p) { | |
return os << "(" << p.x << ", " << p.y << ")"; | |
} |
search-text(){ | |
if [ ! -z "$1" ] | |
then | |
grep --exclude-dir={.git,tmp,log,node_modules,vendor} -r "$1" . | |
fi | |
} | |
# Example usage: | |
# search-text "with a suffix tree" |
# Note: Execute directly on the terminal (it has no effect if it's inside a bash script) | |
export PS1="\$ " |
#!/bin/bash | |
# A bash utility for quickly running a simple C++ file using: | |
# c++ my_file.cpp | |
# | |
# Features: | |
# * stderr output becomes red (use std::cerr or fprintf(stderr, ...) to debug). | |
# * Caches the compiled file based on the code content (if the file doesn't change, | |
# it will run the same pre-compiled binary). | |
# |
// normalizeTitle :: String -> String | |
const normalizeTitle = rawTitle => { | |
const parts = rawTitle.split(" - "); | |
const right = parts[1].toLowerCase().replace(/\s/g, "_").replace(/[^a-z_0-9]+/g, ""); | |
return `${parts[0]}-${right}`; | |
} | |
const rawTitle = document.getElementById("problem-name").innerHTML; |
const fs = require("fs"); | |
const path = require ("path"); | |
const readline = require('readline'); | |
const { spawn } = require('child_process'); | |
let ROMS_FOLDER = "C:/Users/.../PSX"; | |
let MEDNAFEN_HOME = "C:/Users/.../Mednafen"; | |
// Initialize the line reader | |
const rl = readline.createInterface({ |
https://codesandbox.io/s/o5r159mpkq |
function toParagraphs(string){ | |
return string.split(/[\r?\n]+/g) | |
.map(p => p.trim()) | |
.filter(p => p.length > 0) | |
.map(p => `<p>${p}</p>`) | |
.join(""); | |
} | |
// Tests |