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/env python | |
""" | |
Copyright (c) 2010 Sam Phippen <[email protected]> | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
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
<?php | |
require_once("auth.php"); | |
class NoCredentialsAuthBackend extends AuthBackend | |
{ | |
public static function getInstance() | |
{ | |
if (self::$instance == null) | |
{ |
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
diff --git a/include/errors.php b/include/errors.php | |
index 31da5b0..2a0ea41 100644 | |
--- a/include/errors.php | |
+++ b/include/errors.php | |
@@ -7,3 +7,4 @@ define('E_PERM_DENIED', 4); | |
define('E_AUTH_FAILED', 5); | |
define('E_AUTH_DENIED', 6); | |
define('E_NOT_IMPL', 7); | |
+define('E_PROJ_NONEXISTANT', 0x21); | |
diff --git a/modules/proj.php b/modules/proj.php |
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
<?php | |
//delete any existing repos | |
if (is_dir("/tmp/test-repos")) | |
{ | |
exec("rm -rf /tmp/test-repos"); | |
} | |
//create the tld and manufacture a git repo | |
exec("mkdir -p /tmp/test-repos/beedogs"); |
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
{ | |
module BF where | |
import List | |
} | |
%name bfParse | |
%tokentype { BFToken } | |
%error { BFParseError } | |
%token |
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
<?php | |
/** | |
* A class for doing LDAP authentication using the secure token system | |
* implements SecureTokenAuth | |
* @author Sam Phippen <[email protected]> | |
* | |
*/ | |
class LDAPAuth extends SecureTokenAuth { | |
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
define i32 @main() | |
{ | |
;create location and store it | |
%location = alloca i32 | |
store i32 0, i32* %location | |
@values = internal global [8192 x i32] zeroinitializer | |
%shouldbezero = getelementptr @values, i32 0 | |
ret i32 0; | |
} |
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
@values = internal global [8192 x i32] zeroinitializer | |
define i32 @main() | |
{ | |
entry: | |
;create location and store zero to it | |
%location = alloca i32 | |
store i32 0, i32* %location | |
;get the addr of the first element |
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
@values = internal global [8192 x i32] zeroinitializer | |
define i32 @main() | |
{ | |
entry: | |
;create location and store zero to it | |
%location_ptr = alloca i32 | |
store i32 0, i32* %location_ptr | |
%location = load i32* %location_ptr |
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
; ModuleID = 'ponies.ll' | |
@values = internal global [8192 x i32] zeroinitializer ; <[8192 x i32]*> [#us | |
define i32 @main() nounwind { | |
entry: | |
%dereference1 = load i32* getelementptr inbounds ([8192 x i32]* @values, i3 | |
%inc3 = add i32 %dereference1, 3 ; <i32> [#uses=3] | |
store i32 %inc3, i32* getelementptr inbounds ([8192 x i32]* @values, i32 0, | |
%cond = icmp eq i32 %inc3, 10 ; <i1> [#uses=1] |
OlderNewer