for /f "Tokens=*" %f in ('dir /l/b/a-d') do (rename "%f" "%f")
for /f "Tokens=*" %g in ('dir /b') do (for /f "Tokens=*" %f in ('dir %~fg /l /b /a-d') do (rename "%~fg\%f" "%f"))
| navigate to C:\Users\\ and open .yarnrc and manually update it as follows: | |
| # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | |
| # yarn lockfile v1 | |
| strict-ssl false |
| import React, { useEffect, useState } from 'react' | |
| import classes from './index.module.scss' | |
| const Countdown = () => { | |
| const [time, setTime] = useState({ | |
| days: 0, | |
| hours: 0, | |
| minutes: 0, | |
| seconds: 0, | |
| }) |
| // Define the array of objects | |
| const data = [ | |
| { id: 1, date: '2023-05-15' }, | |
| { id: 2, date: '2023-05-10' }, | |
| { id: 3, date: '2023-05-20' }, | |
| // Add more objects as needed | |
| ]; | |
| // Function to sort and filter the array by date range | |
| function sortAndFilterByDateRange(array, startDate, endDate) { |
| Reducer file (reducer.ts) | |
| postFiatDepositRequest: (state, { payload }: PayloadAction<IPostFiatDepositWorker>) => { | |
| state.fiatTransactionsLoading = true; | |
| }, | |
| Redux Saga file (saga.ts) | |
| function* postFiatDepositWorker({ payload }: PayloadAction<IPostFiatDepositWorker>) { | |
| const { apiParams, onFinally } = payload; | |
| let hasError = false; | |
| try { |
| <html> | |
| <head> | |
| <script type="text/javascript" src="/jquery.min.js"></script> | |
| <title>Mime type checker</title> | |
| <script> | |
| $(function () { | |
| var result = $('div#result'); | |
| if (window.FileReader && window.Blob) { | |
| $('span#submit').click(function () { | |
| var files = $('input#file').get(0).files; |
| <?php | |
| /** | |
| * WordPress Query Comprehensive Reference | |
| * Compiled by luetkemj - luetkemj.com | |
| * | |
| * CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
| * Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
| */ | |
| $args = array( |
for /f "Tokens=*" %f in ('dir /l/b/a-d') do (rename "%f" "%f")
for /f "Tokens=*" %g in ('dir /b') do (for /f "Tokens=*" %f in ('dir %~fg /l /b /a-d') do (rename "%~fg\%f" "%f"))
| /** | |
| * Returns a hash code for a string. | |
| * (Compatible to Java's String.hashCode()) | |
| * | |
| * The hash code for a string object is computed as | |
| * s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1] | |
| * using number arithmetic, where s[i] is the i th character | |
| * of the given string, n is the length of the string, | |
| * and ^ indicates exponentiation. | |
| * (The hash value of the empty string is zero.) |
| <?php if (strpos( $_SERVER['HTTP_ACCEPT'], 'image/webp' ) !== false) { ?> | |
| <section | |
| class="section" | |
| style="background-image:url(path-to-webp-image);" | |
| > | |
| <?php } else { ?> | |
| <section | |
| class="section" | |
| style="background-image:url(path-to-fallback-image);" | |
| > |
| mysqldump -u root -p sakila > C:\MySQLBackup\sakila_20200424.sql |