там есть немного лишнего, но сейчас нету особой надобности убирать
/Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/Project Templates/Mac/Application/Command Line Tool.xctemplate/TemplateInfo.plist
curl 'http://yandex.ru/search/?lr=213&text=hello' -X POST -x yandex.ru:80 -v -o /dev/null
* Connected to yandex.ru (5.255.255.5) port 80 (#0)
> POST http://yandex.ru/search/?lr=213&text=hello HTTP/1.1
> Host: yandex.ru
> User-Agent: curl/7.43.0
> Accept: */*
> Proxy-Connection: Keep-Alive
>
< HTTP/1.1 404 Not Found
< Date: Fri, 04 Sep 2015 08:05:16 GMT
< Content-Type: text/html; charset=UTF-8
< Cache-Control: no-cache,no-store,max-age=0,must-revalidate
< Expires: Fri, 04 Sep 2015 08:05:16 GMT
< Last-Modified: Fri, 04 Sep 2015 08:05:16 GMT
< P3P: policyref="/w3c/p3p.xml", CP="NON DSP ADM DEV PSD IVDo OUR IND STP PHY PRE NAV UNI"
< Set-Cookie: yandexuid=7466500011441353916; Expires=Mon, 01-Sep-2025 08:05:16 GMT; Domain=.yandex.ru; Path=/
< X-XSS-Protection: 1; mode=block
< X-Content-Type-Options: nosniff
< Content-Length: 21783
<
{ [861 bytes data]
100 21783 100 21783 0 0 126k 0 --:--:-- --:--:-- --:--:-- 126k
* Connection #0 to host yandex.ru left intact
<html>
<head>
<title>reCAPTCHA demo: Explicit render after an onload callback</title>
<script type="text/javascript">
var onloadCallback = function() {
grecaptcha.render('html_element', {
'sitekey' : 'your_site_key'
});
};
</script>
</head>
<body>
<form action="?" method="POST">
<div id="html_element"></div>
<br>
<input type="submit" value="Submit">
</form>
<script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit"
async defer>
</script>
</body>
</html>
man chmod
...
-R Change the modes of the file hierarchies rooted in the files
instead of just the files themselves.
...
chmod -R 644 folder/
app.use(function(req, res, next) {
res.header('Access-Control-Allow-Origin', '*');
res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE');
next();
})
Широта | 1° Широты | 1° Долготы |
0° | 110.574 km | 111.320 km |
15° | 110.649 km | 107.550 km |
30° | 110.852 km | 96.486 km |
45° | 111.132 km | 78.847 km |
60° | 111.412 km | 55.800 km |
75° | 111.618 km | 28.902 km |
90° | 111.694 km | 0.000 km |
# установим утилиты нужные для сборки c помощью Homebrew http://brew.sh
brew install autoconf automake libtool pkg-config
# склонируем гит репозиторий
mkdir ~/mono && cd ~/mono
git clone https://github.com/mono/mono.git .
# конфигурируем
export PREFIX=/usr/local
./autogen.sh --prefix=$PREFIX --disable-nls
# скачаем последний релиз моно - он нужен чтобы самого себя собрать, на мой взгляд - бред
make get-monolite-latest
# компиляем
make
# устанавливаем
make install
r = http.get(path)
cookie = {'Cookie'=>r.to_hash['set-cookie'].collect{|ea|ea[/^.*?;/]}.join}
r = http.get(next_path,cookie)
ini_set('memory_limit','2048M');
<input name="fileAttach[]" id="attach" type="file" required multiple>
foreach($_FILES["fileAttach"]["name"] as $i => $strFilesName) {
$tmp_name = $_FILES["fileAttach"]["tmp_name"][$i];
....
}
<?php
$a = array(
"0-1439802876-55d1a5fc8879e.jpg",
"1-1439802876-55d1a5fc8ed30.jpg",
"2-1439802876-55d1a5fc95a91.jpg",
);
$b = array(
"0-1440719577-55dfa2d9195ec.jpg",
"2-1440719577-55dfa2d93572b.jpg",
"3-1440719577-55dfa2d951c51.jpg",
);
$a = array_combine(array_map(function ($v) {
return substr($v, 0, strpos($v, '-'));
}, $a), $a);
$b = array_combine(array_map(function ($v) {
return substr($v, 0, strpos($v, '-'));
}, $b), $b);
print_r($a+$b);