Skip to content

Instantly share code, notes, and snippets.

View futjikato's full-sized avatar

Moritz Spindelhirn futjikato

  • TimberTom GmbH
  • Hamburg
View GitHub Profile
@futjikato
futjikato / jQuery.slidefadeToggle.js
Created May 20, 2012 15:03
Small plugin which combines a fade with a slide effect...
(function($){
function _out($this, styles, duration) {
var animationObj = {};
$.each(styles, function(i,v){
$this.data('slidefade_' + v, $this.css(v));
animationObj[v] = 0;
});
$this.animate(animationObj, duration, function(){
$this.hide();
@futjikato
futjikato / gist:2776320
Created May 23, 2012 16:50
Codesnippet for chunked fileupload via socket.io and js file api ( clientside )
try {
// Check for the various File API support.
if (window.File && window.FileReader && window.FileList && window.Blob) {
var file = $('#file').get(0).files[0];
if(file.type.search(/^audio\//) == -1) {
alert('Please upload an audio file.');
}
// change
window.location.hash = '#!newEpisode/upload';
@futjikato
futjikato / gist:2859944
Created June 2, 2012 20:59 — forked from mikeal/gist:2859941
Datejs that works on node
/**
* @version: 1.0 Alpha-1
* @author: Coolite Inc. http://www.coolite.com/
* @date: 2008-05-13
* @copyright: Copyright (c) 2006-2008, Coolite Inc. (http://www.coolite.com/). All rights reserved.
* @license: Licensed under The MIT License. See license.txt and http://www.datejs.com/license/.
* @website: http://www.datejs.com/
*/
Date.CultureInfo={name:"en-US",englishName:"English (United States)",nativeName:"English (United States)",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbreviatedDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],shortestDayNames:["Su","Mo","Tu","We","Th","Fr","Sa"],firstLetterDayNames:["S","M","T","W","T","F","S"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],abbreviatedMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],amDesignator:"AM",pmDesignator:"PM",firstDayOfWeek:0,twoDigitYearMax:2029,dateElementOrder:"mdy",formatPatterns
objc[804]: Class WebCoreTextFieldCell is implemented in both /Users/moritzspindelhirn/appjs_webgl_test/data/node_modules/appjs-darwin/libs/libcef.dylib and /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/WebCore. One of the two will be used. Which one is undefined.
@futjikato
futjikato / gist:3784000
Created September 25, 2012 19:45
LinkHasher jQuery Plugin
/**
* jQuery Hashlink plugin
* @copyright 2012 Moritz Spindelhirn
*/
;
(function($){
var pluginName = 'hashlink',
dataName = 'jq.plugin.' + pluginName,
events = ['Load', 'BeforeLoad', 'Click'],
@futjikato
futjikato / gist:4581836
Created January 20, 2013 21:17
Beispiel fü statisches binden von Eigenschaften in Java
class Counter {
protected int c = 0;
public void increase() {
c++;
}
}
class LimitedCounter {
protected int c = 0; // Dise variable "überschattet" c aus der Superklasse
@futjikato
futjikato / gist:4613044
Created January 23, 2013 20:53
Small NodeJs Script to log a ping command ( windows ) with a timestamp
var spawn = require('child_process').spawn,
fs = require('fs');
var logFile = fs.createWriteStream("pingtest.txt", {flags:"w",mode:0777});
var pingCmd = spawn("ping", ["-t", "google.de"]);
var tmp = "";
pingCmd.stdout.on("data", function(buffer){
tmp += buffer.toString();
@futjikato
futjikato / gist:5649987
Created May 25, 2013 17:37
meine git alias
[alias]
ci = commit
st = status
graph = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
0:15 Suikoden - TB, Jason
0:15 [cmp] Shining force 3 - Jason, TB
0:20 Dying Light - TB
0:25 [cmp] Destiny - Jason
0:28 [cmp] Stalker - TB
0:29 [cmp] Fallout - Jason
0:30 [cmp] FarCry 4 - TB
0:31 [cmp] Mirrors Edge - Jason
0:31 [cmp] Dead Rising - TB
0:31 [cmp] Dead Island - Jason
@futjikato
futjikato / gist:11ebd495e47828ac1466
Last active August 29, 2015 14:15
Co-Optional Podcast 12.02.2015
0:15 Puzzle Forge
0:17 Evolve Hunters mobile game
0:20 [cmp] Dying Light mobile game ( talk about mobile gaming in general )
0:22 Evolve
0:35 [cmp] Nosgoth
0:42 Darkest Dungeon
0:44 [cmp] Rogue Legacy
0:52 ------ Break
0:55 Desert Golf
0:57 Battlefield Hardline