- Set an environment variable called
CMDER_ROOT
to your root Cmder folder (in my caseC:\Program Files (x86)\Cmder
). It seems to be important that this does not have quotes around it because they mess with concatenation in the init script. - In your IntelliJ terminal settings, use
"cmd" /k ""%CMDER_ROOT%\vendor\init.bat""
as the Shell path. The double-double-quotes are intentional, as they counteract the missing double quotes in the environment variable.
This file contains hidden or 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
/** | |
* Fancy ID generator that creates 20-character string identifiers with the following properties: | |
* | |
* 1. They're based on timestamp so that they sort *after* any existing ids. | |
* 2. They contain 72-bits of random data after the timestamp so that IDs won't collide with other clients' IDs. | |
* 3. They sort *lexicographically* (so the timestamp is converted to characters that will sort properly). | |
* 4. They're monotonically increasing. Even if you generate more than one in the same timestamp, the | |
* latter ones will sort after the former ones. We do this by using the previous random bits | |
* but "incrementing" them by 1 (only in the case of a timestamp collision). | |
*/ |
This file contains hidden or 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
/* bling.js */ | |
window.$ = document.querySelector.bind(document); | |
window.$$ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
NodeList.prototype.__proto__ = Array.prototype; | |
NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |
This file contains hidden or 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
tool | |
extends EditorScript | |
# ------------------HOW TO USE------------------------- | |
# CONFIGURE CONSTANTS TO AUTOGENERATE THE TILESET SCENE | |
# ----------------------------------------------------- | |
# PATH TO TEXTURE FILE |
This file contains hidden or 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 { | |
Injectable, | |
Injector, | |
ComponentFactoryResolver, | |
EmbeddedViewRef, | |
ApplicationRef | |
} from '@angular/core'; | |
@Injectable() | |
export class DomService { |
This file contains hidden or 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 ALL MATERIAL COMPONENTS | |
// #STEPS | |
// 1- Import this file as module in app.module.ts ==> import { MaterialModule } from './xyz/abc'; | |
// 2- Initialize it in imports:[] array ==> imports:[MaterialModule] | |
import { NgModule } from '@angular/core'; | |
// *************** FORM CONTROLS *************** | |
import {MatAutocompleteModule} from '@angular/material/autocomplete'; | |
import {MatCheckboxModule} from '@angular/material/checkbox'; | |
import {MatDatepickerModule} from '@angular/material/datepicker'; |
This file contains hidden or 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
tool | |
class_name ShapePolygon2D extends Polygon2D | |
func _get_configuration_warning() -> String: | |
if shape == null: | |
return "Shape resource is null" | |
if shape is ConvexPolygonShape2D and len(shape.points) <= 1: | |
return "ConvexPolygonShape2D has too few points to draw" | |
if shape is ConcavePolygonShape2D: |
This file contains hidden or 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
// Create gulpfile.js | |
const gulp = require("gulp"); | |
const inline = require("gulp-inline"); | |
gulp.task("default", () => { | |
return gulp | |
.src("./dist/*/*.html") | |
.pipe(inline()) | |
.pipe(gulp.dest("./single-dist")); | |
}); |
OlderNewer