This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ไปฅnginxไฝไธบ็ฎๅ็ๆ่ฟฐ๏ผๆพๅฐnginx็้ ็ฝฎๆไปถconfig/nginx.config;็จไธ้ขไปฃ็ ๆฟๆข่ฟไธชๆไปถ้้ข็ไปฃ็ | |
| # | |
| # The default server | |
| # | |
| server { | |
| listen 80; | |
| # ้่ฆๅฐไธปๆบๅๆนไธบ่ฑ็ฃ api |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ่กจ็คบ่ๅด {} [] | |
| /ab{2}/ ่กจ็คบ 'ab'ๅ้ขๅฏไปฅ่ท็2ไธชb ๅฆ๏ผ abb | |
| /ab{2,3}/ ่กจ็คบ 'ab'ๅ้ขๅฏไปฅ่ท็2ไธชๆ่ 3ไธชb ๅฆ๏ผ abb ใabbb | |
| /ab{2,}/ ่กจ็คบ 'ab'ๅ้ขๅฏไปฅ่ท็2ไธชไปฅไธb ๅฆ๏ผ abb ใabbbbb | |
| /[a-z]{2}/ ่กจ็คบๅฏไปฅๅน้ ไปปๆ2ไธชๅฐๅๅญๆฏ, ๅฆ aa, cn | |
| ็นๆฎๅญ็ฌฆไธฒ ^ $ * + ๏ผ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import rollupBabel from 'rollup-plugin-babel' | |
| import rollupNodeResolve from 'rollup-plugin-node-resolve' | |
| import rollupVue from 'rollup-plugin-vue' | |
| import rollupJsx from 'rollup-plugin-jsx' | |
| import rollupReplace from 'rollup-plugin-replace' | |
| import rollupCommonjs from 'rollup-plugin-commonjs' | |
| import rollupMultiEntry from 'rollup-plugin-multi-entry' | |
| rollupNodeResolve({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Main youtube video | |
| * | |
| */ | |
| import React, { Component } from 'react'; | |
| import { | |
| StyleSheet, | |
| TouchableHighlight, | |
| TouchableNativeFeedback, | |
| Dimensions, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //้ๅ ๅ ฌๅ ฑๅๆฐ | |
| $http.global("token","abcd321"); | |
| $http.use("/api", function (res) { | |
| if (res.success) { | |
| return true; | |
| } | |
| var err = res.error; | |
| if (err.code === 1001) { | |
| location.href = "/login.html"; | |
| } else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function loadScript(url, callback) { | |
| var script = document.createElement("script"); | |
| script.type = "text/javascript"; | |
| // IE | |
| if (script.readyState) { | |
| script.onreadystatechange = function () { | |
| if (script.readyState == "loaded" || script.readyState == "complete") { | |
| script.onreadystatechange = null; | |
| callback(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*! | |
| * Grunt | |
| * $ npm install grunt-contrib-uglify grunt-autoprefixer grunt-contrib-cssmin grunt-contrib-imagemin grunt-contrib-sass grunt-contrib-watch grunt-contrib-concat grunt-contrib-clean grunt-contrib-jshint grunt-notify --save-dev | |
| */ | |
| module.exports = function(grunt) { | |
| grunt.initConfig({ | |
| // Sass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Polka dot pattern | |
| */ | |
| background: radial-gradient(circle, white 10%, transparent 10%), | |
| radial-gradient(circle, white 10%, black 10%) 50px 50px; | |
| background-size:100px 100px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*=tags | |
| -----------------------------*/ | |
| ol.tags { | |
| width: 25%; | |
| } | |
| ol.tags li a { | |
| display: block; | |
| padding: 4px 8px; | |
| } | |
| ol.tags li a span.meta { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * img list | |
| */ | |
| ol.slats li { | |
| margin: 0 0 10px 0; | |
| padding: 0 0 10px 0; | |
| border-bottom: 1px solid #eee; | |
| } | |
| ol.slats li:last-child { | |
| margin: 0; |