$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" }
<!--トリガー要素-->
<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
!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
{%- 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 -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
### 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>`
<?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
-- 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),(
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]
/**
* 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
inicio{
"host":"2E1D171D2F230168F241375AFD66",
"porta":"9F9184E2"
}fim
# Use rocker/r-ver as the base image
FROM rocker/tidyverse:4.3.2
# Update system and install system dependencies
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
apt-utils \
cmake \
build-essential \
python3-pip \
python3-dev \
libzmq3-dev \
libcurl4-gnutls-dev \
libssl-dev \
libxml2-dev \
libpcre2-dev \
zlib1g-dev \
liblzma-dev \
libbz2-dev \
Zip various files
```
zip archivename.zip filename1 filename2 filename3
```
Zip a directory
```
zip -r archivename.zip directory_name
```
Zip a directory plus some files
```
zip -r archivename.zip directory_name1 directory_name2 file1 file1
```
Generate splitted zip files
```
zip -s 1g -r archivename.zip directory_name
```
Protect the zip file with password
```
zip -e archivename.zip directory_name
```
<?php if (!is_paged()) : ?>
//1ページ目でのみ表示
<?php else:?>
//2ページ目以降でのみ表示
<?php endif; ?>
// アコーディオンメニュー
// レスポンシブ対応
function acmenu_func($element, $media) {
var mediaQuery = window.matchMedia(`(max-width: ${$media}px)`);
function handle() {
var parent = $($element + " a.parent");
var childList = $($element + " a.parent ~ ul");
if (!$media) {
done();
} else {
if (mediaQuery.matches) {
done();
} else {
remove_done();
}
}
function done() {