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
$(function () { | |
var $link_modal = $("<a>"); | |
$link_modal | |
.attr('data-toggle', 'modal') | |
.attr('data-target', '#datosPersonales') | |
.attr('data-show', 'true') | |
.attr('data-backdrop', 'static') | |
.attr('id', 'modal_action'); |
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 | |
# Add cron for this | |
# 0 * * * * /home/ec2-user/wp-health-check.sh | |
health="$(curl -s -D - 'http://34.207.228.159/' -o /tmp/last_wp_check)" | |
if [ "$health" == 'HTTP/1.1 200 OK' ]; then | |
echo "$(date) - OK" >> /var/log/wp-health | |
else | |
echo $health >> /tmp/err_mail |
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
// see http://rodneyrehm.de/t/url-regex.html#imme_emosol for the complete table | |
// expression by | |
var url_pattern = /^(https?|ftp|torrent|image|irc|magnet|git\+ssh):\/\/(-\.)?([^\s\/?\.#-]+\.?)+(\/[^\s]*)?$/i; | |
var valid = [ | |
"http://foo.com/blah_blah", | |
"http://foo.com/blah_blah/", | |
"http://foo.com/blah_blah_(wikipedia)", | |
"http://foo.com/blah_blah_(wikipedia)_(again)", |
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
<android xmlns:android="http://schemas.android.com/apk/res/android"> | |
<tool-api-level>17</tool-api-level> | |
<manifest android:installLocation="preferExternal" | |
android:versionCode="3" android:versionName="1.0.2"> | |
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="17"/> | |
<application android:theme="@android:style/Theme.Holo"> | |
<activity | |
android:configChanges="keyboardHidden|orientation" | |
android:name="org.appcelerator.titanium.TiActivity" | |
android:screenOrientation="portrait" |