This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Twitch game title shortener | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Removes The Legend of Zelda from game titles on the sidebar of Twitch | |
// @author nfaltermeier | |
// @match https://www.twitch.tv/* | |
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Recursively fixes react/jsx-curly-brace-presence ex. changes <div id={'container'}> to <div id="container"> */ | |
const fs = require('fs'); | |
const path = require('path'); | |
// List all files in a directory in Node.js recursively in a synchronous fashion | |
const walkSync = (dir, fileExt, filelist = []) => { | |
fs.readdirSync(dir).forEach((file) => { | |
/* eslint-disable no-param-reassign */ | |
if (fs.statSync(path.join(dir, file)).isDirectory() && file !== 'node_modules') { | |
filelist = walkSync(path.join(dir, file), fileExt, filelist); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//CROSSHAIR SETUP\\ | |
cl_crosshair_drawoutline 1 | |
cl_crosshair_outlinethickness 1 | |
cl_crosshairalpha 255 | |
cl_crosshaircolor 1 | |
cl_crosshairdot 0 | |
cl_crosshairgap -1 | |
cl_crosshairsize 2.5 | |
cl_crosshairstyle 4 | |
cl_crosshairthickness 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.net.MalformedURLException; | |
import java.net.URL; | |
public class GetURLContents { | |
public static void main(String[] args) { | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org.gradle.tooling.model.UnsupportedMethodException: Unsupported method: HierarchicalEclipseProject.getIdentifier(). | |
The version of Gradle you connect to does not support that method. | |
To resolve the problem you can change/upgrade the target version of Gradle you connect to. | |
Alternatively, you can ignore this exception and read other information from the model. | |
at org.gradle.tooling.model.internal.Exceptions.unsupportedMethod(Exceptions.java:33) | |
at org.gradle.tooling.internal.adapter.ProtocolToModelAdapter$InvocationHandlerImpl.invoke(ProtocolToModelAdapter.java:357) | |
at com.sun.proxy.$Proxy31.getIdentifier(Unknown Source) | |
at com.gradleware.tooling.toolingmodel.repository.internal.DefaultOmniEclipseProject.from(DefaultOmniEclipseProject.java:250) | |
at com.gradleware.tooling.toolingmodel.repository.internal.DefaultOmniEclipseProject.from(DefaultOmniEclipseProject.java:246) | |
at com.gradleware.tooling.toolingmodel.repository.internal.DefaultOmniEclipseGradleBuild.from(DefaultOmniEclipseGradleBuild.java:46) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void main(String[] args) | |
{ | |
System.out.println(getNumberAtDigit(4532, 3)); | |
System.out.println(getNumbetAtDigit(4532, 4)); | |
} | |
/** | |
* Digits go from left to right, starting at 1 | |
* | |
* @param source |