Skip to content

Instantly share code, notes, and snippets.

@possan
possan / gist:988864
Created May 24, 2011 14:58
Zitiz OAuth code
using System;
using System.Collections.Generic;
using System.Threading;
using System.Web;
using JsonFx.Json;
using log4net;
using OAuth;
using Zitiz.Types.Interfaces.IO;
using Zitiz.Types.Interfaces.Security;
using Zitiz.Types.Interfaces.UI;
if( m_new_award > m_old_award )
{
switch( m_new_award )
{
case MEDAL_BRONZE:
messagepart1 = [NSString stringWithFormat:@"Your TOTAL SCORE of %d won you the BRONZE MEDAL.", m_new_highscore];
messagepart2 = [NSString stringWithFormat:@"Score more than %d to win the SILVER MEDAL!", m_silver_level];
break;
case MEDAL_SILVER:
@possan
possan / gist:663987
Created November 5, 2010 11:08
autogenerated flashbanner display code from adtech
__ADTECH_CODE__ = "";
__theDocument = document;
__theWindow = window;
__bCodeFlushed = false;
/*
* TextureRepository.cpp
* SafeDriverApp1
*
* Created by Per-Olov Jernberg on 5/30/10.
* Copyright 2010 __MyCompanyName__. All rights reserved.
*
*/
#include "TextureRepository.h"
@possan
possan / gist:659521
Created November 2, 2010 11:41
sso notes
======================================================================
SSO: Logged in at global domain:
======================================================================
z.se hej.se
<--------------
check local cookie at global domain
logged in here
--------------->
global usertoken
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="...." Inherits="...." %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<asp:ContentPlaceHolder ID="HeadContent" runat="server" />
<asp:Literal ID="liHeaders" runat="server" EnableViewState="false" />
</head>
<body class="standard yui-skin-sam">