Skip to content

Instantly share code, notes, and snippets.

View mattiz's full-sized avatar

Mathias Bjerke mattiz

View GitHub Profile
<?php
namespace Foo;
try {
throw new \Exception();
} catch (Exception $e) {
echo 'Exception caught!';
[ 30.172555] backlight supply power not found, using dummy regulator
[ 30.429345] TI-am335x-tsc TI-am335x-tsc: ti,charge-delay not specified
[ 30.429779] input: ti-tsc as /devices/platform/ocp/44e0d000.tscadc/TI-am335x-tsc/input/input3
[ 30.617069] backlight supply power not found, using dummy regulator
[ 30.679643] backlight supply power not found, using dummy regulator
[ 34.249774] backlight supply power not found, using dummy regulator
[ 34.651003] backlight supply power not found, using dummy regulator
[ 34.889848] pinctrl-single 44e10800.pinmux: pin 44e108a0.0 already requested by 0-0070; cannot claim for panel
[ 34.900089] pinctrl-single 44e10800.pinmux: pin-40 (panel) status -22
[ 34.906647] pinctrl-single 44e10800.pinmux: could not request pin 40 (44e108a0.0) from group pinmux_bb_lcd_lcd_pins on device pinctrl-single
Hvordan lære ungdommen grammatikk:
SUBSTANTIV er et ord du kan sette "-jævel" bak, f.eks: Kattejævel, lærerjævel, politijævel...
ADJEKTIV er alle ord du kan sette "drit-" foran, f.eks:
Dritfin, dritstygg, dritbra...
VERB er et ord du kan sette "inn i helvete" bak, f.eks:
Klø inn i helvete, kjefte inn i helvete, drekka inn i helvete...
/ \
| Hi, I am clippy, your bash |
| assistant. Command not found: |
| |
| xxx |
| |
\_________________________________/
\ |
\|
___
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var arr = [{test:'test'},{test2:'test2'}];
var data = {projects: arr};
$.ajax({
url: 'test.php',
public static String md5( String clearText ) {
MessageDigest md;
byte[] cipher;
StringBuilder hexString;
try {
md = java.security.MessageDigest.getInstance("MD5");
cipher = md.digest( clearText.getBytes( "UTF-8" ) );
hexString = new StringBuilder();
Result: FAIL
Failed 27/30 test programs. 12/12 subtests failed.
make: *** [test_dynamic] Error 2
MMIMS/Net-Twitter-3.18001.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports MMIMS/Net-Twitter-3.18001.tar.gz
Warning (usually harmless): 'YAML' not installed, will not store persistent state
Running make install
make test had returned bad status, won't install without force
public class LocaleUtil {
private static Pattern pattern = Pattern.compile("^([a-z][a-z])(_([A-Z][A-Z]))?$");
/**
* Returns null if the string couldn't be parsed
*/
public static Locale parseStringToLocale(String s) {
Matcher matcher = pattern.matcher(s);
if(!matcher.matches()) {