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 ProceduralFloor : MonoBehaviour | |
{ | |
//prefab to instantiate | |
public GameObject floorTile; |
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 gab.opencv.*; | |
import processing.video.*; | |
import java.awt.*; | |
Capture video; | |
OpenCV opencv; | |
PImage img, thresh, blur, adaptive; | |
void setup() { |
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 UnityEngine.Networking; | |
using UnityEditor; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Security.Cryptography; | |
using System.Text; | |
using System; | |
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; | |
[RequireComponent(typeof(MeshFilter), typeof(MeshRenderer))] | |
public class Grid : MonoBehaviour { | |
public float xOrg; | |
public float yOrg; | |
public float scale = 0.1F; | |
public int xSize, ySize; |
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
SELECT v2m6q_npg_plants.name, GROUP_CONCAT(v2m6q_npg_plants_seasons.name) as seasons FROM v2m6q_npg_plants, v2m6q_npg_plants_seasons WHERE find_in_set(v2m6q_npg_plants_seasons.id, v2m6q_npg_plants.seasons)>0 | |
GROUP BY name |
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
post "/newtest/:filename/:title" do | |
image = Magick::Image.from_blob(request.body.read).first | |
puts image.inspect | |
@title = params[:title] | |
@filename = params[:filename] | |
n = VideoThread.new | |
n.title = @title | |
n.created_at = Time.now | |
n.updated_at = Time.now | |
n.save |