Skip to content

Instantly share code, notes, and snippets.

View thomd's full-sized avatar

Thomas Dürr thomd

  • Hamburg, Germany
View GitHub Profile
@thomd
thomd / crawl.go
Created October 3, 2020 21:50
Investigating Webscraping with colly #go
package main
import (
"encoding/base64"
"flag"
"fmt"
"strings"
"github.com/gocolly/colly"
"github.com/gookit/color"
@thomd
thomd / wiki.go
Last active September 14, 2020 16:27
Go Examples #golang #go #code
package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
"strings"
)
@thomd
thomd / filter.go
Last active September 7, 2020 17:11
Go Examples #golang #go #code
package model
import (
"fmt"
)
type Person struct {
Name string
Age int
}
@thomd
thomd / workspace_utils.py
Last active July 30, 2023 21:53
Keeping Your Session Active in Google Colab
# 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 January 2, 2020 09:25
Extensions & Notebooks for Jupyter #list #jupyter #python
@thomd
thomd / Jenkinsfile
Last active November 18, 2022 13:01 — forked from merikan/Jenkinsfile
List of Jenkinsfile examples #list #jenkins
Some Jenkinsfile examples
@thomd
thomd / react-native-components.md
Last active April 24, 2019 16:15
React Native Components #react #list #components #react-native