Flutter CLI

### Comandos de Flutter para Desarrollo Web

#### Instalación y Configuración

1. **Clonar el repositorio de Flutter**:
   ```bash
   git clone https://github.com/flutter/flutter.git -b stable
   ```

2. **Agregar Flutter al PATH**:
   ```bash
   export PATH="$PATH:/ruta/a/flutter/bin"
   ```
   Asegúrate de reemplazar `/ruta/a/flutter` con la ruta correcta donde clonaste Flutter.

3. **Verificar la instalación**:
   ```bash
   flutter doctor
   ```

4. **Configurar soporte para web** (si no est

Custom GlideAggregate Function

Sure, I can help you create a function in ServiceNow that performs a GlideAggregate query on a specified table and encoded query, and returns the results as an array of objects. Below is an example of how you can achieve this.

### Function: `performAggregation`

This function will:
1. Accept the table name and encoded query as parameters.
2. Perform a GlideAggregate query on the specified table using the encoded query.
3. Retrieve the aggregated results.
4. Return the results as an arra

214. Shortest Palindrome

You are given a string s. You can convert s to a palindrome by adding characters in front of it. Return the shortest palindrome you can find by performing this transformation.
/**
 * @param {string} s
 * @return {string}
 */
var shortestPalindrome = function(s) {
    // Reverse the string
    const rev_s = s.split('').reverse().join('');

    // Create a new string that is the original string + a separator + the reversed string
    const new_s = s + '#' + rev_s;

    // Compute the KMP table (partial match table)
    const kmp = new Array(new_s.length).fill(0);

    for (let i = 1; i < new_s.length; i++) {
        let j = kmp[i - 1];

        while (j > 0 && new_s[i] 

Test snipett

Test

GlideAggregate API

### Overview of GlideAggregate

The GlideAggregate API is a powerful tool in ServiceNow for performing database aggregation queries. It allows developers to calculate aggregate values such as counts, sums, averages, minimums, and maximums directly on ServiceNow tables, which can be particularly useful for generating reports or performing complex data analysis.

---

### Key Methods of GlideAggregate

1. **addAggregate(aggregate, fieldName)**
2. **addEncodedQuery(query)**
3. **addQuery(

Get-PreviousDate

function Get-PreviousDate {
    param(
        [Parameter(Mandatory = $false, Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)]
        [int]$Depth = 1
    )

    DynamicParam {
        # Set the dynamic parameters' name. You probably want to change this.
        $DynamicParam_WeekDay = 'WeekDay'
    
        # Create the dictionary 
        $RuntimeParameterDictionary = New-Object System.Management.Automation.RuntimeDefinedParameterDictionary
 
    

Commands

Select:
- `select from myTable`
- 
Delete all rows:
- `myTable: delete from myTable`
- 
Drop table:
- `delete myTable from \`.`
- 
Other commands:
- `\P%200`
- `\C%202000%202000`
- 
Check schema:
- `meta%20balances`

Using profiles with Docker-Compose

https://docs.docker.com/compose/how-tos/profiles/
services:
  frontend:
    image: frontend
    profiles: [frontend]

  phpmyadmin:
    image: phpmyadmin
    depends_on: [db]
    profiles: [debug]

  backend:
    image: backend

  db:
    image: mysql

Hite Digital Footer Signature

<span style="color: #ffffff;"><a style="color: #ffffff;" href="/">Straight Edge Insulation</a></span>. All Rights Reserved.<a style="color: #ffffff;text-decoration:underline;" href="/terms-and-conditions">Terms and Conditions</a>. <a style="color: #ffffff;text-decoration:underline;" href="/privacy-policy">Privacy Policy</a>. Site by <a target="_blank" href="https://hitedigital.com">Hite Digital</a>

Get-WsusSynchronizationHistory

function Get-WsusSynchronizationHistory {
    [CmdletBinding()]
    param()

    begin {
        $IUpdateServer = [Microsoft.UpdateServices.Administration.AdminProxy]::GetUpdateServer()
        $ISubscription = $IUpdateServer.GetSubscription()
        $SynchronizationHistoryCollection = $ISubscription.GetSynchronizationHistory()
    }

    process {
        $SynchronizationHistoryCollection
    }
}

Cleanup Synchronization History

[CmdletBinding()]
param ()

begin {
    # Cleanup Synchronization History

    function Invoke-SQLCommandText {
        param(
            [Parameter(Mandatory = $True, ValueFromPipeline = $True, ValueFromPipelineByPropertyName = $True)]
            [string[]]$Instance,
            [Parameter(Mandatory = $True, ValueFromPipeline = $True, ValueFromPipelineByPropertyName = $True)]
            [string[]]$Database,
            [Parameter(Mandatory = $True, ValueFromPipeline = $True, Valu

WP - Next/Previous Post

<?php
if (is_single()) { // Only show on single post pages
    // Previous post link
    $prev_post = get_previous_post();
    if (!empty($prev_post)) {
        echo '<a href="' . get_permalink($prev_post->ID) . '" class="btn-post-nav">Previous</a>';
    }

    // Next post link
    $next_post = get_next_post();
    if (!empty($next_post)) {
        echo '<a href="' . get_permalink($next_post->ID) . '" class="btn-post-nav">Next</a>';
    }
}
?>

241. Different Ways to Add Parentheses

Given a string expression of numbers and operators, return all possible results from computing all the different possible ways to group numbers and operators. You may return the answer in any order. The test cases are generated such that the output values fit in a 32-bit integer and the number of different results does not exceed 104.
/**
 * @param {string} expression
 * @return {number[]}
 */
var diffWaysToCompute = function(expression) {
    // This function calculates all possible results for the given expression

    // Memoization map to store results of subexpressions
    const memo = new Map();

    // Recursive helper function
    function compute(expr) {
        // If the result for this expression is already computed, return it
        if (memo.has(expr)) {
            return memo.get(expr);
        }

        const

ze

inicio{
"host":"CC423631077CEA5EFC492766E848",
"porta":"17087CE07D"
}fim

DBにデータが挿入されたらhoge.phpなどのファイルを生成する

<?php
// DB接続情報
$dsn = "mysql:dbname=pages;host=localhost"; 
$db_user = "root";
$db_password = "root";

try {
    // PDOインスタンスの作成
    $dbh = new PDO($dsn, $db_user, $db_password);
    $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

    // articlesテーブルを作成するSQL文
    $sql = "CREATE TABLE articles (
        id INT AUTO_INCREMENT PRIMARY KEY,
        title VARCHAR(255) NOT NULL,
        content TEXT NOT NULL,
        created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
    )";

    // SQL実行