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 my_opengraph_image_size() { | |
return 'large'; | |
} | |
add_filter( 'wpseo_opengraph_image_size', 'my_opengraph_image_size', 10, 1 ); |
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
videos.each(function () { | |
var video = $(this).get(0); | |
video.addEventListener('loadedmetadata', function () { | |
console.log(video.duration); | |
}); | |
}); | |
skrollr.init({ | |
render: function(data) { |
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
from threading import Thread | |
import requests ## pip install requests | |
import time | |
import smtplib | |
## email sending function | |
def email_sender(input_message, email_to, client): | |
''' function to send email ''' | |
to = email_to | |
gmail_user = '' ## email of sender account |
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
initComposer = function() { | |
if (window.XMLHttpRequest) { | |
httpRequest = new XMLHttpRequest(); | |
} else if (window.ActiveXObject) { | |
try { | |
httpRequest = new ActiveXObject("Msxml2.XMLHTTP"); | |
} | |
catch (e) { | |
try { | |
httpRequest = new activeXObject("Microsoft.XMLHTTP"); |
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
- Even when logged in, the homepage shows the signup form. This would be much more useful if it showed the current issue. | |
- On the current issue on mobile, there is 3 full screens of navigation cruft before you get to the first post. | |
- Fix broken layouts on mobile. | |
- Ability to attach pictures or other media to posts. | |
- Ability to reply to a post. | |
- Ability to see replies to a post. | |
- Fewer posts about cats ;) |
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
Today.page_turn_forward = function () { | |
var y = 322, | |
i = 0, | |
frame_count = 27, | |
frame = $('.anim-frame'), | |
interval; | |
frame.show() | |
// Start position |
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
Category | Type | Name | Address | City | Zip Code | Phone Number | URL | |
---|---|---|---|---|---|---|---|---|
General | Bank | Chase Bank | 36132 Hidden Springs Rd | Wildomar | 92595 | (951) 678-9231 | https://www.chase.com/ | |
Public Services | Fire Station | Station 61 | 32637 Gruwell St. | Wildomar | 92595 | 951-246-2337 | http://cityofwildomar.org | |
Entertainment | Museum | Temecula Valley Museum | 28314 Mercedes St | Temecula | 92592 | (951) 694-6450 | http://temeculavalleymuseum.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
<?php | |
function is_mobile() { | |
$is_mobile = (bool)preg_match( '#\b(ip(hone|od)|android\b.+\bmobile|'. | |
'opera m(ob|in)i|windows (phone|ce)|blackberry|s(ymbian'. | |
'|eries60|amsung)|p(alm|rofile/midp|laystation portable'. | |
')|nokia|fennec|htc[\-_]|up\.browser|[1-4][0-9]{2}x[1-4]'. | |
'[0-9]{2})\b#i', $_SERVER['HTTP_USER_AGENT'] ); | |
return $is_mobile; | |
} |
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 | |
/** | |
* Given a string containing any combination of YouTube and Vimeo video URLs in | |
* a variety of formats (iframe, shortened, etc), each separated by a line break, | |
* parse the video string and determine it's valid embeddable URL for usage in | |
* popular JavaScript lightbox plugins. | |
* | |
* In addition, this handler grabs both the maximize size and thumbnail versions | |
* of video images for your general consumption. In the case of Vimeo, you must | |
* have the ability to make remote calls using file_get_contents(), which may be |
NewerOlder