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
# Name: checkDisk.sh | |
# Created by: Brimur | |
# Created: Nov 26th 2019 | |
# This script is used to control Transmission jobs based on available disk space. | |
# | |
# This should be run as a cronjob (every minute) on the server/computer running Transmission | |
# | |
# If you use a download manager tell it to add jobs as PAUSED | |
# | |
# - If disk is nearly full (limit) then stop all jobs |
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
var HashTable = function() { | |
this._storage = []; | |
this._count = 0; | |
this._limit = 8; | |
} | |
HashTable.prototype.insert = function(key, value) { | |
//create an index for our storage location by passing it through our hashing function | |
var index = this.hashFunc(key, this._limit); |
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
class App extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
todos: ['wake up', 'eat a breakfast', 'try to take over the world'], | |
value: '' | |
} | |
this.handleChange = this.handleChange.bind(this); |