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
| <style> | |
| a { | |
| position: relative; | |
| transition: all 0.2s ease; | |
| } | |
| .ink { | |
| display: inline-block; | |
| position: absolute; | |
| background: rgba(155, 155, 155, 0.3); |
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
| MS-DOS script for creating files (any extension) from an array in a text document. | |
| ie: 'filenames.txt' document contains below list of items: | |
| file-1.html | |
| file-2.html | |
| file-3.html | |
| file-4.html | |
| file-5.html | |
| Open MS-DOS in same folder and run below script |
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
| #!/usr/bin/env python | |
| from __future__ import print_function | |
| from __future__ import absolute_import | |
| import os | |
| import sys | |
| import shutil | |
| import numpy as np | |
| CONTEXT_LENGTH = 48 |
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
| <?xml version="1.0"?> | |
| <!-- | |
| Umbraco examine is an extensible indexer and search engine. | |
| This configuration file can be extended to add your own search/index providers. | |
| Index sets can be defined in the ExamineIndex.config if you're using the standard provider model. | |
| More information and documentation can be found on GitHub: https://github.com/Shazwazza/Examine/ | |
| --> | |
| <Examine> | |
| <ExamineIndexProviders> |
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
| <?xml version="1.0"?> | |
| <!-- | |
| Umbraco examine is an extensible indexer and search engine. | |
| This configuration file can be extended to create your own index sets. | |
| Index/Search providers can be defined in the UmbracoSettings.config | |
| More information and documentation can be found on GitHub: https://github.com/Shazwazza/Examine/ | |
| --> | |
| <ExamineLuceneIndexSets> | |
| <!-- The internal index set used by Umbraco back-office - DO NOT REMOVE --> |
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
| Fix object fit cover for IE | |
| $('.card-with-image img').each(function () { | |
| var t = $(this), | |
| s = 'url(' + t.attr('src') + ')', | |
| p = t.parent(); | |
| t.hide(); | |
| if (p.has('img')) { | |
| p.css({ |
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
| // How to split a wordpress bootstrap loop into multiple columns | |
| /** This goes into template **/ | |
| <?php $the_query = new WP_Query('cat=1&showposts=50&orderby=title&order=asc');?> | |
| <?php foreach(new WP_Query_Columns($the_query, 10) as $column_count) : ?> | |
| <ul> | |
| <?php while ($column_count--) : $the_query->the_post(); ?> | |
| <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> | |
| <?php endwhile; ?> | |
| </ul> |
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 __future__ import print_function | |
| from __future__ import absolute_import | |
| from distutils.dir_util import copy_tree | |
| import os | |
| import sys | |
| import glob | |
| import json | |
| import re | |
| import shutil |
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
| def findReplace(directory, find, replace, filePattern): | |
| for path, dirs, files in os.walk(os.path.abspath(directory)): | |
| for filename in fnmatch.filter(files, filePattern): | |
| filepath = os.path.join(path, filename) | |
| with open(filepath) as f: | |
| s = f.read() | |
| s = s.replace(find, replace) | |
| with open(filepath, "w") as f: | |
| f.write(s) | |
| MYPATH = "folder/folder" |