Skip to content

Instantly share code, notes, and snippets.

View Lkledu's full-sized avatar

Eduardo Lkledu

View GitHub Profile
@Lkledu
Lkledu / pingPongTitle.cs
Created February 13, 2020 23:49
ping pong movement
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class pingPongTitle : MonoBehaviour
{
public float m_Range = 0.1f;
public float m_SmoothTime = 10.0f;
public Vector3 m_Axis = Vector3.up;
private Vector3 m_Origin;
@Lkledu
Lkledu / blinkText.cs
Created February 13, 2020 23:47
blink text color
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class blinkText : MonoBehaviour
{
Text txt;
void Start(){
@Lkledu
Lkledu / fadeIn.cs
Created February 13, 2020 23:46
FadeIn screen
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class fadeIn : MonoBehaviour
{
Image img;
Select @@SERVERNAME
@Lkledu
Lkledu / tableInfo.sql
Created July 30, 2019 12:25
Select table info <SQL Server>
SELECT COLUMN_NAME,DATA_TYPE, CHARACTER_MAXIMUM_LENGTH, IS_NULLABLE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'insert_table_name';
@Lkledu
Lkledu / selectMinus.sql
Last active July 30, 2019 12:24
select all columns minus one <POSTGRESQL>
//select all columns from table minus one column;
//work like describe
//use this to create function to select all columns with values from table, minus one column
//like this: (select *-'column_name' from table_name)
select TABLE_NAME, COLUMN_NAME from information_schema.columns where TABLE_NAME = 'table_name' AND COLUMN_NAME != 'column_name';
@Lkledu
Lkledu / selectForeignKey.sql
Last active July 30, 2019 12:23
Retorna uma coluna com suas foreign keys <POSTGRESQL>
SELECT
TABLE_NAME,COLUMN_NAME,CONSTRAINT_NAME, REFERENCED_TABLE_NAME,REFERENCED_COLUMN_NAME
FROM
INFORMATION_SCHEMA.KEY_COLUMN_USAGE
WHERE
REFERENCED_TABLE_SCHEMA = '<database>' AND
REFERENCED_TABLE_NAME = '<table>' AND
REFERENCED_COLUMN_NAME = '<column>';