Skip to content

Instantly share code, notes, and snippets.

View efiku's full-sized avatar
💬
🗡

Krzysztof Pazdur efiku

💬
🗡
  • Poland
View GitHub Profile
@efiku
efiku / testDelta.java
Created January 12, 2016 00:16
Test Delta Class
package tests;
import delta.Delta;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Created by efik
// ==UserScript==
// @name CzatRepajr
// @version 1.0
// @author Magic
// @include /^httpsv:\/\/(www\.)?forum\.miroslawzelent\.pl(\/)?((?!chat).)*$/
// ==/UserScript==
(function (h, s, m, c) {
//var PATH = 'http://localhost:81/czatrepajr/'
var PATH = 'http://chat.syntax-shell.me/'
<form enctype="multipart/form-data" action="" method="post">
<input type="file" name="photo"/><br/>
<input type="submit" value="Wyślij"/>
</form>
<?php
if($_SERVER["REQUEST_METHOD"] !== "POST" ){
exit;
@efiku
efiku / Repository.cpp
Created December 29, 2015 12:43
Repository class.
class Repository
{
public:
template <typename _Resource = ServiceInterface>
bool create(const string& resourceId_);
template <typename _Resource = ServiceInterface>
_Resource& get(const string& resourceId_);
void release(const string& resourceId_);
@efiku
efiku / 1.php
Created December 27, 2015 22:38
<?php
ini_set("display_errors", 1);
error_reporting(E_ALL);
session_start();
$_SESSION['name'] = implode("", range("A", "Z", 3) );
$_SESSION['time'] = time();
// end script
#include "ServiceInterface.h"
#include <vector>
#include <map>
class Container {
private:
std::map<const std::string, ServiceInterface *> container;
public:
/*
© 2015 Krzysztof Pazdur.
Licencja MIT.
Skyrpt ułatwiający życie moderatorom.
Ukrywa pozostałe odpwoiedzi / komentarze do pytań / odpowiedzi.
*/
// ==UserScript==
// @name New Userscript
@efiku
efiku / deleteAllTopicsOrPosts.js
Last active December 22, 2015 08:06
Skrypt kasuje wszystkie Tematy, komentarze bez odpowiedzi w panelu moderatora.
/*
© 2015 Krzysztof Pazdur.
Licencja MIT.
Skyrpt ułatwiający życie moderatorom.
Kasuje wszystkie tematy w panelu moderatora.
*/
// ==UserScript==
// @name New Userscript
@efiku
efiku / Registry.php
Last active December 27, 2015 17:13
<?php
class Container implements ContainerAware {
/** @var ArrayObject */
private $storage;
/**
* Get value from Container
* @param key
<?php
/**
* Created by PhpStorm.
* User: efik
* Date: 21.11.15
* Time: 18:47
*/
$container = new ArrayObject();