I hereby claim:
- I am ygmpkk on github.
- I am ygmpkk (https://keybase.io/ygmpkk) on keybase.
- I have a public key whose fingerprint is 447C A6EA 69CD 0E72 6058 0931 71C2 518C E3E2 FF87
To claim this, I am signing this object:
import os | |
import openai | |
from dotenv import load_dotenv | |
from llama_index import GPTSimpleVectorIndex, SimpleDirectoryReader, LLMPredictor, PromptHelper | |
from langchain.llms import AzureOpenAI | |
from langchain.embeddings import OpenAIEmbeddings | |
from llama_index import LangchainEmbedding | |
# Load env variables (create .env with OPENAI_API_KEY and OPENAI_API_BASE) | |
load_dotenv() |
import os | |
import openai | |
from dotenv import load_dotenv | |
from llama_index import GPTSimpleVectorIndex, SimpleDirectoryReader, LLMPredictor, PromptHelper | |
from langchain.llms import AzureOpenAI | |
from langchain.embeddings import OpenAIEmbeddings | |
from llama_index import LangchainEmbedding | |
# Load env variables (create .env with OPENAI_API_KEY and OPENAI_API_BASE) | |
load_dotenv() |
const toList: any = ({ childrens, ...data }: any) => { | |
return (childrens || []).reduce( | |
(prev: any[], { childrens, ...curr }: any) => { | |
if (childrens?.length) { | |
prev = prev.concat(recursionFlatten({ childrens, ...curr })) | |
} else { | |
prev = prev.concat(curr) | |
} | |
return prev |
<template> | |
<view class="container"> | |
<view> | |
DEBUG MODE: {{ debug }} | |
</view> | |
<view> | |
<switch :checked='debug' @change='handleChanged' /> | |
</view> | |
</view> |
<template> | |
<view class="container"> | |
<view @click='handleRandom'> | |
更新状态: {{ current }} | |
</view> | |
<view v-if='house'> | |
<map | |
:longitude='house.location.longitude' | |
:latitude='house.location.latitude' | |
:makers='house.location.makers' |
<template> | |
<view class="container"> | |
<view> | |
<view> | |
父组件 | |
</view> | |
<view> | |
{{ data.today.format('YYYY-MM-DD') }} | |
</view> |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
root /your/root/path; | |
index index.html; | |
server_name you.server.com; |
'use strict'; | |
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }(); | |
function test(args) { | |
var _args = _slicedToArray(args, 2); | |
var a = _args[0]; | |
var b = _args[1]; |
I hereby claim:
To claim this, I am signing this object:
Some thoughts and ideas on best practices building Ember apps after 2 years building and maintaining 6+ apps. This is less about the obvious best practices, like use ember-cli, and more along the lines of when to use what technique. As with every best practice there are exceptions to every rule.