Real unit test (isolation, no children render)
Calls:
- constructor
- render
/* | |
Copyright (C) 2016 Apple Inc. All Rights Reserved. | |
See LICENSE.txt for this sample’s licensing information | |
Abstract: | |
A paper company which handles trees, logs, and paper. Uses a custom logging component. | |
*/ | |
import os.log |
Logfile RoATING file operations using UNIX logrotate utility. | |
============================================= | |
+ Rotate the log file when file size reaches a specific size | |
+ Continue to write the log information to the newly created file after rotating the old log file | |
+ Compress the rotated log files | |
+ Specify compression option for the rotated log files | |
+ Rotate the old log files with the date in the filename | |
+ Execute custom shell scripts immediately after log rotation | |
+ Remove older rotated log files |
As of January 2018, Raspbian does not yet include the latest Python release, Python 3.6. This means we will have to build it ourselves, and here is how to do it. There is also an ansible role attached that automates it all for you.
GPIO Zero allows you to create objects representing GPIO devices. As well as running it on a Raspberry Pi, you can also install GPIO Zero on a PC and create objects referencing GPIO pins on a Pi over the network.
To do this, you'll need to do a few things to get set up:
Enable Remote GPIO on the Pi in the Raspberry Pi Configuration Tool.
Run the pigpio daemon on the Pi:
#!/bin/bash | |
exec fluidsynth -i /Library/Audio/Sounds/Banks/GeneralUser\ GS\ v1.47.sf2 $1 |
#import <Foundation/Foundation.h> | |
int main(int argc, char *argv[]) | |
{ | |
@autoreleasepool | |
{ | |
NSProgress *progress = [[NSProgress alloc] initWithParent:nil userInfo:nil]; | |
progress.cancellationHandler = ^{ | |
NSLog(@"cancel"); | |
}; |
/* | |
The "hello world" of neural networks: a simple 3-layer feed-forward | |
network that implements an XOR logic gate. | |
The first layer is the input layer. It has two neurons a and b, which | |
are the two inputs to the XOR gate. | |
The middle layer is the hidden layer. This has two neurons h1, h2 that | |
will learn what it means to be an XOR gate. | |