This file contains 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
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
# add a trailing slash to /wp-admin | |
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] | |
RewriteCond %{REQUEST_FILENAME} -f [OR] | |
RewriteCond %{REQUEST_FILENAME} -d | |
RewriteRule ^ - [L] | |
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] | |
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] |
This file contains 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
CKEDITOR.editorConfig = function( config ) { | |
config.toolbar = [ | |
{ name: 'basicstyles', items: [ 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat' ] }, | |
{ name: 'paragraph', items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'] }, | |
'/', | |
{ name: 'links', items: [ 'Link', 'Unlink' ] }, | |
{ name: 'styles', items: [ 'Styles', 'Format', 'Font', 'FontSize' ] }, | |
'/', | |
{ name: 'colors', items: [ 'TextColor', 'BGColor' ] }, | |
{ name: 'insert', items: [ 'Table', 'HorizontalRule', 'SpecialChar'] }, |
This file contains 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
2019 Update for Bootstrap 4 | |
Now that Bootstrap 4 uses SASS, you can easily change the primary button color using the button-variant mixins: | |
.btn-danger { | |
@include button-variant($red, darken($red, 7.5%), darken($red, 10%), lighten($red,5%), lighten($red, 10%), darken($red,30%)); | |
} |
This file contains 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
js: | |
$(document).on('turbolinks:load',function(){ | |
$(document).ready(function(){ | |
$("#modalBtn").click(function(){ | |
$("#newProject").modal("show"); | |
}); | |
$("#newProject").on('show.bs.modal', function () { | |
flatpickr('#project_deadline_for_budget_preparation', { | |
altInput: true, | |
altFormat: "F j, Y", |
This file contains 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
安全->基本设置->安全性较低的应用 |
This file contains 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
mail (mx) records -> mail.au.syrahost.com | |
subdomian records mail.screalestate.com.au -> mail.au.syrahost.com (CNAME RECORD) |
This file contains 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
mx record -> mxbiz1.qq.com and mxbiz2.qq.com |
This file contains 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
.page-clips .section-capture { | |
background: -webkit-linear-gradient(top, #1894e1, #241ca2); | |
background: linear-gradient(to bottom, #1894e1, #241ca2); | |
} | |
.page-clips .section-titles { | |
background: -webkit-linear-gradient(top, #1ad3bf, #11c36d); | |
background: linear-gradient(to bottom, #1ad3bf, #11c36d); | |
} |
This file contains 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
https://skyline75489.github.io/post/2016-7-19_dispatch_source_timer_intro.html |
This file contains 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
CFAbsoluteTime startTime =CFAbsoluteTimeGetCurrent(); | |
.... Code ...... | |
CFAbsoluteTime linkTime = (CFAbsoluteTimeGetCurrent() - startTime); | |
NSLog(@"Linked in %f ms", linkTime *1000.0); |
NewerOlder