This file contains hidden or 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 <iostream> | |
#include <string> | |
#include <stdlib.h> | |
using namespace std; | |
typedef struct _node { | |
string name; | |
} node; |
This file contains hidden or 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
<style type="text/css"> | |
#app-container | |
{width:100%!important; | |
position:absolute!important; | |
left:0!important; | |
background:#fff;} | |
#app-container h2 | |
{text-align:center; | |
line-height:28px;} |
This file contains hidden or 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 | |
/** | |
* git diff --with-colors A B > colors.diff | |
*/ | |
function escape_meta ($string) { | |
$string = htmlspecialchars($string); | |
$string = str_replace( |
This file contains hidden or 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 | |
function xor_obfuscator ($string) { | |
if (!strlen($string)) { | |
return $string; | |
} | |
$key = ord($string{0}); | |
$new = pack("C", | |
($key & 0xf0) |
This file contains hidden or 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 | |
$contents = htmlspecialchars(@$_POST['contents']); | |
if (!$contents) { ?> | |
<form method="post"> | |
<textarea name="contents"></textarea> | |
<br> | |
<input type="submit"> | |
</form> |
This file contains hidden or 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 <time.h> | |
#include <iostream> | |
#include <iomanip> | |
using namespace std; | |
/** | |
* Calcula un año biciesto: | |
* | |
* Si es múltiplo de cuatro y NO es múltiplo de 100, |
This file contains hidden or 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
#define IMPERATIVE | |
#ifdef IMPERATIVE | |
#include <iostream> | |
using namespace std; | |
int main (int narg, char *varg[]) { | |
if (narg != 4) { | |
cout << "Usage:\n program_name [number] [number] [number]\n"; |
NewerOlder