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
| <a href="/delete/stuff" class="btn btn-delete" data-sure-text="sure?"> delete </a> | |
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
| Controller.create('Test', { | |
| /** | |
| * @Route('/') | |
| */ | |
| indexAction: function(req, res) | |
| { | |
| }, |
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
| #!/bin/bash | |
| ######## defaults | |
| EXECUTABLE_NAME="a.out" | |
| LIBS="" | |
| LOG_FILE="/tmp/$(basename $0).$RANDOM.log" | |
| COMPILE_OPTS="" | |
| LINK_OPTS="" | |
| if [ "$1" == "debug" ] |
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
| <htmlzeugsblafoo> | |
| <?php | |
| $request = $_SERVER['DOCUMENT_ROOT'] . $_SERVER['REQUEST_URI']; | |
| $dirname = __DIR__ . '/'; | |
| $request = preg_replace('(^'.$dirname.')', '', $request); | |
| $page = trim($request, '/'); | |
| $path = './content/' . $page . '.html'; | |
| $allowed = array_merge(glob('./content/*.html'), glob('./content/*/*.html')); | |
| if(in_array($path, $allowed)) include $path; | |
| else include './content/home.html'; |
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 | |
| class CoolStringClass | |
| { | |
| public function __construct($content) | |
| { | |
| $this->contents = $content; | |
| } | |
| public function __toString() |
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 | |
| class ServerStatus | |
| { | |
| private $cachePath = './status.cache'; | |
| private $cacheLifetime = 60; // in sekunden | |
| private $statusUrl = 'http://www.swtor.com/de/server-status'; | |
| public function dispatch($url) | |
| { |
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
| $exif = (int)$image->getImageProperty("exif:Orientation"); | |
| switch($exif) { | |
| case 2: | |
| $image->flopImage(); | |
| break; | |
| case 3: | |
| $image->rotateImage('black', 180); | |
| break; | |
| case 4: | |
| $image->flipImage(); |
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
| (function() { | |
| document.cE = document.createElement; | |
| var s = [], div = document.cE('div'); | |
| var text = document.cE('input'); | |
| var col = [0, 0, 0]; | |
| var aE = "attachEvent", oc = "onchange", ok = "onkeyup"; | |
| var uB = function() { | |
| var c = text.value.match(/\w\w?/g), n, i; | |
| for(i in c) { | |
| s[i].value = col[i] = parseInt(c[i], 16) || 0; |
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 <stdlib.h> | |
| #include <sys/types.h> | |
| #include <unistd.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <ctype.h> | |
| #include <sys/stat.h> | |
| #include <fcntl.h> | |
| #define MAXLINE 4096 |
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
| #!/bin/sh | |
| CURL=`which curl` | |
| TAR=`which tar` | |
| path=$1 | |
| shift | |
| params=$* | |
| $CURL $path | $TAR -x $params |