Skip to content

Instantly share code, notes, and snippets.

View upangka's full-sized avatar
:octocat:
Working

胖卡你还在吃 upangka

:octocat:
Working
  • GuiLin of China
View GitHub Profile
@upangka
upangka / README.md
Created January 2, 2020 15:44
python 使用shadowsocks代理,初步访问外网

写作背景

  1. 在网上购买了一个shadowsocket,科学上网服务。用其服务来作为本地代理,初步建立爬取墙外信息。
    1. 可以跟着国外的教程走
    2. 想去youtube下爬取我喜欢的栏目信息

初步了解shadowsocket

@upangka
upangka / READEME.md
Last active January 2, 2020 10:01
javascript 公共属性使用
let obj = {
	name: "Q10Viking"
}

console.log(obj)
// {name: "Q10Viking"}
let ano = {
	...obj,
  ['hobby1']: "keras",
@upangka
upangka / README.md
Created January 2, 2020 05:36
vue 组件引入

引入组件

方式一

export default {
 components: {
    modifyData: () => import('./modifyData')
  }
 }
@upangka
upangka / README.md
Created January 2, 2020 01:58
javascript 判断元素是否满足条件

link

if (index === 0 || index === 2) 
if ([0, 2].includes(index)) 
@upangka
upangka / README.md
Created January 1, 2020 15:18
2020-01-01 java springboot excel ,csv,json import
  1. excel导入需要有相应的jar包支持,也就是第三方工具的支持,其中apache POI是处理excel的工具包之一

  2. 在spring本身处理excel中也有对文件的配置

    // 文件的最大值
    spring.servlet.
    
  3. input 标签类型type 为file

@upangka
upangka / README.md
Last active December 31, 2019 08:01
css tricks
@upangka
upangka / README.md
Last active December 31, 2019 03:57
web 常用事件

在web页面编辑中常常涉及到触发事件,以便javascript代码进行处理

事件参考

  1. blur 失去焦点
  2. change 内容改变

Example

@upangka
upangka / README.md
Created December 31, 2019 02:46
javascript check for null ,undefined but not include 0

背景在检验时,当值为null,和undefined,0,其boolean值都是false,但是我们需要0时校验为true.

@upangka
upangka / README.md
Created December 31, 2019 02:32
vscode 常用快捷键

参考链接

  1. 字符批量替换,如: 想要更改变量名字data(data这个变量在很多地方使用,差不多20个),但是又不想样式名称class='modifyDataDialog',方法名称submitData中的data更换掉 选中data单词然后**ctrl+shift+L**
@upangka
upangka / README.md
Created December 31, 2019 02:28
javascript 赋值undefined
let a = void 0  // a is undefined
let f = ()=>{return;}
let b = f()   // b is undefined

参考链接