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
<?php | |
/** | |
* Very Simple method for Omer count. | |
* | |
* @return bool|int Omer count or false if out Omer range date. | |
* | |
* @author Yakir Sitbon (http://www.yakirs.net/) | |
*/ | |
function yakir_get_omer_count() { | |
// Get now jd date. |
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
#!/bin/bash | |
current_directory=$( pwd ) | |
#remove spaces | |
for i in *.wma; do mv "$i" `echo $i | tr ' ' '_'`; done | |
#Rip with Mplayer / encode with LAME | |
for i in *.wma ; do mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader "$i" && lame --vbr-new -V4 -m s audiodump.wav -o "$i"; done |
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
<?php | |
function add_social_widget_to_page_builder( $widgets ) { | |
$widgets[] = 'Pojo_Widget_Social_Links'; | |
return $widgets; | |
} | |
add_filter( 'pb_page_builder_widgets', 'add_social_widget_to_page_builder' ); |
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
<?php | |
function pojo1029_show_favicon() { | |
?> | |
<link rel="apple-touch-icon" sizes="57x57" href="http://www.example.com/apple_touch_icon_iphone.png" /> | |
<link rel="apple-touch-icon" sizes="72x72" href="http://www.example.com/apple_touch_icon_ipad.png" /> | |
<link rel="apple-touch-icon" sizes="114x114" href="http://www.example.com/apple_touch_icon_iphone_retina.png" /> | |
<link rel="apple-touch-icon" sizes="144x144" href="http://www.example.com/apple_touch_icon_ipad_retina.png" /> | |
<?php | |
} | |
add_action( 'wp_head', 'pojo1029_show_favicon' ); |
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
<?php | |
function pojo4321_add_sidebar_area( $content ) { | |
ob_start(); | |
dynamic_sidebar( 'YOUR SIDEBAR AREA NAME' ); | |
$content .= ob_get_clean(); | |
return $content; | |
} | |
add_filter( 'the_content', 'pojo4321_add_sidebar_area', 9999 ); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# ------------------------------------------------------------------------------ | |
# | Proper MIME types for all files | | |
# ------------------------------------------------------------------------------ | |
<IfModule mod_mime.c> | |
# Audio | |
AddType audio/mp4 m4a f4a f4b | |
AddType audio/ogg oga ogg |
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 sys | |
if sys.platform == 'win32': | |
from ctypes import * | |
class LASTINPUTINFO(Structure): | |
_fields_ = [ | |
('cbSize', c_uint), | |
('dwTime', c_int), | |
] |
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 pojo6891_print_custom_css_codes( Pojo_Create_CSS_Code $css_code ) { | |
$css_code->add_value( '.product-title', 'color', get_theme_mod( 'secondary_color' ) ); | |
} | |
add_filter( 'pojo_wp_head_custom_css_code', 'pojo6891_print_custom_css_codes' ); |
OlderNewer