This file contains hidden or 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
, | |
/| __ | |
/ | ,-~ / | |
Y :| // / | |
| yy /( .^ | |
>-"~"-v" | |
/ Y | |
j<blink>o o</blink> | | |
( ~T~ j | |
>._-' _./ |
This file contains hidden or 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 | |
$mapping = [ | |
'Jan' => 'Jan.', | |
'Feb' => 'Feb.', | |
'Mar' => 'Mar.', | |
'Apr' => 'Apr.', | |
'May' => 'May', | |
'Jun' => 'June', | |
'Jul' => 'July', |
This file contains hidden or 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 | |
function unescapedFiles($path){ | |
$files = array_diff(scandir($path), array('.', '..')); | |
foreach ($files as $file) { | |
$file = str_finish($path, '/') . $file; | |
$content = json_decode(file_get_contents($file), true); | |
$content = json_encode($content, JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES); | |
file_put_contents($file, $content); | |
} |
This file contains hidden or 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
let mix = require('laravel-mix'); | |
const antdRegex = /antd.+\.less$/; | |
const theme = { | |
'primary-color': '#0097FF', | |
}; | |
// Exclude quill icons | |
Mix.listen('configReady', function(config) { | |
const rules = config.module.rules; |
This file contains hidden or 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
#!/bin/bash | |
for i in {1..9} | |
do | |
wget "https://echa.europa.eu/diss-cl-inventory-portlet/images/pictograms/ghs0$i.png" | |
done |
This file contains hidden or 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
import { useEffect, useRef, useState, useCallback } from "wouter/react-deps"; | |
export default () => { | |
const [path, update] = useState(currentPathname()); | |
const prevPath = useRef(path); | |
useEffect(() => { | |
// this function checks if the location has been changed since the | |
// last render and updates the state only when needed. | |
// unfortunately, we can't rely on `path` value here, since it can be stale, |
This file contains hidden or 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
FROM ubuntu:20.04 | |
LABEL maintainer="Taylor Otwell" | |
ARG WWWGROUP | |
WORKDIR /var/www/html | |
ENV DEBIAN_FRONTEND noninteractive | |
ENV TZ=UTC |
OlderNewer