Skip to content

Instantly share code, notes, and snippets.

View coetry's full-sized avatar
⚛️
compiling my thoughts into something simpler

Allen Hai coetry

⚛️
compiling my thoughts into something simpler
  • Houston
View GitHub Profile
@coetry
coetry / LLM.md
Created March 29, 2023 05:29 — forked from rain-1/LLM.md
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.

@coetry
coetry / gist:3754a8ef4b2780f1e60f1e713cc8502b
Created December 16, 2019 20:03
nowtool install logs
▲ (trapbook) ~ npm i -g @zeit/nowtool
npm WARN deprecated @types/jest-diff@24.3.0: This is a stub types definition. jest-diff provides its own type definitions, so you do not need this installed.
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated is-readable-stream@1.0.1: use is-stream instead
/home/coetry/.nvm/versions/node/v12.13.1/bin/nowtool -> /home/coetry/.nvm/versions/node/v12.13.1/lib/node_modules/@zeit/nowtool/bin/nowtool
> dtrace-provider@0.8.8 install /home/coetry/.nvm/versions/node/v12.13.1/lib/node_modules/@zeit/nowtool/node_modules/dtrace-provider
> node-gyp rebuild || node suppress-error.js
make: Entering directory '/home/coetry/.nvm/versions/node/v12.13.1/lib/node_modules/@zeit/nowtool/node_modules/dtrace-provider/build'
@coetry
coetry / create-ticket-error
Last active September 29, 2021 00:02
Zendesk createTicket function
▲ (trapbook) zd node index.js
creating ticket ...
{
jsonString: '{"ticket":{"subject":"ZD API Test","comment":{"body":"This ticket was create by coetry via a node script and the ZD API. Please do not touch it or update its status. I will be interacting with it programmatically."}}}'
}
{
error: 'ParameterMissing',
description: 'Parameter ticket is required'
}
»npm run build
> gatsby-starter-blog@0.1.0 build /private/tmp/css-hacks
> gatsby build
The above error occurred in the <ReduxStoreProvider> component:
in ReduxStoreProvider
in App
React will try to recreate this component tree from scratch using the error boundary you provided, App.
├── pug/shared/assets/css/pages/mattress-new.css
├── pug/shared/images/mattress_modal/new/product_slide_1@2x.jpg
├── pug/shared/fonts/TiemposHeadlineWeb-Bold.woff2
├── pug/shared/images/lp/retail/icon_warranty.svg
├── pug/shared/images/lp/retail/icon_box.svg
├── pug/shared/assets/tn-styles-5f03f5938398e52232e64e88db58f192.css
├── pug/shared/images/mattress/bg_diagram_pointer.svg
├── pug/shared/assets/application-323dc98fca7cd09cfb29c2a037d19043.css
├── pug/shared/images/ugc/og_mattress/post_1_thumbnail.jpg
├── pug/shared/fonts/apercu-regular.woff2
@coetry
coetry / server.lisp
Created February 25, 2019 16:58
simple hunchentoot server
(ql:quickload :clack)
(ql:quickload :bordeaux-threads)
(defun main (&rest argv)
(declare (ignorable argv))
(defvar *handler*
(clack:clackup
(lambda (env)
'(200 (:content-type "text/plain") ("alhamdulilLah")))))
@coetry
coetry / prompt-read.lisp
Last active August 20, 2019 12:48
prompt-read
(defun prompt-read (prompt)
(format *query-io* "~a: " prompt)
read-line *query-io*))
01/13 11:44 AM (5m)
yarn install v1.12.3
01/13 11:44 AM (5m)
[1/4] Resolving packages...
01/13 11:44 AM (5m)
[2/4] Fetching packages...
01/13 11:45 AM (5m)
info fsevents@1.2.4: The platform "linux" is incompatible with this module.
01/13 11:45 AM (5m)
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
let my_favorite_language languages =
match languages with
| first :: rest -> first
| [] -> "Ocaml"
;;
@coetry
coetry / .emacs
Created November 7, 2018 18:54
emacs config
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(initial-scratch-message ";; bismilLah
")
'(package-selected-packages
(quote