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
#!/usr/bin/env tclsh8.6 | |
# ------------------------------------------------------------- | |
# IdleRPG client | |
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
# Description: Allow to query XML API from IdleRPG | |
# License: BSD-2-Clause | |
# Usage: idlerpg-check <player name> | |
# ------------------------------------------------------------- |
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
#!/bin/sh | |
# ------------------------------------------------------------- | |
# Reindent a file from x to y spaces | |
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
# Project: Nasqueron | |
# License: BSD-2-Clause | |
# Example: reindent 2 4 HelloWorld.vue | |
# ------------------------------------------------------------- |
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 clap::Parser; | |
#[derive(Parser,Default,Debug)] | |
#[clap(author="Nasqueron project", version, about="Import FANTOIR database into PostgreSQL")] | |
struct Arguments { | |
/// Create table if it doesn't exist | |
#[arg(short = 'c')] | |
create_table: bool, | |
/// Truncate table if it already exists, allowing the overwrite mode. |
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
int main(void) { | |
#if defined (__STDC_IEC_559__) | |
return 0; | |
#else | |
return 1; | |
#endif | |
} |
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
#!/bin/sh | |
if [ $# -ne 0 ] | |
then | |
>&2 echo "Usage: $(basename "$0")" | |
exit 1 | |
fi | |
REPO_PATH=$(git rev-parse --show-toplevel) | |
REPO_RETCODE=$? |
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
triggers = {}; | |
(function () { | |
var s = document.createElement('script'); | |
s.setAttribute('src', 'https://code.jquery.com/jquery-3.5.1.min.js'); | |
document.body.appendChild(s); | |
}()); | |
// Pause as we need jQuery object to be available, and so we need to let time to the browser to load the script |
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
--- modules/cmdmod.py.orig 2021-07-30 19:55:37.000000000 +0000 | |
+++ modules/cmdmod.py 2021-09-05 07:59:54.531476000 +0000 | |
@@ -69,9 +69,7 @@ | |
log = logging.getLogger(__name__) | |
-DEFAULT_SHELL = salt.grains.extra.shell()["shell"] | |
- | |
# Overwriting the cmd python module makes debugging modules with pdb a bit |
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 limiting_factor::kernel::DefaultApplication; | |
use requests::*; | |
pub fn run () { | |
let routes = routes![ | |
status, | |
favicon, | |
users::register, | |
users::get_player, | |
]; |
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 | |
use Brick\Math\BigDecimal; | |
require 'vendor/autoload.php'; | |
$left = BigDecimal::of(14); | |
$right = BigDecimal::one()->toScale(15)->dividedBy(BigDecimal::ten()->power(15)); | |
$product = $left->multipliedBy($right); |
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"; | |
/* ------------------------------------------------------------- | |
Nasqueron infrastructure | |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
Project: Nasqueron | |
Author: Sébastien Santoro aka Dereckson | |
Dependencies: jQuery | |
Filename: app.js | |
Licence: CC-BY 4.0, MIT, BSD-2-Clause (multi-licensing) |
NewerOlder