Skip to content

Instantly share code, notes, and snippets.

Avatar
🐦
fly like a bird ...

Kcko

🐦
fly like a bird ...
View GitHub Profile
@carbontwelve
carbontwelve / curl_example.php
Created Mar 27, 2014
PHP Curl to check if url is alive
View curl_example.php
<?php
function check_alive($url, $timeout = 10, $successOn = array(200, 301)) {
$ch = curl_init($url);
// Set request options
curl_setopt_array($ch, array(
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_NOBODY => true,
CURLOPT_TIMEOUT => $timeout,
@VladaHejda
VladaHejda / NetteCsvResponse.php
Last active May 29, 2017
Nette CSV response
View NetteCsvResponse.php
<?php
namespace Nette\Application\Responses;
use Nette;
/**
* CSV download response.
* Under New BSD license.
*
@MichalKalita
MichalKalita / Soupis webů s Nette Framework
Last active Nov 4, 2018
Update 29.4.2016: zkontrolováno cca 200 000 stránek, podle hlavičky "X-Powered-By"
View Soupis webů s Nette Framework
http://www.100reklam.cz
http://10hvezd.cz
http://12plus12.cz
http://www.17november1989.sk
http://1bazar.sk
http://www.1cfc.cz
http://1cornhill.com
http://1site.cz
http://www.1weby.cz
http://24keys.cz
@jonathonbyrdziak
jonathonbyrdziak / betterxml.function.php
Last active May 26, 2019
Extending the SimpleXMLElement
View betterxml.function.php
<?php
/**
* Giving myself more functionality over this bit
*
* @author byrd
*
*/
class BetterXML extends SimpleXMLElement
{
/**
@jareware
jareware / SCSS.md
Last active May 7, 2021
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do
View SCSS.md

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso