Skip to content

Instantly share code, notes, and snippets.

View jankeesvw's full-sized avatar

Jankees van Woezik jankeesvw

View GitHub Profile
###
* NavigationState
###
window.NavigationState = class NavigationState
constructor: (path) ->
@_setPath(path)
# take care of the trailing and ending slashes, and replaces spaces with dashes
_setPath: (path) ->
###
PorfolioItem
###
window.PorfolioItem = class PorfolioItem
constructor: (domElement) ->
@animation = {}
@animation.value = 0
@animation.iteration = 0
###
PorfolioItem
###
window.PorfolioItem = class PorfolioItem
constructor: (domElement) ->
@element = ($ domElement)
# find the images in the dom element
function showNextImage() {
var images = $(".widget-holder.slideshow img");
for (var i = 0; i < images.length; i++) {
var obj = $(images[i]);
if (obj.hasClass('current')) {
// we found the current item!
break;
}
@jankeesvw
jankeesvw / _resonsive.scss
Created June 13, 2012 06:42
Responsive CSS code for twelvetwenty.nl
@media only screen and (max-width: 650px) {
article.app-detail {
.form {
position: relative;
padding-top: 0 !important;
}
.half.centered, .half.left, .half.right {
[INFO] WLWatchListViewController.m(132) > create fetchcontroller
[INFO] WLWatchListViewController.m(57) > No errors and succes is 1
[INFO] WLWatchListViewController.m(61) > fetched objects: (
"<Movie: 0x6d504b0> (entity: Movie; id: 0x6d500a0 <x-coredata://57216C1F-8B3C-4863-AACF-03953337AFE9/Movie/p5> ; data: <fault>)",
"<Movie: 0x6d50030> (entity: Movie; id: 0x6d4dd40 <x-coredata://57216C1F-8B3C-4863-AACF-03953337AFE9/Movie/p4> ; data: <fault>)",
"<Movie: 0x6d4fe80> (entity: Movie; id: 0x6d50160 <x-coredata://57216C1F-8B3C-4863-AACF-03953337AFE9/Movie/p3> ; data: <fault>)",
"<Movie: 0x6d50240> (entity: Movie; id: 0x6d4ffe0 <x-coredata://57216C1F-8B3C-4863-AACF-03953337AFE9/Movie/p7> ; data: <fault>)",
//
// WLWatchListViewController.m
// WatchList
//
// Created by Jankees Woezik on 04-06-12.
// Copyright (c) 2012 Twelve Twenty. All rights reserved.
//
#import "WLWatchListViewController.h"
#import "WLModel.h"
@jankeesvw
jankeesvw / gist:2469269
Created April 23, 2012 06:52
Launchmeister
const int PIN_BUTTON_1 = PIN_B0;
const int PIN_BUTTON_2 = PIN_B1;
const int PIN_BUTTON_3 = PIN_B2;
const int PIN_BUTTON_4 = PIN_B3;
const int PIN_SWITCH_A = PIN_B7;
const int PIN_SWITCH_B = PIN_D0;
const int PIN_LED = PIN_D1;
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
# ### System specific aliases ###
@jankeesvw
jankeesvw / code.sh
Created March 18, 2012 08:56
function and paramaters bash
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