A Pen by Chris Coyier on CodePen.
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 | |
| # FILES=./files/* | |
| TARGET=./new # make sure that folder exists! | |
| COUNTER=1 # if you want to start from 0, just put 0 there | |
| for f in $(ls -t files/*) | |
| do | |
| echo "Processing $f file..." | |
| mv -i $f $TARGET/$COUNTER"___"${f##*/} | |
| let "COUNTER++" |
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
| version: '3' | |
| services: | |
| strapi: | |
| container_name: strapi | |
| image: strapi/strapi | |
| environment: | |
| - DATABASE_CLIENT=mysql | |
| - DATABASE_HOST=mysql | |
| - DATABASE_PORT=3306 |
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
| <div class="wrapper"> | |
| <div class="line-clamp"> | |
| <p> | |
| You can use <code>-webkit-line-clamp</code> property to truncate the text to the specific number of lines. | |
| An ellipsis will be shown at the point where the text is clamped. | |
| </p> | |
| </div> | |
| </div> |
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
| .text-gradient { | |
| background: linear-gradient(to right, darkblue, darkorchid); | |
| color: transparent; | |
| background-clip: text; | |
| } |
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 | |
| # save this file as tailc then | |
| # run as: $ tailc logs/supplier-matching-worker.log Words_to_highlight | |
| file=$1 | |
| if [[ -n "$2" ]]; then | |
| color=' | |
| // {print "\033[37m" $0 "\033[39m"} | |
| /(WARN|WARNING)/ {print "\033[1;33m" $0 "\033[0m"} | |
| /(ERROR|CRIT)/ {print "\033[1;31m" $0 "\033[0m"} |
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
| function useStickyState(defaultValue, key) { | |
| const [value, setValue] = React.useState(() => { | |
| const stickyValue = window.localStorage.getItem(key); | |
| return stickyValue !== null | |
| ? JSON.parse(stickyValue) | |
| : defaultValue; | |
| }); | |
| React.useEffect(() => { | |
| window.localStorage.setItem(key, JSON.stringify(value)); | |
| }, [key, value]); |
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
| .wrapper { | |
| display: grid; | |
| grid-template-columns: | |
| 1fr | |
| min(65ch, 100%) | |
| 1fr; | |
| } | |
| .wrapper > * { | |
| grid-column: 2; | |
| } |
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
| jobs: | |
| format: | |
| runs-on: ubuntu-latest | |
| if: "! contains(github.event.head_commit.message, 'wip')" |
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
| # Copyright: Applidget - 2013 | |
| # License: MIT | |
| # Author: Sébastien Saunier (@ssaunier) | |
| # | |
| # Create regex patterns insensitive to accented characters | |
| # Useful when querying a name in MongoDB | |
| # Mapping array source: http://stackoverflow.com/a/228006/197944, with a .gsub("\\x", "\\u00") | |
| class RegexpExtension |