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
/usr/bin/php /www/pub/ilias-trunk/test.php | |
Testcase ID=Modules/Wiki/mediawiki/normal/UtfNormalTest.php:32 | |
Array | |
( | |
[in] => ABCDEFG12345678910 | |
[out1] => 414243444546473132333435363738393130 | |
[out2] => 414243444546473132333435363738393130 | |
) | |
OK | |
Array |
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
Testcase ID=/Modules/SurveyQuestionPool/phplot/phplot.php:672 | |
Array | |
( | |
[in] => Array | |
( | |
[which_style] => 4-3 | |
[which_ndxcol] => 0 | |
) | |
[out1] => Array |
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
use std::mem; | |
/// This is an attempt to reduce allocations in the Twig-Rust template engine. | |
/// | |
/// During compilation the inial template string is transformed | |
/// - to a token stream during lexing | |
/// - to a node tree during parsing | |
/// | |
/// The tokens and nodes mostly contain slices of the original string. But the | |
/// current implementation uses new allocations and copy-by-value instead of |
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
#!/bin/bash | |
# original source https://users.rust-lang.org/t/tutorial-how-to-collect-test-coverages-for-rust-project/650 | |
# modified version https://gist.github.com/colin-kiegel/e3a1fea04cd3ad8ed06d | |
PKGID="$(cargo pkgid)" | |
[ -z "$PKGID" ] && exit 1 | |
ORIGIN="${PKGID%#*}" | |
ORIGIN="${ORIGIN:7}" | |
PKGNAME="${ORIGIN##*/}" |
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
#!/bin/bash | |
# This FIRST WRAPPER only calls cargo - but it has a different name, so we can search for its PID in the second wrapper | |
# | |
# This is only meant to be called by cargo-wait (=second wrapper) | |
/usr/local/bin/cargo $@ |
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
#!/bin/bash | |
lp /usr/share/cups/data/default-testpage.pdf |
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
; /etc/hhvm/php.ini | |
; php options | |
session.save_handler = files | |
session.save_path = /var/lib/php5 | |
session.gc_maxlifetime = 1440 | |
; hhvm specific | |
hhvm.log.level = Warning | |
hhvm.log.always_log_unhandled_exceptions = true ; (!) |
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
macro_rules! match_and_then { | |
{ $val:tt .. {$( $default_action:tt )*}; $( {$( $pattern:tt )+} => {$( $action:tt )*} ;)*} => { | |
macro_rules! __callback_match_and_then { | |
$( {$( $pattern )+} => {$( $action )*}; )* | |
{ $any:tt } => {$( $default_action )*}; | |
} | |
__callback_match_and_then!($val); | |
} | |
} |
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
#[derive(Debug, Default)] | |
struct Channel { | |
special_info: i32 | |
} | |
impl Channel { | |
fn special_info<VALUE: Into<i32>>(mut self, value: VALUE) -> Self { | |
self.special_info = value.into(); | |
self | |
} |
OlderNewer