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 / sessions.php
Created November 19, 2012 04:00
codeigniter::KNDB-session
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
* Code Igniter
*
* An open source application development framework for PHP 4.3.2 or newer
*
* @package CodeIgniter
* @author Elise Bosse
* @copyright Copyright (c) 2008, E.Bosse
* @license http://www.codeignitor.com/user_guide/license.html
@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: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 / vhost
Created January 11, 2014 07:09
http-vhost.conf
<VirtualHost *:80>
ServerAdmin seeker@v2.chuang86.com
DocumentRoot "/Users/seeker/vhost/chuang86"
ServerName www.v2.chuang86.com
ServerAlias v2.chuang86.com
ErrorLog "/private/var/log/apache2/v2.chuang86.com-error_log"
CustomLog "/private/var/log/apache2/v2.chuang86.com-access_log" common
<Directory "/Users/seeker/vhost/chuang86">
Options Indexes FollowSymLinks
@singleseeker
singleseeker / backup.sh
Last active December 28, 2015 09:19
back up server or local file, also could used with mysql dump
#!/bin/bash
#Backup name
if [ -n "$1" ]; then
BACKUP_NAME=$1 # Name of backup (log file, dest dir, exclude)
else
exit 1
fi
# Optional hostname