Skip to content

Instantly share code, notes, and snippets.

View wchristian's full-sized avatar

Christian Walde (Mithaldu) wchristian

View GitHub Profile
goto *(isWrong() ? &&err : &&continue);
err:
cerr << "A problem" << endl;
goto end;
continue:
end:
return;
use strictures;
package Framework;
use 5.010;
use OpenGL qw(
glutInit
GLUT_DOUBLE GLUT_ALPHA GLUT_DEPTH GLUT_STENCIL
glutInitDisplayMode glutInitWindowSize glutInitWindowPosition glutCreateWindow
@wchristian
wchristian / gist:2397756
Created April 16, 2012 10:55
multi-homing ssh keys
12-04-16@12:44:16 (nrr) i use multiple identities all the time.
12-04-16@12:44:17 (nrr) https://github.com/nrr/dotfiles/blob/master/src/.ssh/config.d/config_zz-default
12-04-16@12:44:54 (@Mithaldu) i've only ever seen one key from you
12-04-16@12:45:48 (nrr) http://hastebin.com/tiroyapaqu.txt
12-04-16@12:46:08 (nrr) small sample of the identities i use for things.
12-04-16@12:47:05 (@Mithaldu) nrr: do you have multiple identities for the same target?
12-04-16@12:47:23 (nrr) Mithaldu: in some cases, yes, depending on the username i use.
12-04-16@12:48:08 (@Mithaldu) no, for the same username
12-04-16@12:48:52 (nrr) no, never.
12-04-16@12:48:53 (@Mithaldu) for said coworker this would mean he needs to use two different keys to use the internal git thinger
Williams - otherland
George turner - menschenprojekt
Struga(t)zki - regenbogen
Arne sjöberg - andromeda
Jewgenij samjatin - wir
Matthias robold - stardawn
Gert prokop
Christopher priest - the affirmation
C s Lewis - Perelandra
phantastische bibliothek - Suhrkamp taschenbuch - ady henry kiss -manhattan II / canyons
#include <windows.h>
#include <GL/gl.h>
#include <GL/glext.h>
///////////////////////////////////////////////////////////////////
// WINDOWING
#define SCREENX 1024
#define SCREENY 768
@wchristian
wchristian / Bar.pm
Created March 28, 2012 12:50
Role test
package Bar;
use Role::Tiny;
sub foo { 1 }
1;
use strictures;
package moose_perf;
use 5.010;
use Git::PurePerl::Object::Tree;
use Git::PurePerl::DirectoryEntry;
use Time::HiRes 'time';
run();

on IE8 cache: false needs to be obeyed in all ajax requests or maybe even forced

The problem is at this position:

https://github.com/jquery/jquery/blob/master/src/ajax.js#L664

This line skips the logic triggered by cache: false if the request type is anything but HEAD or GET. I assume this is done for optimization, because most browsers won't cache on other types of requests.

use strictures;
use Test::More;
use SOAP::Lite;
use utf8;
my $data = "mü";
my $xml = SOAP::Serializer->envelope( freeform => $data );
my ( $cycled ) = values %{ SOAP::Deserializer->deserialize( $xml )->body };