Skip to content

Instantly share code, notes, and snippets.

View RussellSpitzer's full-sized avatar
🤷‍♀️
...

Russell Spitzer RussellSpitzer

🤷‍♀️
...
View GitHub Profile
if(! (!this.collisionDetection || !this.collisionMap || !this.collisionMap.loaded)) {
//Breaking is for losers
this.key.forward = true
var x = Math.round(this.collisionMap.pixels.width / 2 + this.dummy.position.x * this.collisionPixelRatio);
var z = Math.round(this.collisionMap.pixels.height / 2 + this.dummy.position.z * this.collisionPixelRatio);
var pos = new THREE.Vector3(x, 0, z);
//console.log(x, z, this.collisionMap.pixels.width, this.collisionMap.pixels.height, this.dummy.position.x, this.dummy.position.z)
@RussellSpitzer
RussellSpitzer / mods.js
Created April 8, 2016 17:46
AutoDrive v1
if(! (!this.collisionDetection || !this.collisionMap || !this.collisionMap.loaded)) {
if (this.speed < 7) {
this.key.forward = true
} else {
this.key.forward = false
}
var x = Math.round(this.collisionMap.pixels.width / 2 + this.dummy.position.x * this.collisionPixelRatio);
var z = Math.round(this.collisionMap.pixels.height / 2 + this.dummy.position.z * this.collisionPixelRatio);
var pos = new THREE.Vector3(x, 0, z);
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package org.apache.hadoop.fs;
import com.google.common.annotations.VisibleForTesting;
import java.io.Closeable;
import java.io.FileNotFoundException;

Configuration Reference

All parameters should be prefixed with spark.cassandra.

Cassandra Authentication Parameters

DefaultAuthConfFactory
Property NameDefaultDescription
auth.conf.factory

Configuration Reference

Cassandra Authentication Parameters

Property Name Default Description
spark.cassandra.auth.conf.factory DefaultAuthConfFactory name of a Scala module or class implementing AuthConfFactory providing custom authentication configuration
spark.cassandra.auth.username None Login name for password authentication
spark.cassandra.auth.password None password for password authentication
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@RussellSpitzer
RussellSpitzer / SparkGraphComputer.java
Created October 5, 2015 18:09
Thoughts on passing in persistContext
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0

Configuration Reference

Cassandra Authentication Parameters

Property Name Default Description
spark.cassandra.auth.conf.factory com.datastax.spark.connector.cql.DefaultAuthConfFactory$ name of a Scala module or class implementing AuthConfFactory providing custom authentication configuration
spark.cassandra.auth.username None Login name for password authentication
spark.cassandra.auth.password None password for password authentication

Configuration Reference

Cassandra Authentication Parameters

Property Name Default Description
spark.cassandra.auth.conf.factory com.datastax.spark.connector.cql.DefaultAuthConfFactory$ name of a Scala module or class
spark.cassandra.auth.username None Login name for password authentication
spark.cassandra.auth.password None password for password authentication
package com.datastax.spark.connector.rdd
import com.datastax.driver.core.Session
import com.datastax.spark.connector.{PartitionKeyColumns, AllColumns, ColumnSelector}
import com.datastax.spark.connector.cql.CassandraConnector
import org.apache.spark.rdd.RDD
import com.datastax.spark.connector.writer.{BoundStatementBuilder, RowWriter}
import com.datastax.spark.connector.rdd.reader.{PrefetchingResultSetIterator, RowReader}
/**