Skip to content

Instantly share code, notes, and snippets.

View technoY2K's full-sized avatar
🏠
Working from home

Kevia technoY2K

🏠
Working from home
View GitHub Profile
@technoY2K
technoY2K / Main.hs
Last active February 4, 2022 02:34
An example of using the blockfrost API.
module Main (main) where
import Blockfrost.Client
import qualified Data.Text as T
main :: IO ()
main = do
project <- projectFromFile ".env"
result <- runBlockfrost project $ do
git branch | grep -v "main" | xargs git branch -D
git branch -r --merged | egrep -v "(^\*|master|dev)" | sed 's/origin\///' | xargs -n 1 git push origin --delete
@technoY2K
technoY2K / docker_cheat_sheet.md
Last active December 17, 2019 19:52
🍎macOS && 🐟fish shell && 🛳docker cheat sheet

List all containers

docker container ls -a

Remove all containers

docker container rm eval (docker container ls -a -q)
@technoY2K
technoY2K / .eslintrc
Created July 13, 2018 22:11
basic eslintrc file for babel/react
{
"env": {
"es6": true,
"browser": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
@technoY2K
technoY2K / index.html
Created December 29, 2017 21:36
Basic html5 template for React
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title></title>
</head>
<body>