Skip to content

Instantly share code, notes, and snippets.

View tssm's full-sized avatar

Tae Selene Sandoval Murgan tssm

View GitHub Profile
@tssm
tssm / how-to-git.md
Last active September 2, 2017 15:25
How to Git
begin transaction;
create table regions (id integer primary key, name text unique not null);
insert into regions (name) values ('Tarapacá'); -- 1
insert into regions (name) values ('Antofagasta'); -- 2
insert into regions (name) values ('Atacama'); -- 3
insert into regions (name) values ('Coquimbo'); -- 4
insert into regions (name) values ('Valparaíso'); -- 5
insert into regions (name) values ('Libertador General Bernardo O''Higgins'); -- 6
@tssm
tssm / fstab
Last active October 8, 2015 12:48
This is how I set up my Arch Linux machines.
#<system> <dir> <type> <options> <dump> <pass>
LABEL=boot /boot ext4 noatime,nodev,nosuid,noexec 0 2
LABEL=root / ext4 noatime 0 1
LABEL=var /var ext4 noatime,nodev,nosuid,noexec 0 2
LABEL=home /home ext4 noatime,nodev,nosuid 0 2
@tssm
tssm / gist:3019900
Last active November 8, 2015 18:20
HTML snippets.
<!-- By Jeremy Keith (http://adactio.com/journal/4272/) -->
<label for=source>How did you hear about us?</label>
<datalist id=sources>
<select name=source>
<option>please choose...</option>
<option value=television>Television</option>
<option value=radio>Radio</option>
<option value=newspaper>Newspaper</option>
<option>Other</option>
@tssm
tssm / gist:1358660
Last active September 28, 2015 00:48
Some algorithms of recreational mathematics that I did as exercises in my first (and only) semester studying Computer Science.
int getFactorialOf(unsigned number) {
if (number == 0) {
return 1;
}
unsigned int factorial, i;