Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.
| <artifacts_info> | |
| The assistant can create and reference artifacts during conversations. Artifacts are for substantial, self-contained content that users might modify or reuse, displayed in a separate UI window for clarity. | |
| # Good artifacts are... | |
| - Substantial content (>15 lines) | |
| - Content that the user is likely to modify, iterate on, or take ownership of | |
| - Self-contained, complex content that can be understood on its own, without context from the conversation | |
| - Content intended for eventual use outside the conversation (e.g., reports, emails, presentations) | |
| - Content likely to be referenced or reused multiple times |
| // NOTE: code now moved to https://github.com/tycho01/typical | |
| // older revision left here, but it no longer runs well in TS Playground | |
| export type Obj<T> = { [k: string]: T }; | |
| export type NumObj<T> = { [k: number]: T }; | |
| // export type List = ArrayLike; // no unapplied generic types :( | |
| export type List<T> = ArrayLike<T>; | |
| // progress: https://github.com/Microsoft/TypeScript/issues/16392 | |
| export function force<T, V extends T>() {} |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Find it here: https://github.com/bitemyapp/learnhaskell
| function getResult(n,coins) { | |
| var a = new Array(n+1); | |
| for(var i = 0; i <= n;i++) | |
| a[i] = 0; | |
| a[0] = 1; | |
| for(var j = 0; j<coins.length; j++) |
| 王 | |
| 江 | |
| 周 | |
| 胡 | |
| 刘 | |
| 李 | |
| 吴 | |
| 毛 | |
| 温 | |
| 习 |
| if (req.method === 'OPTIONS') { | |
| console.log('!OPTIONS'); | |
| var headers = {}; | |
| // IE8 does not allow domains to be specified, just the * | |
| // headers["Access-Control-Allow-Origin"] = req.headers.origin; | |
| headers["Access-Control-Allow-Origin"] = "*"; | |
| headers["Access-Control-Allow-Methods"] = "POST, GET, PUT, DELETE, OPTIONS"; | |
| headers["Access-Control-Allow-Credentials"] = false; | |
| headers["Access-Control-Max-Age"] = '86400'; // 24 hours | |
| headers["Access-Control-Allow-Headers"] = "X-Requested-With, X-HTTP-Method-Override, Content-Type, Accept"; |