This should work on:
- 10.9 Mavericks
- 10.10 Yosemite
Taken from Using MacOSX Lion command line mail with Gmail as SMTP
Edit file /etc/postfix/main.cf and add this to the bottom:
| function isScrolledIntoView(elem) { | |
| var $window = $(window); | |
| return elem.offset().top + elem.outerHeight() >= $window.scrollTop() && elem.offset().top <= $window.scrollTop() + $window.height(); | |
| } |
| Bootstrap 3 grid in Sketch 3: | |
| medium: 1000px - 12col - 30px - 53px | |
| large: 1170px - 12col - 30px - 68px | |
| Both: gutter on outside enabled |
| sudo umount /Volumes/UNTITLED | |
| sudo mount -t ntfs -o rw,auto,nobrowse /dev/disk3s1 ~/ntfs-volume |
| <a href="" id="iconmenu"></a> |
This should work on:
Taken from Using MacOSX Lion command line mail with Gmail as SMTP
Edit file /etc/postfix/main.cf and add this to the bottom:
| function youtube_id_from_url($url) { | |
| $pattern = | |
| '%^# Match any youtube URL | |
| (?:https?://)? # Optional scheme. Either http or https | |
| (?:www\.)? # Optional www subdomain | |
| (?: # Group host alternatives | |
| youtu\.be/ # Either youtu.be, | |
| | youtube\.com # or youtube.com | |
| (?: # Group path alternatives | |
| /embed/ # Either /embed/ |
| setTimeout(function(){ | |
| //stuff | |
| }, 2000); |
| //Remove absolute paths to relative paths for using ngrok urls | |
| add_action('template_redirect', 'odt_autoload'); | |
| function odt_autoload(){ | |
| if(!isset($_GET['odt_autoload'])){ | |
| $site_url = site_url().'/'; | |
| echo str_replace($site_url, 'http://' . $_SERVER['HTTP_HOST'] . wp_make_link_relative($site_url), file_get_contents(add_query_arg('odt_autoload', 1, 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']))); | |
| exit; | |
| } | |
| } |
| $('.openpopup').click(function(){ | |
| var url = $(this).attr('href'); | |
| window.open(url, this.target, 'width=320,height=450,left=150,top=100'); | |
| return false; | |
| }); |
| function get_api ($lat, $long) { | |
| $get_API = "http://maps.googleapis.com/maps/api/geocode/json?latlng="; | |
| $get_API .= round($lat,2).","; | |
| $get_API .= round($long,2); | |
| $jsonfile = file_get_contents($get_API.'&sensor=false'); | |
| $jsonarray = json_decode($jsonfile); | |
| if (isset($jsonarray->results[1]->address_components[1]->long_name)) { | |
| return($jsonarray->results[1]->address_components[1]->long_name); |