This file contains 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
/* | |
* file: gkos_char_device.c | |
* | |
* Desc: A simple device that | |
* echos a message when read, | |
* write method not implemented | |
* | |
* This was made on top of | |
* LDD and LKMPG examples | |
* |
This file contains 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
https://go.dev/tour/concurrency/8 | |
package main | |
import "golang.org/x/tour/tree" | |
import "fmt" | |
// Walk walks the tree t sending all values | |
// from the tree to the channel ch. | |
func Walk(t *tree.Tree, ch chan int){ | |
_walk(t,ch) |
This file contains 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 main | |
import ( | |
"fmt" | |
"sync" | |
) | |
type Fetcher interface { | |
// Fetch returns the body of URL and | |
// a slice of URLs found on that page. |
This file contains 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
import pandas as pd | |
import matplotlib.pyplot as plt | |
def to_range(y): | |
return to_strings(list(range(y.count()))) | |
def to_strings(y): | |
return list(map(str, y)) |
This file contains 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
WITH RECURSIVE e AS (SELECT | |
id, CAST(name AS TEXT), parent_id, 1 AS level | |
FROM | |
geo | |
WHERE geo.id=4 | |
UNION | |
SELECT geo.id, e.name||'->'|| geo.name as name, geo.parent_id, e.level+1 as level | |
FROM geo | |
INNER JOIN e ON geo.parent_id=e.id | |
) |
This file contains 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
https://math.stackexchange.com/questions/2353141/what-is-the-possible-number-of-commutative-binary-operations-that-can-be-defined |
This file contains 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
import pandas as pd | |
import matplotlib.pyplot as plt | |
MIN_DATA_LENGTH=3; | |
def to_range(y): | |
return to_strings(list(range(y.count()))) | |
def to_strings(y): |
This file contains 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
https://vim.fandom.com/wiki/Search_and_replace#substitute_last_search |
This file contains 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
https://www.postgresql.org/docs/current/manage-ag-tablespaces.html |
This file contains 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
CREATE TABLE post_partitioned ( | |
pk int GENERATED ALWAYS AS IDENTITY, | |
title TEXT, | |
content TEXT, | |
author INTEGER, | |
category INTEGER, | |
reply_to INTEGER, | |
created_on TIMESTAMP WITH TIME ZONE, | |
last_edited_on TIMESTAMP WITH TIME ZONE, | |
editable BOOLEAN, |
OlderNewer