Skip to content

Instantly share code, notes, and snippets.

View fables-tales's full-sized avatar
💭
I may be slow to respond.

Fable Tales fables-tales

💭
I may be slow to respond.
View GitHub Profile
#!/usr/bin/env python
"""
Copyright (c) 2010 Sam Phippen <samphippen@googlemail.com>
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:
<?php
require_once("auth.php");
class NoCredentialsAuthBackend extends AuthBackend
{
public static function getInstance()
{
if (self::$instance == null)
{
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
<?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");
{
module BF where
import List
}
%name bfParse
%tokentype { BFToken }
%error { BFParseError }
%token
<?php
/**
* A class for doing LDAP authentication using the secure token system
* implements SecureTokenAuth
* @author Sam Phippen <samphippen@googlemail.com>
*
*/
class LDAPAuth extends SecureTokenAuth {
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;
}
@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
@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
; 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]