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
library(png) | |
library(grid) | |
library(tidyverse) | |
# generate random data | |
my.data <- data.frame(x = c(1:10), y = rnorm(10)) | |
# plot random data | |
g <- ggplot(my.data, aes(x = x, y = y)) + | |
geom_point() |
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
library(tidyverse) | |
library(gridExtra) | |
plot_cars_var <- function(col_name){ | |
ggplot(mtcars, aes_string(x = "mpg", y = col_name)) + | |
geom_smooth() + | |
geom_point() | |
} | |
mtcars %>% |
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
// | |
// Copyright 2014-2015 Amazon.com, | |
// Inc. or its affiliates. All Rights Reserved. | |
// | |
// Licensed under the AWS Mobile SDK For Unity | |
// Sample Application License Agreement (the "License"). | |
// You may not use this file except in compliance with the | |
// License. A copy of the License is located | |
// in the "license" file accompanying this file. This file is | |
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR |
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
{ | |
"n_practice_trials": 5, | |
"n_main_trials": 10, | |
"size": 1 | |
} |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class SteamVROverlayCheck : MonoBehaviour | |
{ | |
public GameObject warningDisplay; | |
void OnEnable() |
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
public static class Texture2DExtensions | |
{ | |
public static void Add(this Texture2D tex1, Texture2D tex2) |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class PositionAdjuster : MonoBehaviour | |
{ | |
// amount by which each button press changes the height by | |
public float heightIncrement = 0.01f; | |
// keys on the keyboard we wish to use for adjusting position |
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
{ | |
"example_string": "aaa", | |
"example_bool": true, | |
"example_int": 3, | |
"example_float": "3.14", | |
"example_array": [ | |
1, | |
2, | |
3, | |
4 |
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
import pygame | |
import random | |
clr_red = (255, 0, 0) | |
clr_green = (0, 255, 0) | |
clr_blue = (0, 0, 255) | |
txt_red = "red" | |
txt_green = "green" | |
txt_blue = "blue" |
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
/// <summary> | |
/// Contains methods for creating routines which can be used as coroutines to easy lerp over a time period. | |
/// | |
/// Example moves an object between two points over 5 seconds: |
OlderNewer