Skip to content

Instantly share code, notes, and snippets.

View ivanrosolen's full-sized avatar
:octocat:
....

Ivan Rosolen ivanrosolen

:octocat:
....
  • Stone
  • São Paulo, Brasil
View GitHub Profile
Verifying that +ivanrosolen is my Bitcoin username. You can send me #bitcoin here: https://onename.io/ivanrosolen
/* iPhone < 5 */
@media screen and (device-aspect-ratio: 2/3) {
.content{
max-height: 320px;
}
}
/* iPhone 5 */
@media screen and (device-aspect-ratio: 40/71) {}
@ivanrosolen
ivanrosolen / gist:9122993
Created February 20, 2014 20:54
cURL commands
curl_setopt($ch, CURLOPT_COOKIE, ...); // -b
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT'); // -X
curl_setopt($ch, CURLOPT_BINARYTRANSFER, TRUE); // --data-binary
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: image/png']); // -H
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); // -0
@ivanrosolen
ivanrosolen / Strings de Teste
Last active December 30, 2015 07:39
Criar um jeito em php para retornar apenas o nome do arquivo (sem extensão nem diretórios)
/var/www/public/upload/image.jpeg
imagem.01.png
/ivan.pdf
/var/www/public/upload/imaginação.JPG
/var/www/nome bem legal.png
ilári iê.gif
/opa_ivan.01_03.jpeg
swp.ivan.01.12.2013.php
/var/www/_windows Like.gif
yudi.jPeG