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
package io.rsmc.RSMC; | |
import io.rsmc.RSMC.handlers.ITickingEntity; | |
import net.minecraft.entity.EntityLivingBase; | |
public class AndyClass implements ITickingEntity { | |
private static final int _10_SECOND_TICK = 10 * 20; | |
private static final int _30_SECOND_TICK = 30 * 20; |
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": "Particle Swarm", | |
"id": "particleSwarm", | |
"params": [ | |
{ | |
"id": "dimension", | |
"description": "Dimension of the solution (number of elements in the array)", | |
"min": 1, | |
"max": 100 | |
}, |
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 markers = MarkerService.getAllMarkers(); | |
$scope.map.markers = _.reduce(filters, function(previousVal, filter) { | |
return filter.filterFunc(previousVal); | |
}, markers); | |
console.log('Went from ' + markers.length + ' to ' + $scope.map.markers.length); | |
var sampleFilter = { | |
name : "Order Completion", | |
id : "completion", |
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 columns = [ | |
{id: 1234567890, title: "shittily named title"}, | |
{id: 0987654321, title: "shitty title 2"} | |
]; | |
var mapping_table = { | |
mapped_column1_name: "shitty title 2", | |
mapped_column2_name: "shittily named title"} | |
}; |
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
function deployPromise(profile) { | |
var shasum = crypto.createHash('sha1'); | |
shasum.update(config.secretSalt + profile.ampacheID); | |
ampacheMysqlPassword = shasum.digest('hex'); | |
return mysqlHelper.setupAmpacheSQL(profile, ampacheMysqlPassword).then(function() { | |
configHelper.writeAmpacheConfig(profile, ampacheMysqlPassword); | |
configHelper.writeNginxConfig(profile).then(function() { | |
sh.run("sudo service nginx reload"); | |
}); | |
return createInstance(profile); |
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
{ | |
"algorithm": "particleSwarm", | |
"fitnessFunction": "sphere", | |
"parameters": { | |
"dimension": 3, | |
"isMaxObj": true, | |
"numRuns": 100, | |
"iterations": 100, | |
"numParticles": 100, | |
"minPosition": -5.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
private void doMySearch(String query) { | |
if (query.equalsIgnoreCase("sttubkcid") || query.equalsIgnoreCase("ttubkcid")) { | |
toggleLoadingIndicator(); | |
} | |
} | |
public static void toggleLoadingIndicator() { | |
boolean currentValue = getSharedPrefs().getBoolean(PrefsEnums.KEY_LOADING_INDICATOR.toString(), false); | |
SharedPreferences.Editor editor = getSharedPrefs().edit(); | |
editor.putBoolean(PrefsEnums.KEY_LOADING_INDICATOR.toString(), !currentValue); |
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
Executing tasks: [:Dolly-App:assembleKentucky_wildcatsDebug, :Dolly-App:assembleKentucky_wildcatsDebugAndroidTest] |
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
#!/bin/bash | |
LOG_FILE=/var/lib/transmission-daemon/posttorrent.log | |
# Username for transmission remote. | |
TR_USERNAME="transmission" | |
# Password for transmission remote. | |
TR_PASSWORD="" | |
# Get current time. | |
NOW=$(date +%Y-%m-%d\ %H:%M:%S) | |
DEST_DIR="/media/raid/Processed Torrents/" |