This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UISwipableTableCell.m | |
// GameKings | |
// | |
// Created by Jankees van Woezik on 2-8-10. | |
// Copyright 2010 Base 42. All rights reserved. | |
// | |
#import "UISwipableTableViewCell.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('init', 'portfolio_init'); | |
/** | |
* Initialize simple-portfolio plugin | |
*/ | |
function portfolio_init() { | |
$custom_slug = get_option('slug') != '' ? get_option('slug') : 'portfolio'; | |
$args = array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function drawPortfolioAsset($media_item) { | |
switch ($media_item['type']): | |
case 'image': | |
echo wp_get_attachment_image($media_item['value'], array(640,10000)); | |
break; | |
case 'youtube': | |
echo "<p>"; | |
echo "<object width=\"640\" height=\"504\">"; | |
echo " <param name=\"movie\" value=\"http://www.youtube.com/" . $media_item['value'] . "&hl=en_US&fs=1&rel=0&hd=1;color1=0x3a3a3a&color2=0x999999\"/>"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Portfolio</h1> | |
<p> | |
In my portfolio you can view a selection of projects I worked on the last few years as a freelance developer. | |
More work can be shown upon request. If you have any questions please feel free to <a href="http://blog.base42.nl/contact">contact</a> me. | |
</p> | |
<div class="line"></div> | |
<?php | |
$pagenumber = get_query_var('paged') ? get_query_var('paged') : 1; | |
if($pagenumber == 1){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uploadtotemp() { | |
if [ $# -lt 1 ] | |
then | |
echo -en "\033[0;31mError: Wrong number of arguments.\033[0m Expected one or two, got zero. \n\n Example usage:\n uploadtmp folder/ new-folder-name/ \n" | |
else | |
if [ $# -lt 2 ]; then | |
NEW_FILE_NAME=`date "+%Y%m%d%H%M%S"`-$1 | |
else | |
NEW_FILE_NAME=$2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package nl.base42.view.util { | |
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 | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ImageLoader.m | |
// liteapp | |
// | |
// Created by Jankees van Woezik on 31-8-10. | |
// Copyright 2010 Base 42. All rights reserved. | |
// | |
#import "ImageLoader.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Add this as an ivar | |
NSOperationQueue *imageLoadingQueue; | |
//Add this to your dealloc method | |
[imageLoadingQueue release]; | |
//If you're creating the nib programatically use this | |
- (id)initWithNibName:(NSString *)nibName bundle:(NSBundle *)nibBundle { | |
if (self = [super initWithNibName:nibName bundle:nibBundle]) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package { | |
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 | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package nl.musis.view.components.menu.icons { | |
import fla.menu.icons.CalendarIconAsset; | |
import nl.musis.model.utils.DateUtils; | |
import nl.musis.view.components.text.styles.HeaderText; | |
import flash.display.BlendMode; | |
/** | |
* @author Jankees van Woezik | Base42.nl |