Skip to content

Instantly share code, notes, and snippets.

View jamesyoung's full-sized avatar
🤖
https://collab.land

James Young jamesyoung

🤖
https://collab.land
View GitHub Profile
package
{
import org.osflash.signals.Signal;
import flash.display.MovieClip;
import flash.events.Event;
import flash.utils.getDefinitionByName;
/**
* The EnterFrameDispatcher is injected into the Main class through the [Frame] MetaData tag.
.mouse{
position: absolute;
background-image: url('../images/cursor.png');
width: 15px;
height: 22px;
z-index: 100;
}
@jamesyoung
jamesyoung / gist:1041462
Created June 22, 2011 22:50
Titanium Mobile Mixpanel example
function track(evt, p) {
if (Ti.Network.online) {
var track = {};
var props = {};
track.event = evt;
props.ip = Ti.Platform.id;
props.token = Ti.App.MIXPANEL;
props.time = Ti.App.date.getTime();
for (var key in p) {
props[key] = p[key];
package com.wincity.lib.air.slots.gamewrapper
{
import flash.display.Stage;
import mx.core.UIComponent;
public interface IGameWrapper
{
package com.wincity.lib.air.slots.gamewrapper
{
import com.wincity.lib.air.facebook.FacebookWrapper;
import com.wincity.lib.air.slots.SlotsConfigData;
import com.wincity.lib.air.slots.consts.GameTypeConstants;
import com.wincity.lib.air.slots.gamewrapper.BADAGameWrapper;
import com.wincity.lib.air.slots.gamewrapper.CozyGameWrapper;
import com.wincity.lib.air.slots.gamewrapper.IGameWrapper;
import com.wincity.lib.air.slots.manager.CLobbyManager;
import com.wincity.lib.air.slots.manager.CSlotController;
{
"game-name": "Dolphin",
"asset-path": "http://localhost:5000/dolphin/assets/",
"assets": {
"art": [
"background_img.png",
"messagebar_img.png",
"trayBack_img.png",
"close_up_btn.png",
"close_down_btn.png",
"bonus": {
"type":"bonus",
"button_group": [
{
"id": "PrizeMagic",
"image": "scallop_pick.png",
"image-down": "scallop_pick.png",
"specific-position": [
@jamesyoung
jamesyoung / gist:8119487
Created December 25, 2013 01:46
UpdateGameInfo.as::sendRequest()
override public function sendRequest():void
{
var m_SendObj:Object = new Object;
m_SendObj.cApi = API_NAME;
m_SendObj.cMethodName = "POST";
var param : Map = getParms();
LoggerWrapper.instance.getGameInfo(param);
param.add("appID", SlotsConfigData.getInstance().getAppPackageName());

A small social networking website

This database is a small example of a networking site where users can watch movies, subscribe to TV shows and comment and rate any of the previous media. Users may follow or block other users, just like any other networking website nowadays.

  • Purpose:

The theme was chosen because of the success these type of webs have all over the world, and because in general their structure can easily and naturally be displayed as a graph with very different types of relationships and very connected data. So, in a nutshell,

How to create a GraphGist

You create a GraphGist by creating a GitHub Gist in AsciiDoc and enter the URL to it in the form on this page. Alternatively, you can put an AsciiDoc document in Dropbox and enter the public URL in the form.

This GraphGist shows the basics of using AsciiDoc syntax and a few additions for GraphGists. The additions are entered as comments on their own line. They are: //console for a query console; //hide, //setup and //output to configure a query; //graph and //table to visualize queries and show a result table.

Click on the Page Source button in the menu to see the source for this GraphGist.