Skip to content

Instantly share code, notes, and snippets.

View gracenikole's full-sized avatar
🐨
.

Grace Nikole gracenikole

🐨
.
View GitHub Profile
@gracenikole
gracenikole / index.html
Created March 7, 2021 16:49 — forked from hubgit/index.html
Display a single tweet
<!doctype html>
<meta charset="utf-8">
<title>Tweet</title>
<meta name="twitter:widgets:conversation" content="none">
<meta name="twitter:widgets:cards" content="hidden">
<meta name="twitter:widgets:link-color" content="#cc0000">
<meta name="twitter:widgets:theme" content="light">
<style>
@gracenikole
gracenikole / listas_enlazadas.c
Created January 6, 2021 00:59 — forked from ArgiesDario/listas_enlazadas.c
Programación en C – Listas Enlazadas – Que son y cómo se usan
#include <stdio.h>
#include <stdlib.h>
typedef struct snodo{ //snodo es el nombre de la estructura
int valor;
struct snodo *sig; //El puntero siguiente para recorrer la lista enlazada
}tnodo; //tnodo es el tipo de dato para declarar la estructura
typedef tnodo *tpuntero; //Puntero al tipo de dato tnodo para no utilizar punteros de punteros
@gracenikole
gracenikole / change_primary_key.md
Created December 11, 2020 00:29 — forked from scaryguy/change_primary_key.md
How to change PRIMARY KEY of an existing PostgreSQL table?
-- Firstly, remove PRIMARY KEY attribute of former PRIMARY KEY
ALTER TABLE <table_name> DROP CONSTRAINT <table_name>_pkey;
-- Then change column name of  your PRIMARY KEY and PRIMARY KEY candidates properly.
ALTER TABLE <table_name> RENAME COLUMN <primary_key_candidate> TO id;