Skip to content

Instantly share code, notes, and snippets.

View AdrianaVecc's full-sized avatar

Adriana Vecchioli AdrianaVecc

View GitHub Profile
@AdrianaVecc
AdrianaVecc / FlippingNormals.shader
Created April 19, 2017 01:00
A shader to invert a sphere's normals in Unity in order to see it from inside out. Useful to create a 360 video player
Shader "Flipping Normals" {
Properties {
_MainTex ("Base (RGB)", 2D) = "white" {}
}
SubShader {
Tags { "RenderType" = "Opaque" }
Cull Off
@AdrianaVecc
AdrianaVecc / gist:7964818
Created December 14, 2013 20:58
Find roots of Ax2 + Bx + C = 0 equations. Pascal
program Quadratic_Roots;
Var a,b,c,d,x,y,Re,Im:real;
BEGIN
writeln('ax2+bx+c=0. Let''s find the roots. Please enter a,b,c');
readln(a,b,c);
if a=0 then
begin
if (b=0) then
begin