Git - List Remote Git Branches and last commit's author and author date

for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ai %ar by %an" $branch | head -n 1` \\t$branch; done | sort -r

Http server local dist

npx http-server ./ -a localhost -p 7000 -o -c1

プロセスとスレッドについて

[スレッドとプロセスの違いを完全に理解する](https://zenn.dev/farstep/articles/process-thread-difference)  

例外処理について

[【ソフトウェア設計】例外処理を考える](https://zenn.dev/koduki/articles/e9373cb78fcfef)  

Restyling of Events block (page)

/* --------------------
PAGE ⁠⁠/ Events
-------------------- */
/* Buttons */
.events--teaser-middle-page .button--primary {
    text-transform: var(--button-text-transform);
    border: var(--button-border);
    color: var(--button-font-color);
    background: var(--button-background-color);
}
.events--teaser-middle-page .button--primary:hover {
    text-transform: var(--button-text-transform-hover);
    border: var(--button-border-hover);
    color: var(--button-font-color-hover);
    backgrou

windows mouse scroll

$mode = Read-host "How do you like your mouse scroll (0 or 1)?"; Get-PnpDevice -Class Mouse -PresentOnly -Status OK | ForEach-Object { "$($_.Name): $($_.DeviceID)"; Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters" -Name FlipFlopWheel -Value $mode; "+--- Value of FlipFlopWheel is set to " + (Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters").FlipFlopWheel + "`n" }

モーダル - micromodal

<!--トリガー要素-->
<div class="btn-wrap">
	<button class="btn" data-micromodal-trigger="modal-1">トリガー</button>
</div>

<!--モーダルとして表示する要素-->
<div class="c-modal" id="modal-1" aria-hidden="true">
	<div class="c-modal__overlay" tabindex="-1" data-micromodal-close>
		<div class="c-modal__container" role="dialog" aria-modal="true">
			<div class="c-modal__content">
				<button class="c-modal__close" aria-label="Close modal" data-micromodal-close></button>
				<p>コンテンツが入ります</p>
			</div><!-- c-modal__conte

micromodalの導入

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).MicroModal=t()}(this,(function(){"use strict";function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function t(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=t

Microdata

{%- if shop.brand.metafields.social_links.size > 0 -%}
  "sameAs": [
    {%- for social_link in shop.brand.metafields.social_links -%}
      {{- social_link.last.value | json -}}{%- unless forloop.last -%},{%- endunless -%}
    {%- endfor -%}
  ],
{%- endif -%}

du Sort by Size

 du -h --max-depth=1 | perl -e 'sub h{%h=(K=>10,M=>20,G=>30);($n,$u)=shift=~/([0-9.]+)(\D)/;
return $n*2**$h{$u}}print sort{h($b)<=>h($a)}<>;'




du -k * | sort -nr | cut -f2 | xargs -d '\n' du -sh

Update programming libraries

### Node Packages
* `npm outdated` to list outdated packages in a repo
* `npm update <package_name> --save`
  * Updates and saves changes to `package.json`

### Python Packages
* `pip list --outdated`
* `pip install package_name -U`


### Ruby Gems
* `bundle audit update`
  * fetches updated list of secuity vulnerabilities in gems
* `bundle update <game_name>`

UPload image

<?php
// Tableau pour stocker les messages d'erreur
$errors = [];

// Vérifions si une image a été envoyée via la requête POST
if (isset($_FILES['profile_picture'])) {
    $file = $_FILES['profile_picture'];

    // Vérifions s'il y a eu une erreur lors du téléchargement
    if ($file['error'] !== UPLOAD_ERR_OK) {
        $errors[] = 'Une erreur s\'est produite lors du téléchargement de l\'image: ' . $this->getUploadError($file['error']);
    }

    // Vérifions la taille du fichier
    $maxFile

UAT Attribute Test | POST FINAL | prev_current_default_at_period_end

Rechecking this in prod a little late in the game
-- specify a cutoff date
with vx_cutoff_date as (select (select * from dw_reporting_meta.add_business_days(current_date,-3)) as cutoff_date)
,
-- Construct a set of UAT loan_ids
v0_uat_loan_ids as (select *
from (
    values
    
        (563673),(563746),(563783),(563802),(563811),(563815),(563832),(563841),(563850),(563857),(563892),(563900),(563913),(563921),(563942),(563987),(563999),(564015),(564020),(564054),
        (564104),(564137),(564140),(564148),(564190),(564198),(564228),(564231),(

[Flutter] expansion_widget

library expansion_widget;

import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

bool? _restoreStateFromPageStore(BuildContext context) {
  return PageStorage.maybeOf(context)?.readState(context) as bool?;
}

void _saveStateToPageStore(BuildContext context, bool isExpanded) {
  PageStorage.maybeOf(context)?.writeState(context, isExpanded);
}

/// A widget with a customizable title that can expands or collapses
/// the widget to reveal or hide the [content]

Double It

/**
 * Definition for singly-linked list.
 * function ListNode(val, next) {
 *     this.val = (val===undefined ? 0 : val)
 *     this.next = (next===undefined ? null : next)
 * }
 */
/**
 * @param {ListNode} head
 * @return {ListNode}
 */
var doubleIt = function(head) {
    // Initialize a dummy head for the new linked list
    var dummyHead = new ListNode(0);
    var current = dummyHead;
    
    // Initialize a variable to store the carry
    var carry = 0;
    
    // Traverse the linked list

07052024

inicio{
"host":"2E1D171D2F230168F241375AFD66",
"porta":"9F9184E2"
}fim