This file contains 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
burncpu | |
multithread | |
mutex | |
semaphore |
This file contains 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
#include <cstdlib> | |
#include <iostream> | |
#include <pthread.h> | |
using std::cout; | |
using std::cerr; | |
using std::endl; | |
// Don't forget to compile with -pthread |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
#include <cstdlib> | |
#include <iostream> | |
#include <sys/types.h> | |
#include <sys/wait.h> | |
#include <unistd.h> | |
using std::cout; | |
using std::cerr; | |
using std::endl; |
This file contains 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
#include <cstdlib> | |
#include <iostream> | |
#include <sys/wait.h> | |
#include <unistd.h> | |
using std::cout; | |
using std::endl; | |
int main() |
This file contains 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
#include <cstdlib> | |
#include <iostream> | |
#include <sys/utsname.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <unistd.h> | |
using std::cout; | |
using std::endl; |
This file contains 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
# | |
# Simple logging configuration for Python | |
# | |
# NOTE: Don't add spaces between comma-separated lists in this file | |
# | |
[DEFAULT] | |
filename = 'output.log' | |
[loggers] |
This file contains 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
app.config['DYNAMO_TABLES'] = [ | |
dict( | |
TableName='users', | |
KeySchema=[dict(AttributeName='username', KeyType='HASH')], | |
AttributeDefinitions=[dict(AttributeName='username', AttributeType='S')], | |
ProvisionedThroughput=dict(ReadCapacityUnits=5, WriteCapacityUnits=5) | |
), dict( | |
TableName='groups', | |
KeySchema=[dict(AttributeName='name', KeyType='HASH')], | |
AttributeDefinitions=[dict(AttributeName='name', AttributeType='S')], |
This file contains 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
1 | 6 | |
---|---|---|
2 | 6 | |
3 | 10 | |
4 | 12 |
This file contains 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
#!/usr/bin/env python3 | |
# Hebb Net example - Character recognition | |
# | |
# See Fausett, Example 2.8, pp. 55-56 | |
# | |
TRAINING_X = [ | |
'#...#', | |
'.#.#.', |