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
local inAlive = alife() | |
azazel_death = false | |
addon_azazel_menu = {} | |
class "addonAzazelFactionChooser"(CUIScriptWnd) | |
function addonAzazelFactionChooser:__init(mainmenuReference) | |
super() | |
self.mainmenuReference = mainmenuReference |
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
[logic] | |
active = beh@general | |
on_hit = hit | |
on_death = death | |
combat_ignore = combat_ignore | |
post_combat_time = 0,0 | |
[beh@general] | |
combat_ignore = combat_ignore | |
combat_ignore_cond = {is_enemy_actor()} false, {-alert} always, false |
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
alias nr="npm run" | |
_npm_scripts() { | |
# check package.json file in current directory | |
if [ ! -f ./package.json ]; then | |
return | |
fi | |
local scripts="$(node -e 'const { scripts } = require(`./package.json`); if (!scripts) process.exit(); let a = Object.entries(scripts); for (let s in scripts) { console.log(s); }' | grep -E ^$2)" | |
local -a toks |
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
# load completion for git alias | |
_completion_loader git | |
__git_complete gb _git_branch | |
__git_complete gck _git_checkout | |
__git_complete gd _git_diff | |
__git_complete gc _git_commit | |
__git_complete gl _git_log | |
__git_complete ga _git_add |
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
#! /usr/bin/node | |
const Readable = require('stream').Readable; | |
const stream = new Readable; | |
stream.on('data', chunk => { | |
console.log(JSON.parse(chunk.toString())); | |
}); |
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
const fs = require('fs'); | |
const path = require('path'); | |
const cp = require('child_process'); | |
const gulp = require('gulp'), | |
watch = require('gulp-watch'); | |
if (process.env.PROJECT == "") { | |
console.error(`You need specified the PROJECT=<project_folder> env. This variable indicates to project dir, which need to build.`); | |
return; |
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
{ | |
"configurations": [ | |
{ | |
"name": "Linux", | |
"includePath": [ | |
"${env.HOME}/Qt5.9.6/5.9.6/gcc_64/include/**", | |
"${workspaceFolder}/**" | |
], | |
"defines": [], | |
"compilerPath": "/usr/bin/gcc", |
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
/** | |
* Server side for issuance client scripts | |
*/ | |
import path from "path"; | |
import Express from 'express'; | |
import BodyParser from "body-parser"; | |
import { readFile, writeFile } from "./util"; |
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
const webpack = require('webpack'); | |
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin'); | |
const { CheckerPlugin } = require('awesome-typescript-loader'); | |
const CleanWebpackPlugin = require('clean-webpack-plugin'); | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
const prefixer = require('autoprefixer'); | |
const path = require('path'); | |
const rootFolder = process.cwd(); |
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 path from "path"; | |
import Express from 'express'; | |
const root = process.cwd(); | |
const p = path.resolve(root, 'build'); | |
const app = Express(); | |
app.use(Express.static(p)); | |
app.get('/', (req, res) => { |
NewerOlder