- Install IntelliJ + Scala Plugin
- Don’t do the Coursera courses yet.
- Don’t do the “red book” Functional Programming in Scala yet.
- Do: http://underscore.io/books/
- Essential Scala
- Essential Play
- Essential Slick
- Do Scala for the Impatient: https://www.amazon.com/Scala-Impatient-Cay-S-Horstmann/dp/0321774094
- The Neophyte’s Guide to Scala http://danielwestheide.com/scala/neophytes.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
(require 'request) | |
(require 'json) | |
(defun chatgpt-query (input) | |
"Interact with the ChatGPT API and return the response." | |
(let* ((api-key "<YOUR API KEY>") | |
(url "https://api.openai.com/v1/chat/completions") | |
(model "gpt-3.5-turbo") | |
(headers `(("Content-Type" . "application/json") | |
("Authorization" . ,(concat "Bearer " api-key)))) |
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
#!/usr/bin/env sh | |
# based on https://raw.githubusercontent.com/matthewbauer/macNixOS/master/link-apps.sh | |
APP_DIR=/Applications | |
NIX_PROFILE_APPS="$HOME"/.nix-profile/Applications | |
LATEST_NIX_PROFILE_APPS=$(readlink "$NIX_PROFILE_APPS") | |
# remove broken links | |
for f in "$APP_DIR"/*; do | |
if [ -L "$f" ] && [ ! -e "$f" ]; then |
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
var express = require('express'); | |
var request = require('request'); | |
var app = express(); | |
app.all('*', function(req, res, next) { | |
res.header("Access-Control-Allow-Origin", "*"); | |
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept"); | |
next(); | |
}); |