This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package equal_stack | |
func equalStacks(h1 []int32, h2 []int32, h3 []int32) int32 { | |
allHeights1 := stackAllHeights(h1) | |
allHeights2 := stackAllHeights(h2) | |
allHeights3 := stackAllHeights(h3) | |
var commonBetween12 []int32 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP TABLE activities; | |
CREATE TABLE activities ( | |
id serial NOT NULL PRIMARY KEY, | |
activity json NOT NULL, | |
type text GENERATED ALWAYS AS (activity ->> 'type') STORED, | |
name text GENERATED ALWAYS AS (activity ->> 'name') STORED | |
); | |
INSERT INTO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
listen [::]:80; | |
server_name lorenzi.one; | |
root /srv/friendica; | |
index index.php; | |
access_log /var/log/nginx/friendica.access.log; | |
error_log /var/log/nginx/friendica.error.log; |