Skip to content

Instantly share code, notes, and snippets.

View jankeesvw's full-sized avatar

Jankees van Woezik jankeesvw

View GitHub Profile
# Meer vetalingen via https://github.com/plataformatec/devise/wiki/I18n
# Voeg 'config.i18n.default_locale = :nl' toe in je 'application.rb' en herstart je server
nl:
devise:
confirmations:
confirmed: "Je account is bevestigd, je bent nu ingelogd."
send_instructions: "Je zult een e-mail met instructies ontvangen over hoe je jouw account moet bevestigen over een paar minuten."
send_paranoid_instructions: "Als je e-mail bestaat in onze database, zul je een e-mail met instructies ontvangen over hoe je jouw account moet bevestigen over een paar minuten."
failure:
@jankeesvw
jankeesvw / CSS-only-sliding-labels.markdown
Created May 12, 2014 07:31
A Pen by Jankees van Woezik.

CSS-only sliding labels

With this css-only solution you only show the 's when necessary, the error state always shows the label.

A Pen by Jankees van Woezik on CodePen.

License.

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;
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) {
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
*/
<?php
class NewsImage extends AppModel {
var $name = 'NewsImage';
var $belongsTo = array(
'News' => array(
'className' => 'News',
'foreignKey' => 'news_id',
'conditions' => '',
'fields' => '',
<?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',
<?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' => '',
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;