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
preferred_syntax = :scss | |
http_path = '/' | |
css_dir = 'assets/styles/css' | |
sass_dir = 'assets/styles/scss' | |
images_dir = 'assets/images' | |
javascripts_dir = 'assets/js' | |
relative_assets = true | |
line_comments = true | |
# output_style = :compressed |
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
add_action('activated_plugin','save_error'); | |
function save_error(){ | |
update_option('plugin_error', ob_get_contents()); | |
} | |
echo get_option('plugin_error'); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</head> | |
<body> | |
<a href="#" class="yourlink">Click Here</a> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> |
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
#!/bin/bash | |
shopt -s nullglob | |
for NAME in * ; do | |
TRS=`echo $NAME | sed "y/ абвгдезийклмнопрстуфхцы/_abvgdezijklmnoprstufxcy/"` | |
TRS=`echo $TRS | sed "y/ АБВГДЕЗИЙКЛМНОПРСТУФХЦЫ/_ABVGDEZIJKLMNOPRSTUFXCY/"` | |
TRS=${TRS//ч/ch}; | |
TRS=${TRS//Ч/CH} TRS=${TRS//ш/sh}; | |
TRS=${TRS//Ш/SH} TRS=${TRS//ё/jo}; | |
TRS=${TRS//Ё/JO} TRS=${TRS//ж/zh}; |
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
//In plugin or functions.php | |
add_action('wp_ajax_my_action_name', 'my_action_name'); | |
add_action('wp_ajax_nopriv_my_action_name', 'my_action_name'); | |
function my_action_name() { | |
// | |
} |
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
#Get Firefox settings: | |
about:config | |
#Set as true: | |
privacy.trackingprotection.enabled |
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
/* | |
* $direction - top, right, bottom or left | |
* $width - arrow width | |
* $height - arrow height | |
* $color - any color | |
* --- | |
* Inspired by: http://apps.eky.hk/css-triangle-generator/ | |
*/ | |
@mixin triangle($direction, $width, $height, $color) { |
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
-server | |
-Xms128m | |
-Xmx512m | |
-XX:MaxPermSize=250m | |
-XX:ReservedCodeCacheSize=150m | |
-XX:+UseConcMarkSweepGC | |
-XX:SoftRefLRUPolicyMSPerMB=50 | |
-ea | |
-Dsun.io.useCanonCaches=false | |
-Djava.net.preferIPv4Stack=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
xprop |awk '/WM_CLASS/{print $4}' |
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 | |
function add_test_type() | |
{ | |
$labels = array( | |
'name' => _x('Тест', 'test'), | |
'singular_name' => _x('Тест', 'test'), | |
'menu_name' => _x('Тест', 'test'), | |
'name_admin_bar' => _x('Тест', 'test'), | |
'add_new' => _x('Добавить новый', 'test'), |
OlderNewer