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
| rem ##### HOWTO SETUP ##### | |
| rem 1) install awk & iconv | |
| rem 2) open TortoiseSVN settings | |
| rem External Programs > Diff Viewer > Advanced > Add | |
| rem 3) "edit extension specific diff program" dialog | |
| rem Filename, extension or mime-type: xml | |
| rem External Program: path/to/xmlDiff.bat | |
| rem | |
| bash xmlDiff.sh %1 %2 %3 %4 %5 %6 %7 %8 %9 |
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
| rem ##### HOWTO SETUP ##### | |
| rem 1) install awk & iconv | |
| rem 2) open TortoiseSVN settings | |
| rem External Programs > Diff Viewer > Advanced > Add | |
| rem 3) "edit extension specific diff program" dialog | |
| rem Filename, extension or mime-type: inf | |
| rem External Program: path/to/infDiff.bat | |
| rem | |
| bash infDiff.sh %1 %2 %3 %4 %5 %6 %7 %8 %9 |
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
| "use strict"; | |
| const fnOperator = { | |
| "+": function add(arg1, arg2) { | |
| return arg1 + arg2; | |
| }, | |
| "-": function sub(arg1, arg2) { | |
| return arg1 - arg2; | |
| }, | |
| "*": function mul(arg1, arg2) { |
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
| version: '3.8' | |
| services: | |
| elasticsearch: | |
| image: elasticsearch:7.8.0 | |
| networks: | |
| - elastic | |
| restart: always | |
| ports: |
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
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: nodejs-exp1 | |
| spec: | |
| restartPolicy: OnFailure | |
| containers: | |
| - name: nodejs-server | |
| image: nodejs-hello | |
| imagePullPolicy: IfNotPresent |
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
| from flask import Flask, render_template, request, url_for | |
| from redminelib import Redmine | |
| app = Flask(__name__) | |
| target = 'http://localhost:8080' | |
| def get_project(key, projectIdentifier): | |
| redmine = Redmine(target, key=key) | |
| project = redmine.project.get(projectIdentifier) | |
| return project |
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
| version: '3.8' | |
| services: | |
| redmine: | |
| image: redmine:4.1 | |
| networks: | |
| - frontend | |
| volumes: | |
| - ./data/volume:/usr/src/redmine/files |
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 gym | |
| import time | |
| def run(env, mode): | |
| env.reset() | |
| episode_done = False | |
| while not episode_done: | |
| env.render(mode=mode) | |
| #time.sleep(0.01) | |
| _, _, episode_done, _ = env.step(env.action_space.sample()) |
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 gym | |
| import time | |
| def run(env): | |
| env.reset() | |
| episode_done = False | |
| while not episode_done: | |
| env.render() | |
| time.sleep(0.01) | |
| _, _, episode_done, _ = env.step(env.action_space.sample()) |
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 crypto = require("crypto"); | |
| const fs = require("fs"); | |
| function getSignature(type, pkey, data) { | |
| var pkey = fs.readFileSync(pkey); | |
| var data = new Buffer.from(JSON.stringify(data)); | |
| const signer = crypto.createSign(type).update(data); | |
| const signature = signer.sign(pkey, "base64"); | |
| return signature; | |
| } |