This file contains hidden or 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
float calculateDegrees(const glm::vec3 prev, const glm::vec3 curr, const glm::vec3 next) { | |
const glm::vec3 f_1 = glm::normalize(next - curr); | |
const glm::vec3 f_2 = glm::normalize(curr - prev); | |
return glm::angle(f_1, f_2); | |
} |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.saftglas.pebble.cradle" > | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<application | |
android:allowBackup="true" | |
android:icon="@drawable/ic_launcher" | |
android:label="@string/app_name" |
This file contains hidden or 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
public class Page { | |
PageObservable mPageObservable = new PageObservable(); | |
private Context mContext; | |
private ViewGroup mParent; | |
private View mView; | |
private int mID; | |
private boolean mIsInFront; |
This file contains hidden or 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
public class Foo { | |
private int foo; | |
public void test() { | |
final int bar; | |
int baz; | |
new Runnable() { | |
void run() { | |
foo = 0; // ok, can both read and write |
This file contains hidden or 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
main :- | |
load_file('test.fil',X). | |
load_file(File, Out) :- | |
seeing(Old), | |
see(File), | |
read_lines(Out), | |
seen, | |
see(Old), | |
!. |
This file contains hidden or 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 MAX_DEPTH = 3; | |
var findPath = function (source, target, u2f, visitor) { // u2f = user to friend | |
source = Graph.userToIndex(source); | |
target = Graph.userToIndex(target); | |
var dist = [] | |
var prev = [] | |
var queue = [] | |
var seen = [] | |
This file contains hidden or 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 MAX_DEPTH = 3; | |
var findPath = function (source, target, u2f, visitor) { // u2f = user to friend | |
var dist = {} | |
var prev = {} | |
var queue = [] | |
dist[source] = 0 | |
prev[source] = source |