**Number To Roman""
Source from: https://stackoverflow.com/questions/14994941/numbers-to-roman-numbers-with-php
/**
* @param int $number
* @return string
*/
function numberToRomanRepresentation($number) {
/** | |
* Script to parse a Postman backupt to Insomnia keeping the same structure. | |
* | |
* It parses: | |
* - Folders | |
* - Requests | |
* - Environments | |
* | |
* Notes: Insomnia doesn't accept vars with dots, if you are using you must replace yours URLs manually (see ENVIRONMENTS_EXPORTS). | |
*/ |
**Number To Roman""
Source from: https://stackoverflow.com/questions/14994941/numbers-to-roman-numbers-with-php
/**
* @param int $number
* @return string
*/
function numberToRomanRepresentation($number) {
Update nextcloud/remote.php
:
try {
require_once __DIR__ . '/lib/base.php';
// All resources served via the DAV endpoint should have the strictest possible
// policy. Exempted from this is the SabreDAV browser plugin which overwrites
// this policy with a softer one if debug mode is enabled.
header("Content-Security-Policy: default-src 'none';");
function logColor(color, args) { | |
console.log(`%c ${args.join(' ')}`, `color: ${color}`); | |
} | |
const log = { | |
aliceblue: (...args) => { logColor('aliceblue', args)}, | |
antiquewhite: (...args) => { logColor('antiquewhite', args)}, | |
aqua: (...args) => { logColor('aqua', args)}, | |
aquamarine: (...args) => { logColor('aquamarine', args)}, | |
azure: (...args) => { logColor('azure', args)}, |
<?php | |
function validaCPF($cpf) { | |
// Extrai somente os números | |
$cpf = preg_replace( '/[^0-9]/is', '', $cpf ); | |
// Verifica se foi informado todos os digitos corretamente | |
if (strlen($cpf) != 11) { | |
return false; |
<? | |
//personal auth token from your github.com account. doing this will eliminate having to use oauth everytime | |
$token = "zzzzzzzzYourPersonalGithubAccessTokenzzzzzzzz"; | |
//post url, https://developer.github.com/v3/issues/ | |
$url = "https://api.github.com/repos/octocat/some_repo/issues?access_token=" . $token; | |
//request details, removing slashes and sanitize content | |
$title = htmlspecialchars(stripslashes("Test Title''\s"), ENT_QUOTES); | |
$body = htmlspecialchars(stripslashes("Test Body'\'$%'s"), ENT_QUOTES); |
#! /usr/bin/env python3 | |
"""Fixing bluetooth stereo headphone/headset problem in debian distros. | |
Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197 | |
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone. | |
This will be only fixes the bluez5 problem mentioned above . | |
Licence: Freeware |
#/usr/bin/env bash | |
# MIT © Sindre Sorhus - sindresorhus.com | |
# git hook to run a command after `git pull` if a specified file was changed | |
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
check_run() { | |
echo "$changed_files" | grep --quiet "$1" && eval "$2" |