Skip to content

Instantly share code, notes, and snippets.

View AliAkbarMontazeri's full-sized avatar
🌴
On vacation

AliAkbarMontazeri

🌴
On vacation
View GitHub Profile
@AliAkbarMontazeri
AliAkbarMontazeri / .gitattributes
Created February 13, 2021 03:37 — forked from nemotoo/.gitattributes
.gitattributes for Unity3D with git-lfs
## Unity ##
*.cs diff=csharp text
*.cginc text
*.shader text
*.mat merge=unityyamlmerge eol=lf
*.anim merge=unityyamlmerge eol=lf
*.unity merge=unityyamlmerge eol=lf
*.prefab merge=unityyamlmerge eol=lf
@AliAkbarMontazeri
AliAkbarMontazeri / introrx.md
Created September 3, 2017 11:42 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
using UnityEngine;
using System.Collections;
public class Blocks : MonoBehaviour
{
//Public variable for the size of the terrain, width and heigth
public Vector2 Size = new Vector2( 20 , 20 );
//Height multiplies the final noise output
// LoadingScreenManager
// --------------------------------
// built by Martin Nerurkar (http://www.martin.nerurkar.de)
// for Nowhere Prophet (http://www.noprophet.com)
//
// Licensed under GNU General Public License v3.0
// http://www.gnu.org/licenses/gpl-3.0.txt
using UnityEngine;
using UnityEngine.UI;
@AliAkbarMontazeri
AliAkbarMontazeri / Curved.shader
Created June 6, 2016 07:38 — forked from g0ody/Curved.shader
A Shader to make everything cruved in Unity3D
Shader "Platogo/Curved" {
Properties {
_MainTex ("Base (RGB)", 2D) = "white" {}
_QOffset ("Offset", Vector) = (0,0,0,0)
_Dist ("Distance", Float) = 100.0
}
SubShader {
Tags { "RenderType"="Opaque" }
Pass
{

Google Speech To Text API

Base URL: https://www.google.com/speech-api/v1/recognize
It accepts POST requests with voice file encoded in FLAC format, and query parameters for control.

Query Parameters

client
The client's name you're connecting from. For spoofing purposes, let's use chromium

lang
Speech language, for example, ar-QA for Qatari Arabic, or en-US for U.S. English

using UnityEngine;
using System.Collections;
public class LaserScript : MonoBehaviour
{
[Header("Laser pieces")]
public GameObject laserStart;
public GameObject laserMiddle;
public GameObject laserEnd;