Open the Windows Settings app, search for Developer Mode and enable it.
Run Powershell as Admin and execute:
Set-ExecutionPolicy Unrestricted -Force
. { iwr -useb https://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
<?php | |
define('ADMIN_LOGIN','wally'); | |
define('ADMIN_PASSWORD','mypass'); // Could be hashed too. | |
if (!isset($_SERVER['PHP_AUTH_USER']) || !isset($_SERVER['PHP_AUTH_PW']) | |
|| ($_SERVER['PHP_AUTH_USER'] != ADMIN_LOGIN) | |
|| ($_SERVER['PHP_AUTH_PW'] != ADMIN_PASSWORD)) { | |
header('HTTP/1.1 401 Unauthorized'); | |
header('WWW-Authenticate: Basic realm="Password For Blog"'); | |
exit("Access Denied: Username and password required."); |
#include <iostream> // std::cout | |
#include <string> // std::string | |
#include <vector> // std::vector | |
#include <memory> // std::unique_ptr, std::make_unique | |
class Animal { | |
// Base Class - Eventually Abstract | |
std::string name; | |
protected: |
/* | |
Imagine this code was written before initializer lists. (Pre C++11) | |
When compared with `main_without_pointer_oldskool_and_broken.cpp`: | |
- Point's location member is a pointer to a Location. | |
- Location does not need a default constructor. | |
- The location member is only constructed once. | |
*/ | |
#include <iostream> |
#include <iostream> | |
class Base { | |
protected: | |
int value; // Derived class will have access. | |
public: | |
Base(int value) : value{value} { | |
std::cout << "Base Constructor\n"; | |
} |
#include "ofApp.h" | |
//-------------------------------------------------------------- | |
void ofApp::setup() { | |
ofAddListener(ofGetWindowPtr()->events().keyPressed, this, | |
&ofApp::keycodePressed); | |
} | |
//-------------------------------------------------------------- | |
void ofApp::update(){ |
Open the Windows Settings app, search for Developer Mode and enable it.
Run Powershell as Admin and execute:
Set-ExecutionPolicy Unrestricted -Force
. { iwr -useb https://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#pragma once | |
#include <string> | |
#include <vector> | |
const std::vector<std::string> words{ | |
"abominates", "abominating", "abomination", "abominations", "abominator", "abominators", "abomine", "abondance", | |
"abongo", "abonne", "abonnement", "aboon", "aborad", "aboral", "aborally", "abord", "aboriginal", "aboriginality", | |
"aboriginally", "aboriginals", "aboriginary", "aborigine", "aborigines", "aborning", "aborsement", "aborsive", | |
"abort", "aborted", "aborter", "aborters", "aborticide", "abortient", "abortifacient", "abortin", "aborting", | |
"abortion", "abortional", "abortionist", "abortionists", "abortions", "abortive", "abortively", "abortiveness", |
Request an archive of your photos and metadata (json) from the "Your Flickr Data" section of your Flickr user account page.
Extract all provided zip files to a single folder with the JSON files unzip to a json
subfolder.
Install exiftool, a command-line application for reading, writing and editing meta information in a wide variety of files..
Sort your Flickr photos into yearly folders by EXIF timestamp and set file-system timestamps from the command line:
## Ignore Visual Studio temporary files, build results, and | |
## files generated by popular Visual Studio add-ons. | |
## | |
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore | |
# User-specific files | |
*.rsuser | |
*.suo | |
*.user | |
*.userosscache |
#include "ofApp.h" | |
//-------------------------------------------------------------- | |
void ofApp::setup() { | |
} | |
//-------------------------------------------------------------- | |
void ofApp::update() { | |
a2.update({static_cast<float>(ofGetMouseX()), static_cast<float>(ofGetMouseY())}); | |
} |