Skip to content

Instantly share code, notes, and snippets.

View singleseeker's full-sized avatar

SingleSeeker singleseeker

View GitHub Profile
@singleseeker
singleseeker / vnt.md
Created September 30, 2020 03:13
vnt.md

vnt-candy-box API 接口文档

通用请求返回值:

  • 正常
返回值 说明
200 请求成功
@singleseeker
singleseeker / map.js
Created December 3, 2018 03:56
could not get geo info when loaded first
import React, {PureComponent} from 'react'
import {Platform, AppState, Alert} from 'react-native'
import styled from 'styled-components'
import PropTypes from 'prop-types'
import axios from 'axios'
import Permissions from 'react-native-permissions'
import {TYPE, SORT} from '@utils/constants'
import {
ShopList,
九九乘法口诀表
1×1=1
1×2=2 2×2=4
1×3=3 2×3=6 3×3=9
1×4=4 2×4=8 3×4=12 4×4=16
1×5=5 2×5=10 3×5=15 4×5=20 5×5=25
1×6=6 2×6=12 3×6=18 4×6=24 5×6=30 6×6=36
1×7=7 2×7=14 3×7=21 4×7=28 5×7=35 6×7=42 7×7=49
1×8=8 2×8=16 3×8=24 4×8=32 5×8=40 6×8=48 7×8=56 8×8=64
1×9=9 2×9=18 3×9=27 4×9=36 5×9=45 6×9=54 7×9=63 8×9=72 9×9=81
[alias]
st = status
co = checkout
ci = commit
br = branch
df = diff
lp = log -p
com = checkout master
fe = fetch origin
hr = reset origin/master --hard
17 Simple HTML Code Examples You Can Learn in 10 Minutes
### 10分钟学会17个简单的HTML代码示例
Even though modern websites are generally built with user-friendly interfaces, it’s still good to know some basic HTML.
即使现代网站一般都有一个友好的界面,但这仍需我们了解基本的HTML代码。
If you know the following 17 tags (and the extra few that go with them), you’ll be able to create a basic webpage from scratch or tweak the code created by an app like WordPress.
@singleseeker
singleseeker / browsersync.conf
Created November 21, 2016 01:33
browsersync api post .
middleware: [
{
route: "/api",
handle: function (req, res, next) {
var url = req.url;
var filename = __dirname + '/api' + url;
if (url.indexOf('.json') > -1 && fs.existsSync(filename)) {
@singleseeker
singleseeker / gist:597be5fd01e3a10cad8a
Last active October 12, 2015 06:02
eloquent 用法
// ======================== Company.php ==========
class Company extends Model
{
protected $table = 'tbl_company';
protected $primaryKey = 'com_id';
public function company_invest_events()
{
return $this->hasMany('App\Models\Company_invest_events','invse_com_id','com_id')->with('invse_orags_list');
}
@singleseeker
singleseeker / .ignore
Created September 24, 2015 16:30
xcode ios project git ignore
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
## Build generated
build/
DerivedData
## Various settings
*.pbxuser
@singleseeker
singleseeker / gist:f5617fc744a0595edcfb
Created July 3, 2015 17:29
LNMP 升级 nginx 加lua脚本
#!/bin/bash
Install_Lua_NDK()
{
wget -c https://github.com/simpl/ngx_devel_kit/archive/v0.2.19.tar.gz
if [ $? -eq 0 ]; then
echo "Download ngx_devel_kit successfully!"
fi
tar xzf v0.2.19.tar.gz
rm -rf v0.2.19.tar.gz
@singleseeker
singleseeker / nginx
Created July 3, 2015 11:09
升级 ningx
#!/bin/bash
Install_Nginx()
{
Echo_Blue "[+] Installing ${Nginx_Ver}... "
groupadd www
useradd -s /sbin/nologin -g www www
Tar_Cd ${Nginx_Ver}.tar.gz ${Nginx_Ver}
./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_spdy_module --with-http_gzip_static_module --with-ipv6 --with-http_sub_module ${NginxMAOpt}