TODO: Write a project description
TODO: Describe the installation process
| <?php | |
| function gist_shortcode($atts) { | |
| return sprintf( | |
| '<script src="https://gist.github.com/%s.js%s"></script>', | |
| $atts['id'], | |
| $atts['file'] ? '?file=' . $atts['file'] : '' | |
| ); |
| .hide-parent { | |
| float: right; | |
| position: absolute; | |
| top: 10px; | |
| right: 10px; | |
| } | |
| .hide-parent:hover { | |
| color: #fff !important; | |
| border: 0 !important; | |
| } |
| /** | |
| * Pobiera dane ze wskazanego adresu URL poprzez cURL. | |
| * | |
| * @todo Ta funkcja jest zbyt ogólna, by znajdować się w komendach czata. | |
| * @param string $url Adres URL. | |
| * @param array $headers Nagłówki, jakie należy przesłać razem z zapytaniem. | |
| * @param bool $isPost Informacja, czy zapytanie ma zostać zadane metodą POST. Jeśli false, będzie użytwa metoda GET. | |
| * @param mixed $data Dane do przesłania metodą post. | |
| * @return string | |
| */ |
| javascript: | |
| var CSSRefresh = { | |
| styleSheets: [], | |
| init: function() { | |
| var links = document.getElementsByTagName("link"), | |
| lastModified; |
| <?php | |
| function Zip($source, $destination) | |
| { | |
| if (!extension_loaded('zip') || !file_exists($source)) { | |
| return false; | |
| } | |
| $zip = new ZipArchive(); | |
| if (!$zip->open($destination, ZIPARCHIVE::CREATE)) { | |
| return false; |
| <?php | |
| // -------------------------------------------------------------------------------- | |
| // PhpConcept Library - Zip Module 1.3 | |
| // -------------------------------------------------------------------------------- | |
| // License GNU/LGPL - Vincent Blavet - January 2003 | |
| // http://www.phpconcept.net | |
| // -------------------------------------------------------------------------------- | |
| // | |
| // Presentation : | |
| // PclZip is a PHP library that manage ZIP archives. |
| /** %[Object] Radio buttons */ | |
| /*------------------------------------*/ | |
| @-webkit-keyframes pulse { | |
| 0% { width: .7em; height: .7em; margin: .4em; } | |
| 50% { width: 1.1em; height: 1.1em; margin: .2em; } | |
| 100% { width: .9em; height: .9em; margin: .3em; } | |
| } | |
| @-moz-keyframes pulse { | |
| 0% { width: .7em; height: .7em; margin: .4em; } |
| var str = '\n\n\n Multiline text\n with indentation\n damn.\n\n\n'; | |
| // remove first and last empty lines | |
| str = str.replace(/^[\r\n]+|[\n\r]+$/gi, ''); | |
| var indentTab = str.match(/\t*/) != '', | |
| indentSize = indentTab ? 1 : str.match(/\s*/)[0].length, | |
| regex = new RegExp('^(?:' + (indentTab ? '\\t' : ' {' + indentSize + '}') + ')', 'mg'); | |
| // Remove indent |
| // This is part of exif reader which throws error | |
| if (oFile.getLongAt(iTIFFOffset+4, bBigEnd) != 0x00000008) { | |
| if (bDebug) console.log("Not valid TIFF data! (First offset not 8)", oFile.getShortAt(iTIFFOffset+4, bBigEnd)); | |
| return false; | |
| } |