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
# coding: utf-8 | |
# code snippet from http://www.johnvinyard.com/blog/?p=268 | |
import numpy as np | |
from numpy.lib.stride_tricks import as_strided as ast | |
def norm_shape(shape): | |
''' | |
Normalize numpy array shapes so they're always expressed as a tuple, | |
even for one-dimensional shapes. |
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 os | |
import requests | |
import time | |
import sys | |
video_quality = "540p" # available qualities 360p, 540p, 720p | |
""" | |
In order to get courseId go to a course page open network tab in browser dev tools and search for "onDemandSpecializations" | |
in search input of network tab and then go to videos section of say week 1 , check the query param "courseId" its value is what we use can use as value for "one_of_specialization_course_id" |
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 UnityEngine; | |
using System.Collections; | |
public class AimCamera : MonoBehaviour { | |
public Transform target; | |
Vector3 f0Dir= Vector3.zero; | |
Vector3 upVal= Vector3.zero; | |
float zoomDistance= 5; | |
float theta= 0.0F; | |
float fai= 0.0F; |