Skip to content

Instantly share code, notes, and snippets.

View Idered's full-sized avatar
📸
Working on chalk.ist

Kasper Mikiewicz Idered

📸
Working on chalk.ist
View GitHub Profile
@Idered
Idered / pclzip.lib.php
Last active July 21, 2016 15:36
Unzip file with php
<?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.
@Idered
Idered / zipit.php
Created August 9, 2013 14:44
Zip FTP "/public" -> public.min.zip
<?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;
@Idered
Idered / debug.css.js
Last active December 14, 2015 14:49
Debug bookmarklets
javascript:
var CSSRefresh = {
styleSheets: [],
init: function() {
var links = document.getElementsByTagName("link"),
lastModified;
@Idered
Idered / README.md
Created January 25, 2013 03:23 — forked from zenorocha/README.md

Project Name

TODO: Write a project description

Installation

TODO: Describe the installation process

Usage

@Idered
Idered / curlQuery.php
Last active October 7, 2015 13:38
curlQuery
/**
* 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
*/
.hide-parent {
float: right;
position: absolute;
top: 10px;
right: 10px;
}
.hide-parent:hover {
color: #fff !important;
border: 0 !important;
}
@Idered
Idered / gist_shorthand.php
Created February 4, 2012 16:29
Gist shortcode for Wordpress
<?php
function gist_shortcode($atts) {
return sprintf(
'<script src="https://gist.github.com/%s.js%s"></script>',
$atts['id'],
$atts['file'] ? '?file=' . $atts['file'] : ''
);