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 | |
return [ | |
/* | |
|-------------------------------------------------------------------------- | |
| Authentication Language Lines | |
|-------------------------------------------------------------------------- | |
| | |
| The following language lines are used during authentication for various |
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 | |
/** | |
* Inherited Methods | |
* @method void wantToTest($text) | |
* @method void wantTo($text) | |
* @method void execute($callable) | |
* @method void expectTo($prediction) | |
* @method void expect($prediction) |
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
const Conf = require("conf"); | |
const util = require("util"); | |
const store = new Conf({ | |
name: "notebag", | |
cwd: "ABSOLUTE_PATH_TO_FOLDER_CONTAINING_NOTEBAG_JSON", | |
encryptionKey: "YOUR_LICENSE_KEY", | |
}); | |
console.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
require('dotenv').config(); | |
const { notarize } = require('electron-notarize'); | |
exports.default = async function notarizing(context) { | |
const { electronPlatformName, appOutDir } = context; | |
if (electronPlatformName !== 'darwin') { | |
return; | |
} | |
const appName = context.packager.appInfo.productFilename; |
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
const { notarize } = require('electron-notarize'); | |
async function notarizing(context) { | |
console.log("• Starting notarization of app"); | |
return await notarize({ | |
appBundleId: 'com.yourorg.whatever', | |
appPath: "ABSOLUTE_PATH_TO_APP_FILE", | |
appleId: "YOUR_APPLE_ID_EMAIL", | |
appleIdPassword: "YOUR_APP_SPECIFIC_APPLE_ID_PASSWORD", // https://support.apple.com/en-us/HT204397 |
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
# Return next 60 days by default | |
start = datetime.combine(date.today(), time(0, 0)) | |
end = start + timedelta(days=60) | |
logging.error('//////////////////////////////////////// IT IS WHAT IT IS: {} {}'.format(start, end)) | |
if (start := self.request.query_params.get('start')) and (end := self.request.query_params.get('end')): | |
start = datetime.combine(datetime.strptime(start, '%Y-%m-%d').date(), time(0, 0)) | |
end = datetime.combine(datetime.strptime(end, '%Y-%m-%d').date(), time(23, 59)) | |
logging.error('||||||||||||||||||||||||||||||||||||||||||||| WHATS GOING ON HERE: {} {}'.format(start, end)) |
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 | |
const WPM = 250 | |
const READING_TIME_PER_IMAGE = 12; // seconds | |
const IMAGE_THRESHOLD = 10; // After this threshold each image counts for 3 seconds | |
function readingTimeEstimate($markdown) { | |
$markdown = strip_tags($markdown); | |
$markdown = str_replace("\n", ' ', $markdown); |
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
{ | |
"name": "pretzelhands/single-file-cli", | |
"description": "A single file CLI application", | |
"type": "cli-app", | |
"require": { | |
"symfony/console": "^5.2" | |
}, | |
"authors": [ | |
{ | |
"name": "Richard Blechinger", |
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 php | |
<?php | |
require __DIR__ . '/vendor/autoload.php'; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Input\InputOption; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use Symfony\Component\Console\SingleCommandApplication; |
OlderNewer