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
from math import * | |
import sys | |
# python program to calculate K-means given single-dimension data points | |
# synopsis: `python3 k.py "<x values>" "<c values>" N` | |
# c values should be the values at t = 1 | |
# N is the number of iterations | |
def get_arr_from_str(s): | |
arr_str = s.split(" ") |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class PlayerFollow : MonoBehaviour | |
{ | |
public GameObject player; | |
private Vector3 offset = new Vector3(5.0f, 0, 0); | |
void Start() |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class PlayerMovement : MonoBehaviour | |
{ | |
public CharacterController controller; | |
public float runSpeed = 100f; | |
float horiz = 0f; |
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
#!/usr/bin/env python | |
# -*- coding: UTF-8 -*- | |
import sys | |
import os | |
import re | |
import time | |
import StringIO | |
from shutil import copyfile |