cat's dockerized WordPress dev environment
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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
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
<?php | |
/** | |
* Plugin Name: Automatic Dark Mode | |
* Plugin URI: https://github.com/danieltj27/Dark-Mode/ | |
* Description: Lets your users make the WordPress admin dashboard darker. | |
* Author: Daniel James | |
* Author URI: https://www.danieltj.co.uk/ | |
* Text Domain: auto-dark-mode | |
* Version: 1.0 |
People
![]() :bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
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
# EditorConfig helps developers define and maintain consistent | |
# coding styles between different editors and IDEs | |
# editorconfig.org | |
root = true | |
[*] | |
end_of_line = lf | |
charset = utf-8 |
The standard code style linter is a great tool by Feross - check it out!
Remove trailing semicolons:
find . -path ./node_modules -prune -o -type f -name '*.js' -exec sed -i '' -e 's/;$//' {} \;
Ensure space between function
and opening bracket:
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
.font-vars() { | |
@font: { | |
@family: { | |
serif: serif; | |
sans: sans-serif; | |
deco: cursive; | |
} | |
@size: { |
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
$(document).ready(() => { | |
$("#add_bookmark").click(() => { | |
// Mozilla Firefox Bookmark | |
window.sidebar && window.sidebar.addPanel(location.href, document.title,""); | |
// IE Favorite | |
window.external && window.external.AddFavorite(location.href, document.title); | |
// Opera Hotlist | |
if( window.opera && window.print ) { | |
this.title=document.title; | |
return true; |
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
<?php | |
class Loadmore_Button { | |
public $article_wrapper = 'article-card'; | |
public $post_per_load = 6; | |
public $button_text = 'Показать еще'; | |
public $button_loading_text = 'Загрузка...'; | |
public $button_data_attr = 'data-aos="fade-up"'; | |
public $orderby = 'date'; | |
public $article_class = '.all-news__item'; | |
public $button_class = 'all-news__btn-more'; |
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
// unlike tweets using twitter web (use this on https://twitter.com/USERNAME/likes) | |
// | |
// @param {n} the number of likes to delete | |
// @param {maxWaitRetries} maximum number of times to try loading more likes when | |
// everything on the page has been unliked | |
const unlike = async (n, maxWaitRetries = 10) => { | |
let total = 0; | |
while(total < n) { | |
// get every like button on the page and click it | |
const likeButtons = await document.querySelectorAll('[data-testid="unlike"]'); |
OlderNewer