This file contains hidden or 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
| When the yogurt took over, we all made the same jokes – “Finally, our rulers will have culture,” “Our society has curdled,” “Our government is now the cream of the crop,” and so on. But when we weren’t laughing about the absurdity of it all, we looked into each others’ eyes with the same unasked question – how did we ever get to the point where we were, in fact, ruled by a dairy product? | |
| Oh, as a matter of record, we knew how it happened. Researchers at the Adelman Institute for Biological Technology in Dayton had been refining the process of DNA computing for years. In a bid to increase efficiency and yield, scientists took one of their most computationally advanced strains and grafted it into Lactobacillus delbrueckii subspecies bulgaricus, commonly used to ferment yogurt. Initial tests appeared to be failures, and acting under the principal of “waste not, want not,” one of the researchers sneaked some of the bacillus out of the lab to use for her homemade yogurt. | |
| A week later, during breakfast, the yogur |
This file contains hidden or 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
| interface SemaHandle { | |
| release(): void; | |
| } | |
| function createSema(concurrency: number): { acquire(): Promise<SemaHandle> } { | |
| let handles: string[] = []; | |
| const queue: ((value: unknown) => void)[] = []; | |
| function createHandle(): string { | |
| const handle = nanoid(); |
This file contains hidden or 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 { OpenAI } from "langchain/llms/openai"; | |
| import { PromptTemplate } from "langchain/prompts"; | |
| import { LLMChain } from "langchain/chains"; | |
| import { streamCall } from "./stream-call" | |
| export const config = { | |
| runtime: "edge", | |
| }; | |
| export async function GET(request: Request) { |
This file contains hidden or 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 { RESTAdapter } from 'ember-data/adapter'; | |
| console.log("here") | |
| export default RESTAdapter.extend({}); |
This file contains hidden or 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 Ember from 'ember'; | |
| import { inject as service } from '@ember/service'; | |
| export default Ember.Controller.extend({ | |
| store: service(), | |
| appName: 'Ember Twiddle', | |
| async init() { | |
| // Open the console | |
| this.loadDog(1); |
This file contains hidden or 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 DS from 'ember-data'; | |
| export default DS.JSONAPIAdapter.extend({ | |
| updateRecord(store, type, { record }) { | |
| console.log("Saving draft", record.id); | |
| return sleep(1000); | |
| }, | |
| createRecord(store, type, { record }) { | |
| console.log("Creating draft", record.body); |
This file contains hidden or 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 Ember from 'ember'; | |
| import { inject as service } from '@ember/service'; | |
| export default Ember.Controller.extend({ | |
| store: service(), | |
| appName: 'Ember Twiddle', | |
| logs: Ember.A([]), | |
| init() { | |
| // Add an example record |
This file contains hidden or 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 Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle', | |
| a: Ember.computed(function() { | |
| return 1; | |
| }), | |
| init() { |
This file contains hidden or 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 Ember from 'ember'; | |
| import { inject as service } from '@ember/service'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle', | |
| store: service(), | |
| init() { | |
| this.store.push({ | |
| data: [{ |
This file contains hidden or 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 Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle', | |
| }); |
NewerOlder