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
<main> | |
<div class="toi1"> | |
<h2 class="red">Enjoy the holidays!</h2> | |
<h3 class="green"> | |
<span>Let it snow</span> | |
<span>Let it snow</span> | |
<span>Let it snow</span> | |
</h3> | |
</div> | |
</main> |
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 searchTable(searchtextId,tableId,columnIndex) { | |
var input, filter, table, tr, td, i,idx, txtValue; | |
input = document.getElementById(searchInputId); | |
filter = input.value.toUpperCase(); | |
table = document.getElementById(tableId); | |
tr = table.getElementsByTagName("tr"); | |
idx = document.getElementById("select"); // In this case, a <select> element is used to get the value for the columnindex | |
val = idx.value; | |
for (i = 0; i < tr.length; i++) { | |
td = tr[i].getElementsByTagName("td")[val]; |
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 pathlib import Path | |
import pandas as pd | |
import json | |
def filelist_to_dataframe(path_to_dir:str,extension:str,mode:int) -> None: | |
"""Searches the given directory for any file of the specified extension""" | |
url = [ "<a href='file://" , | |
"' rel='external noopener nofollow' type='", | |
"' target='_blank'>", |
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
<section class="preview"> | |
<h2>Original image</h2> | |
<img src="https://mdn.mozillademos.org/files/5397/rhino.jpg" alt=""> | |
</section> | |
<section> | |
<h2>Redrawn with canvas</h2> | |
<canvas id="cnv"></canvas> | |
</section> |
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
class DictMaker(dict): | |
def __init__(self, *args, **kwargs): | |
self.update(*args, **kwargs) | |
def __getitem__(self, key): | |
val = dict.__getitem__(self, key) | |
print 'GET', key | |
return val | |
def __setitem__(self, key, val): |
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
Sub RemoveProtection() | |
Dim dialogBox As FileDialog | |
Dim sourceFullName As String | |
Dim sourceFilePath As String | |
Dim sourceFileName As String | |
Dim sourceFileType As String | |
Dim newFileName As Variant | |
Dim tempFileName As String | |
Dim zipFilePath As Variant |