Skip to content

Instantly share code, notes, and snippets.

Avatar

Thomas Dürr thomd

View GitHub Profile
@thomd
thomd / crawl.go
Created Oct 3, 2020
Investigating Webscraping with colly #go
View crawl.go
package main
import (
"encoding/base64"
"flag"
"fmt"
"strings"
"github.com/gocolly/colly"
"github.com/gookit/color"
@thomd
thomd / wiki.go
Last active Sep 14, 2020
Go Examples #golang #go #code
View wiki.go
package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
"strings"
)
@thomd
thomd / filter.go
Last active Sep 7, 2020
Go Examples #golang #go #code
View filter.go
package model
import (
"fmt"
)
type Person struct {
Name string
Age int
}
@thomd
thomd / workspace_utils.py
Last active Apr 17, 2020
Keeping Your Session Active in Google Colab
View workspace_utils.py
# The workspace_utils.py module includes an iterator wrapper called keep_awake and a context manager
# called active_session that can be used to maintain an active session during long-running processes.
# The two functions are equivalent, so use whichever fits better in your code.
#
# EXAMPLE 1
#
# from workspace_utils import keep_awake
# for i in keep_awake(range(5)): #anything that happens inside this loop will keep the workspace active
# # do iteration with lots of work here
#
@thomd
thomd / jupyter.md
Last active Jan 2, 2020
Extensions & Notebooks for Jupyter #list #jupyter #python
@thomd
thomd / Jenkinsfile
Last active Jun 1, 2020 — forked from merikan/Jenkinsfile
List of Jenkinsfile examples #list #jenkins
View Jenkinsfile
Some Jenkinsfile examples
@thomd
thomd / react-native-components.md
Last active Apr 24, 2019
React Native Components #react #list #components #react-native