THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.
package main | |
/** | |
* @website http://albulescu.ro | |
* @author Cosmin Albulescu <[email protected]> | |
*/ | |
import ( | |
"bytes" | |
"fmt" |
#!/usr/bin/env php | |
<?php | |
if (count($argv) == 1) { | |
throw new InvalidArgumentException('Missing tables'); | |
} | |
$tables = array_slice($argv, 1); | |
$db = new PDO('mysql:dbname=uniqueway_development;host=127.0.0.1;charset=utf8mb4', 'root', ''); |
git checkout master # you can avoid this line if you are in master...
git subtree split --prefix dist -b gh-pages # create a local gh-pages branch containing the splitted output folder
git push -f origin gh-pages:gh-pages # force the push of the gh-pages branch to the remote gh-pages branch at origin
git branch -D gh-pages # delete the local gh-pages because you will need it: ref
<message> | |
<div class="msg-box bg-{ opts.type || 'info' } fade-{ fadeMode }" if={ opts.text }> | |
<button type="button" class="close" onclick={ closeBox } if={ opts.close }> | |
<span aria-hidden="true">×</span><span class="sr-only">Close</span> | |
</button> | |
<h4 class="msg-title" if={ opts.title }>{ opts.title }</h4> | |
<ul class="msg-body"> | |
<!-- <li><yield/></li> --> |
/** | |
* HashHistory | |
* @link https://zhuanlan.zhihu.com/p/27588422 | |
*/ | |
// hash的改变会自动添加到浏览器的访问历史记录中。 | |
function pushHash (path) { | |
window.location.hash = path | |
} |
const extra = {} | |
// 密码检测密码强度 | |
extra.checkStrength = function (sValue) { | |
let modes = 0 | |
if (sValue.length < 1) return modes | |
// 正则表达式验证符合要求的 |
// @from http://www.cnblogs.com/kazetotori/p/6037940.html | |
// ajax函数的默认参数 | |
var ajaxOptions = { | |
url: '#', | |
method: 'GET', | |
async: true, | |
timeout: 0, | |
data: null, | |
dataType: 'text', | |
headers: {}, |