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
<?php | |
$GW2_API_KEY = ""; // Get it from https://account.arena.net/applications with 'account', 'tradingpost' scopes | |
$GW2_API_LANG = "en"; // en, es, de, fr and zh: https://wiki.guildwars2.com/wiki/API:2#Localisation | |
$TELEGRAM_API_KEY = ""; // Get this from telegram using @BotFather | |
$TELEGRAM_CHAT_ID = ""; // Search how to get the chatId of your username or use @RawDataBot | |
$SKIP_IF_ONLINE = true; // if the player is online, wont notify | |
// Get previous time of check | |
$CURRENT_TIME = time(); // UTC Time | |
$LAST_TIME_FILE = "last_check.log"; |
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
function number_format(value, decimals = 0, decPoint = '.', thousandsSep: string = ',') { | |
let formatted: string = ''; | |
const formatter = new Intl.NumberFormat( | |
'de', // this will be ignored | |
{ | |
style: 'currency', | |
currency: 'eur', // this will be ignored | |
minimumFractionDigits: decimals, | |
maximumFractionDigits: decimals | |
} |
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
'use strict'; | |
// Alternative version | |
const { PublishManager } = require('app-builder-lib/out/publish/PublishManager'); | |
const { normalizeOptions } = require('electron-builder/out/builder'); | |
const { Packager } = require('app-builder-lib/out/packager'); | |
const pkg = require('../package.json'); | |
const argv = require('yargs').argv; | |
const buildFile = argv.file.replace('${version}', pkg.version); | |
const buildDir = argv.buildDir || './build/'; |
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
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"defaultProfile": "{577c6bb9-9c1a-42b3-93ff-613621d0072a}", | |
"profiles": | |
[ | |
{ | |
"guid": "{577c6bb9-9c1a-42b3-93ff-613621d0072a}", | |
"name": "cmder", | |
"icon": "G:\\data\\Programs\\cmder\\icons\\cmder.ico", | |
"commandline": "cmd.exe /K \"G:\\data\\Programs\\cmder\\vendor\\init.bat\" -new_console:d:%USERPROFILE%", |
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
/** | |
* Usage: | |
* const JWT = require('./JWT'); | |
* const payload = { | |
* 'sub': 1234, // userid | |
* 'iat': Date().now(), // issued at | |
* 'exp': Math.floor(Date.now() / 1000) + 86400 // expiration time (1day = 86400) | |
* }; | |
* const token = JWT.encode(payload, 'my_secret'); | |
* console.log(token); |
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
Vagrant.configure("2") do |config| | |
config.vm.box = "minimal/xenial64" | |
config.vm.hostname = "gitlab.local" | |
config.vm.network :private_network, ip: "192.168.10.20" | |
config.vm.network :forwarded_port, guest: 80, host: 8080 | |
config.vm.network :forwarded_port, guest: 443, host: 8443 | |
config.vm.network :forwarded_port, guest: 2222, host: 2222 | |
config.vm.provision :docker | |
config.vm.provision "shell", inline: <<-SHELL | |
apt-get update |
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
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/xenial64" | |
config.vm.provider "virtualbox" do |vb| | |
vb.customize ["modifyvm", :id, "--memory", 1024, "--cpus", 1, "--vram", 256, "--accelerate3d", "on"] | |
vb.customize ["setextradata", :id, "GUI/MaxGuestResolution", "any" ] | |
vb.customize ["setextradata", :id, "CustomVideoMode1", "1024x768x32" ] | |
vb.customize ["setextradata", :id, "GUI/CustomVideoMode1", "1024x768x32" ] | |
vb.gui = true | |
end | |
config.vm.provision "shell", inline: <<-SHELL |
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
"use strict"; | |
export class JWTHelper { | |
/** | |
* Decode a JWT token | |
* | |
* @static | |
* @param {string} token | |
* @throws Error | |
* @returns object|boolean |
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
{ | |
// See https://go.microsoft.com/fwlink/?LinkId=733558 | |
// for the documentation about the tasks.json format | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "run", | |
"type": "shell", | |
"command": "D:/Godot/bin/Godot.exe --path \"${workspaceRoot}\"" | |
}, |
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
# Usage: | |
# 1. Select the objects in blender | |
# 2. Open a Text Editor view in Blender. | |
# 3. Press Alt + O, or go to Text>Open Text Block and open the .py file | |
# 4. Then simply press Run script | |
import bpy | |
if bpy.context.selected_objects != []: | |
for obj in bpy.context.selected_objects: | |
if obj.type == 'MESH': |
NewerOlder