- foo
- bar
- baz
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 ( | |
"encoding/csv" | |
"encoding/json" | |
"fmt" | |
"io" | |
"log" | |
"os" | |
) |
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" | |
"math/rand" | |
"os" | |
"github.com/miekg/dns" | |
) |
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
tap "adoptopenjdk/openjdk" | |
tap "benbjohnson/litestream" | |
tap "buildkite/buildkite" | |
tap "buildkite/cli" | |
tap "charmbracelet/tap" | |
tap "d12frosted/emacs-plus" | |
tap "filosottile/musl-cross" | |
tap "formulate-dev/tap" | |
tap "gscreen/gscreen", "[email protected]:gscreen/homebrew-gscreen" | |
tap "homebrew/bundle" |
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
# enable color support of ls and also add handy aliases | |
if [ -x /usr/bin/dircolors ]; then | |
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" | |
alias ls='ls --color=auto' | |
#alias dir='dir --color=auto' | |
#alias vdir='vdir --color=auto' | |
alias grep='grep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
alias egrep='egrep --color=auto' |
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 sqlite3 | |
import requests | |
import yaml | |
import base64 | |
conn = sqlite3.connect('/path/to/recipes_2.db') | |
conn.row_factory = sqlite3.Row | |
c = conn.cursor() | |
def downloadAsBase64(url): |
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
(ns antonyms.core | |
(:gen-class) | |
(:require [clj-http.client :as client])) | |
(use 'clojure.java.io) | |
(defn process-file | |
"Call func once for with each line in filename" | |
[filename func] | |
(with-open [rdr (reader filename)] |
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
(ns antonyms.core | |
(:gen-class) | |
(:require [clj-http.client :as client])) | |
(use 'clojure.java.io) | |
(defn antonym-for | |
[word] | |
(let [api-key "8c1e369f560ac4b0acfff71c674b37d6" | |
server-url (str "http://words.bighugelabs.com/api/2/" api-key "/" word "/json") |
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
x = "Akshay Gupta <[email protected]>, Aninda Kundu <[email protected]>, Asif Kalam <[email protected]>, Jasim <[email protected]>, Jithu Gopal <[email protected]>, Neha Kumari <[email protected]>, Nivedita <[email protected]>, Nivedita Priyadarshini <[email protected]>, Prashant Karpe <[email protected]>, Srihari Sriraman <[email protected]>, Srushti Ambekallu <[email protected]>, Steven Deobald <[email protected]>, Tejas Dinkar <[email protected]>" | |
x.scan(/\<([^>]+)\>/).flatten.each do |str| | |
system "heroku sharing:add -r production #{str}" | |
end |
NewerOlder