| Pattern | Description | Example |
|---|---|---|
[a-zA-Z0-9]+ |
Alphanumeric characters only | https://regex101.com/r/Nlg8FS/1 |
[0-9]+ |
Numerical characters only | https://regex101.com/r/l5QjqA/1 |
((string1).*(string2))|((string2).*(string1)) |
Match a string containing string1 AND string2 in any order | https://regex101.com/r/uE4rE5/1 |
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
| // The mixin | |
| @mixin responsive-sprite( | |
| $sprite-path, | |
| $sprite-width, | |
| $sprite-height, | |
| $icon-width, | |
| $icon-height, | |
| $icon-pos-x, | |
| $icon-pos-y){ |
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
| vagrantfile: | |
| target: local | |
| vm: | |
| provider: | |
| local: | |
| box: puphpet/debian75-x64 | |
| box_url: puphpet/debian75-x64 | |
| box_version: '0' | |
| chosen_virtualizer: virtualbox | |
| virtualizers: |
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
| robocopy temp_empty_folder folder_to_delete /purge |
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
| git remote set-url origin new-repo-url.git |
Copy the output of the terminal directly into your clipboard (this works with Git Bash at least !)
<command> | clipList all global NPM packages/modules
npm list -g --depth 0
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
| fsutil file createnew 1Mbfile.png 1000000 |
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
| SELECT | |
| p.product_id, | |
| pd.name, | |
| pd.description, | |
| pd.title_tag AS meta_title, | |
| pd.meta_keywords, | |
| pd.meta_description, | |
| CONCAT('http://www.domain.co.uk/', u.keyword) AS URL, | |
| GROUP_CONCAT(pt.tag) AS tags, | |
| p.status |
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
| .ao-seo-tool { | |
| position: absolute; | |
| top: 0; | |
| right: 0; | |
| bottom: 0; | |
| left: 0; | |
| min-height: 100%; | |
| font-family: Arial, sans-serif; | |
| } |
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
| var arr = [1,2,3,4,[5,5,[1,1,1],6,7],[1,2,[2,3,[100,[23,45,11,[600,599]],101,99],4],3]]; | |
| function flattenArray(array) { | |
| return array.reduce(function(accumulator, current) { | |
| if (Array.isArray(current)) { | |
| return accumulator.concat(flattenReduce(current)); | |
| } else { | |
| return accumulator.concat(current); | |
| } | |
| }, []); |
OlderNewer