Skip to content

Instantly share code, notes, and snippets.

View JamesDBartlett3's full-sized avatar

James D. Bartlett III JamesDBartlett3

View GitHub Profile
@JamesDBartlett3
JamesDBartlett3 / nerf_da_chat_button.css
Last active April 30, 2018 18:40
Park the Udacity Chat Button @ Bottom-Left [CSS]
/*/////////////////////////////////////////////////////////////////////
Step 1: Install the "Stylish" extension for your browser.
Step 2: Create a new "style" in Stylish.
Step 3: Select "URLs starting with" from the drop-down menu.
Step 4: Paste this into the adjacent URL box:
https://classroom.udacity.com/nanodegrees/
Step 5: Give your new style a name and check the "Enabled" box.
Step 6: Paste the code below into the "Code 1" field & click "Save."
Step 7: Reload the Udacity classroom page, and enjoy!
/////////////////////////////////////////////////////////////////////*/
@JamesDBartlett3
JamesDBartlett3 / colorized_queryselect_&_getelementsbyclass_examples
Created May 14, 2018 15:53
Colorized .querySelect() & .getElementsByClass() Examples
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100" height="50" id="getelements">
<text font-size="16" x="10" y="20">
document.getElementsByClassName(<tspan fill="red">\'red test\'</tspan>);
</text>
</svg>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100" height="50" id="queryselector">
<text font-size="16" x="10" y="20">
document.querySelector(\"<tspan fill="red">div.user-panel.main</tspan> input[name=\'login\']\");
// Source: https://stackoverflow.com/a/11213851
$.ajax({
url: "YOUR FOLDER",
success: function(data){
$(data).find("a:contains(.jpg)").each(function(){
// will loop through
var images = $(this).attr("href");
$('<p></p>').html(images).appendTo('a div of your choice')
@JamesDBartlett3
JamesDBartlett3 / udacity-fend-p6-outline-checklist.md
Created August 31, 2018 00:13
Project 6 Outline / Checklist for Udacity's Front-End Web Developer Nanodegree

⬥ Project 6 —— MyReads-React

  ╭── <Rubric>
  │
☐ ├── ⟐ README file
☐ │   ├── Clear formatting
☐ │   ├── Neat organization
☐ │   ╰── Easy-to-follow instructions
#!/bin/bash
wget https://docs.openvinotoolkit.org/archives/2019_R3.1.zip
unzip -q 2019_R3.1.zip -d openvino_temp
rm 2019_R3.1.zip
mv openvino_temp/home/jenkins/agent/workspace/openvino/documentation/upload_documentation/automation/scripts/upload_documentation/OVINO/2019_R3.1/ OpenVINO_Docs
rm -rf openvino_temp
@JamesDBartlett3
JamesDBartlett3 / Video_Preview.ipynb
Created December 24, 2019 13:33
Video Preview In Jupyter Notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JamesDBartlett3
JamesDBartlett3 / arctic.sh
Created February 2, 2020 15:25
Add Repo To GitHub Arctic Code Vault
#!/bin/bash
git pull
echo "Backup this repo to GitHub Arctic Code Vault" > ice_ice_baby.md
git add .
git commit -m "arctic code vault commit"
git push origin master
@JamesDBartlett3
JamesDBartlett3 / conv_output.py
Last active April 18, 2020 16:03 — forked from avmoldovan/conv_output.py
Pytorch Conv2d: Helper Functions for Output Shape & Padding
#shamelessly copied from here https://discuss.pytorch.org/t/utility-function-for-calculating-the-shape-of-a-conv-output/11173/7
# original docs at https://pytorch.org/docs/master/nn.html#conv2d
import math
def num2tuple(num):
return num if isinstance(num, tuple) else (num, num)
def conv2d_output_shape(h_w, kernel_size=1, stride=1, pad=0, dilation=1):
h_w, kernel_size, stride, pad, dilation = num2tuple(h_w), \
@JamesDBartlett3
JamesDBartlett3 / tarx.sh
Created May 14, 2020 01:58 — forked from alphapapa/tarx.sh
tarx: Tar and compress files showing progress using tqdm or pv
#!/bin/bash
# Tar and compress files using tqdm or pv for a progress bar.
# * Safety
# NOTE: These are disabled by default in this template but should be
# enabled when feasible. Documentation is from the Bash man page.
# ** errexit
@JamesDBartlett3
JamesDBartlett3 / tensorflow-vs-openvino-performance-benchmark.ipynb
Last active July 9, 2020 05:09
TensorFlow vs. OpenVINO: Performance Benchmark.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.