Skip to content

Instantly share code, notes, and snippets.

@haubar
haubar / gcf sync
Last active November 8, 2023 08:54
gcf sync
const axios = require('axios')
const qs = require('qs')
const airtable = require('airtable')
exports.stockNum = async(req, res) => {
return getlist(req, res)
}
const stockTable = new airtable({
apiKey: process.env.airtableKey
@haubar
haubar / nginx 自動縮圖設定
Last active November 3, 2023 07:20
ngix auto thumbnail and config
server {
listen 80 default_server;
server_name localhost;
if ($host != "localhost") {
#return 404;
}
root /var/www/html/production/public;
index index.php;
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+q",
"command": "editor.foldAll",
"when": "editorTextFocus"
},
{
"key": "shift+q",
@haubar
haubar / gcf craw
Last active November 8, 2023 06:00
const axios = require('axios')
const qs = require('qs')
exports.cars = async(req, res) => {
if(req.query.code){
return getdetail(req, res)
}
return getlist(req, res)
}
@haubar
haubar / cloudSettings
Last active November 27, 2018 16:07
Visual Studio Code Sync Settings GIST
{"lastUpload":"2018-11-27T16:07:16.584Z","extensionVersion":"v3.2.2"}
@haubar
haubar / gvim
Created February 6, 2013 10:46
vim config
"----------------------------------------------------------------------------------
"git 更新套件 bundle 設定
"----------------------------------------------------------------------------------
filetype on " required!
set rtp+=$VIM\bundle\vundle\ "set runtimepath+