Skip to content

Instantly share code, notes, and snippets.

View zhoukekestar's full-sized avatar
🎄
Focusing

keke zhoukekestar

🎄
Focusing
View GitHub Profile
@zhoukekestar
zhoukekestar / ai-sdk.js
Created May 4, 2024 08:14
Cloudflare gemini sdk
/**
* @license
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@zhoukekestar
zhoukekestar / index.js
Last active April 19, 2024 11:46
wujie WebComponent plugin
import { bus, setupApp, preloadApp, startApp, destroyApp } from 'wujie'
window.switchApp = name => {
startApp({
name,
url:
name === 'home1'
? 'https://systemjs.1688.com/krump/schema/2528.html'
: 'https://systemjs.1688.com/krump/schema/2529.html',
@zhoukekestar
zhoukekestar / ai.js
Created March 28, 2024 02:34
@google/generative-ai for china
/**
* @license
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@zhoukekestar
zhoukekestar / test.js
Created April 6, 2021 12:23
ESM Unit Test List
export default [
{
name: 'qs',
namedExport: ['parse', 'stringify', 'aa222'],
},
{
name: 'jsonpath@1',
default: ['parse', 'stringify', 'stringify333'],
},
console.log('hello world');
@zhoukekestar
zhoukekestar / index.js
Created May 23, 2020 03:55
XOR js 实现
var log = console.log;
var random = () => {
return +(Math.random() * 2 - 1).toFixed(4);
};
class Perceptron {
constructor({ truthTable, tableName, w1, w2 }) {
@zhoukekestar
zhoukekestar / injectcode.js
Last active February 8, 2018 11:30
inject-code
const injectCSS = () => {
var style = document.createElement('style');
style.innerHTML = `
table.public_table.table_column td > button {
position: absolute;
left: 0;
background: rgba(0, 0, 0, 0.99);
border: none;
color: #fff;
font-size: 12px;
@zhoukekestar
zhoukekestar / readme.md
Created August 15, 2017 01:03
Pied Piper 笔记
  • 盈利,赚钱比较重要?还是估值比较重要?但是一旦赚钱了,就会想赚多少钱,然后就评估你的盈利能力了。相对而言,一直在亏损的公司,只要估值上去了, 公司价值也就大了
  • 估值越高越好吗?估值越高,下一轮的增长压力就会越大,拿到的投资额少,就意味着你又可以在合理的范围内增长。所以,估值不是越高越好,适合才是最好的, 这样,才不会因为公司增长小于投资额的增长,而给人感觉公司不行的样子。
  • hooli 通过官司告 pied piper,以让他感受到压力而驱使他接受收购
  • hooli 通过混淆 pied piper 的创始人而使官司上占据更为有利的位置
  • 刚开始 pied piper 无人问津,发现价值后又众人追捧,官司缠身后,又无人问津
  • 官司缠身后,看似有公司意向投资,却进行技术会面来得到算法核心思路
@zhoukekestar
zhoukekestar / aws.md
Last active June 29, 2017 03:59
shadowsocks

login

ssh -i "zhoukekestar.pem" ec2-user@ec2-54-153-60-209.us-west-1.compute.amazonaws.com

Install shadowsocks

sudo -s // 获得超级权限
yum install epel-release