Skip to content

Instantly share code, notes, and snippets.

View jankeesvw's full-sized avatar

Jankees van Woezik jankeesvw

View GitHub Profile
package nl.application.view.components.battlepage {
import nl.application.model.vo.BattleData;
import nl.debit.flash.swf.SWF;
import nl.debit.flash.swf.events.SWFEvent;
import nl.debit.flash.video.FLV;
import nl.debit.flash.video.events.VideoEvent;
import flash.display.Loader;
import flash.display.LoaderInfo;
import flash.display.MovieClip;
package nl.application.view.components.ui {
import flash.display.DisplayObject;
import flash.events.Event;
import flash.events.KeyboardEvent;
import flash.system.System;
import flash.ui.Keyboard;
/**
* @author Jankees van Woezik | Base42.nl
*/
private function getWinner():String {
var to:String = String(_battleData.strategy_to[_currentVideoNumber]).charAt(0);
var from:String = String(_battleData.strategy_from[_currentVideoNumber]).charAt(0);
var result:String = "";
if(from == "r") from = "l";
if(from == "l") from = "r";
if(_currentVideoNumber + 1 < 4) {
<?php
class NewsImage extends AppModel {
var $name = 'NewsImage';
var $belongsTo = array(
'News' => array(
'className' => 'News',
'foreignKey' => 'news_id',
'conditions' => '',
'fields' => '',
<?php
class PhotoAlbumImage extends AppModel {
var $name = 'PhotoAlbumImage';
//The Associations below have been created with all possible keys, those that are not needed can be removed
var $belongsTo = array(
'PhotoAlbum' => array(
'className' => 'PhotoAlbum',
'foreignKey' => 'photo_album_id',
'conditions' => '',
<?php
class PhotoAlbum extends AppModel {
var $name = 'PhotoAlbum';
var $displayField = 'title';
//The Associations below have been created with all possible keys, those that are not needed can be removed
var $hasMany = array(
'PhotoAlbumImage' => array(
'className' => 'PhotoAlbumImage',
'foreignKey' => 'photo_album_id',
package nl.gemeentedeurne.model.utils {
import inlet42.util.Random;
import com.google.maps.LatLng;
/**
* @author Jankees van Woezik / Base42.nl
*/
public class PointParser {
private static const SHAPE_DELIMITER : String = "||";
<?xml version="1.0" encoding="UTF-8"?>
<project name="Create version file" default="Create version.as file" basedir="../../">
<target name="Create version.as file">
<tstamp>
<format property="TODAY" pattern="dd/MM/yyyy - HH:mm" locale="en,UK" />
</tstamp>
<echo file="flash/source/Version.as">package {
import flash.display.Sprite;
import flash.ui.ContextMenu;
import flash.ui.ContextMenuItem;
//
// UISwipableTableCell.m
// GameKings
//
// Created by Jankees van Woezik on 2-8-10.
// Copyright 2010 Base 42. All rights reserved.
//
#import "UISwipableTableViewCell.h"
<?php
add_action('init', 'portfolio_init');
/**
* Initialize simple-portfolio plugin
*/
function portfolio_init() {
$custom_slug = get_option('slug') != '' ? get_option('slug') : 'portfolio';
$args = array(