I hereby claim:
- I am jcxia43 on github.
- I am jcxia (https://keybase.io/jcxia) on keybase.
- I have a public key whose fingerprint is 3670 A92C 259D 92F4 DFF5 5227 06DD 5BDA 6ECD F1B9
To claim this, I am signing this object:
// OpenAI function call guide: https://platform.openai.com/docs/guides/gpt/function-calling | |
// JSON Schema reference: https://json-schema.org/understanding-json-schema/ | |
monaco.languages.json.jsonDefaults.setDiagnosticsOptions({ | |
validate: true, | |
schemas: [ | |
{ | |
uri: "http://myserver/foo-schema.json", | |
fileMatch: ["*"], | |
schema: { |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
repo = `git remote show origin -n | grep h.URL | sed 's/.*://;s/.git$//'`.strip | |
branch = `git rev-parse --abbrev-ref HEAD` | |
`open https://www.github.com/#{repo}/compare/#{ARGV[0]}...#{branch}` |
#!/bin/sh | |
SCRIPT="#!/bin/sh | |
if [ \${1} == \"--help\" ]; then | |
/usr/local/sublime_text_3/sublime_text --help | |
else | |
/usr/local/sublime_text_3/sublime_text \$@ > /dev/null 2>&1 & | |
fi" | |
curl -L "http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3047_x64.tar.bz2" -o "/tmp/sublime_text_3.tar.bz2" | |
cd /tmp |
// DON'T FORGET TO IMPORT proxy.conf TOO | |
[General] | |
loglevel = notify | |
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12,127.0.0.0/24 | |
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12,127.0.0.0/24 | |
// DNS OVERRIDE, REMOVE # IF YOU NEED | |
# dns-server = 223.6.6.6,223.5.5.5,114.114.114.114,114.114.115.115 |
import urllib | |
#this is just a very simple web crawler, can not actually do | |
#what a real web crawler do :) | |
#get the next link on the page,here page is the content of | |
#the HTML text, also a string | |
def get_next_link(page): | |
start_pos = page.find("<a href=") | |
if start_pos == -1: |
# 0 is too far from ` ;) | |
set -g base-index 1 | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
#set -g default-terminal screen-256color | |
set -g status-keys vi | |
set -g history-limit 10000 |