Skip to content

Instantly share code, notes, and snippets.

Victoria Stuart victoriastuart

Block or report user

Report or block victoriastuart

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@victoriastuart
victoriastuart / notes.txt
Last active Jul 26, 2017
[Linux] recurse through child directories, searching and replacing text in files (two methods), with optional filename, filename extension matching
View notes.txt
==============================================================================
/mnt/Vancouver/Programming/scripts/claws_sed_tests/notes.txt
# ----------------------------------------------------------------------------
[victoria@victoria claws_sed_tests]$ date
Fri Jul 7 10:07:39 PDT 2017
View vpn_scripts.txt
VPN Notes, Scripts
Victoria Stuart: Apr 12, 2017
[gmail: Victorias.Linux@ ...]
File: /mnt/Vancouver/Reference/VPN/vpn notes, scripts.txt
Saved 2017-Apr-12 as public Gist:
https://gist.github.com/victoriastuart/19acf4944c9c95af461d62b27d0c19ec
View weather.html
<!DOCTYPE html>
<html lang="en-us">
<!--
Example derived from:
https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/conditional
-->
<head>
<meta charset="utf-8" />
View tag_file.txt
PROBLEM: tag a file, at the top of the file, with the base name of the parent directory.
SOLUTION 1 -- non-empty files:
$ bn=${PWD##*/} ## bn: basename
$ sed -i '1s/^/'"$bn"'\n/' <filename>
SOLUTION 2a -- empty files:
@victoriastuart
victoriastuart / cnn_age_gender_demo_with_image_crop.py
Last active Jul 26, 2017
Caffe - age, gender CNN with image crop ...
View cnn_age_gender_demo_with_image_crop.py
#!/usr/bin/env python
# coding: utf-8
"""AGE AND GENDER CLASSIFICATION USING CONVOLUTIONAL NEURAL NETWORKS - DEMO
This code is originates with the paper:
Gil Levi and Tal Hassner, "Age and Gender Classification Using Convolutional Neural Networks,"
IEEE Workshop on Analysis and Modeling of Faces and Gestures (AMFG), at the IEEE Conf. on
Computer Vision and Pattern Recognition (CVPR), Boston, June 2015
View caffe_installation_notes.txt
==============================================================================
Caffe Installation Notes
[2016-Nov-21] Arch Linux x86_64 | Intel Core i7-4790 CPU | ...
==============================================================================
* Caffe home page: http://caffe.berkeleyvision.org/installation.html
* GitHub: https://github.com/BVLC/caffe
View webcam_cv3_v2_fps_v3.py
# coding: utf-8
# FILE:
# -----
# /mnt/Vancouver/apps/Webcam-Face-Detect/webcam_cv3_v2_fps_v3.py
# FUNCTIONALITY:
# --------------
# * outputs webcam to screen and finds faces, eyes
# * writes webcam video to *.avi file (MJPG codec) via OpenCV/FourCC
You can’t perform that action at this time.