Skip to content

Instantly share code, notes, and snippets.

View binarybucks's full-sized avatar

Alexander Klautke binarybucks

View GitHub Profile
@binarybucks
binarybucks / lotus-notes.desktop
Created December 5, 2011 14:30
Fixed .desktop file for IBM Notes & Gnome-Shell (place in /usr/share/applications)
[Desktop Entry]
Encoding=UTF-8
Name=Lotus Notes Fixed
Type=Application
Exec=/opt/ibm/lotus/notes/framework/../notes %F
Icon=/opt/ibm/lotus/notes/framework/shared/eclipse/features/com.ibm.notes.links.feature_8.5.2.20100811-1131/icons/notes.ico
Terminal=false
Categories=Application;Office;
@binarybucks
binarybucks / A9.c
Created January 27, 2012 11:34 — forked from lumaxis/A9.c
Mittelwert beliebig vieler Zahlen (Returning Ptr)
#include "stdio.h"
#include "stdlib.h"
/*Beliebige Anzahl an Zahlen einlesen:*/
double* inputNumbers(int *size){
int i;
/* Abfrage nach Anzahl der Zahlen */
printf("Anzahl der zu speichernden Zahlen:\n");
scanf("%d", size);
@binarybucks
binarybucks / A9.c
Created January 27, 2012 11:40 — forked from lumaxis/A9.c
Mittelwert beliebig vieler Zahlen (double Ptr)
#include "stdio.h"
#include "stdlib.h"
/*Beliebige Anzahl an Zahlen einlesen:*/
void inputNumbers(int *size, double **doublePtr){
int i;
/* Abfrage nach Anzahl der Zahlen */
printf("Anzahl der zu speichernden Zahlen:\n");
scanf("%d", size);
@binarybucks
binarybucks / jobinterviewquestions.txt
Created January 31, 2012 13:35 — forked from hdznrrd/jobinterviewquestions.txt
Job Interview Questions you Should Ask
Software development
- Which platforms (Linux, Windows, Mac, Embedded) will I develop for?
- What programming languages are you using for which kind of projects / applications?
- What Development Environment are you using?
- Are you using any coding style guidelines? If yes, can I take a look at the document?
- Are you actively supporting / allowing time for keeping your code base maintainable and up to date?
- How do you handle documentation? Is there time reserved specifically for documenting projects?
@binarybucks
binarybucks / gist:1965239
Created March 3, 2012 09:32
LaTeX DH Bibstyle
\usepackage[bibstyle=authoryear, citestyle=authoryear, autocite=footnote, dashed=false, firstinits=true]{biblatex}
% Round parentheses around the year in the footcite
% Source: tex.stackexchange.com/a/30822/10434
\renewbibmacro*{cite:labelyear+extrayear}{
\iffieldundef{labelyear}
{}
{\printtext[bibhyperref]{%
\printtext[parens]{%
\printfield{labelyear}%
@binarybucks
binarybucks / gist:2660378
Created May 11, 2012 15:16
Chocolat crash report
Process: Chocolat [42561]
Path: /Applications/Chocolat.app/Contents/MacOS/Chocolat
Identifier: com.chocolatapp.Chocolat
Version: 0.13 (0.13)
Code Type: X86-64 (Native)
Parent Process: launchd [259]
Date/Time: 2012-05-15 19:08:50.966 +0200
OS Version: Mac OS X 10.7.4 (11E53)
Report Version: 9
@binarybucks
binarybucks / gist:3296730
Created August 8, 2012 17:15
Multi-Store NSPersistentStoreCoordinator
- (NSManagedObjectModel *)managedObjectModel
{
if (__managedObjectModel != nil)
{
return __managedObjectModel;
}
NSURL *modelURL = [[NSBundle mainBundle] URLForResource:@"SupersetModel" withExtension:@"mom"];
__managedObjectModel = [[NSManagedObjectModel alloc] initWithContentsOfURL:modelURL];
return __managedObjectModel;
}
@binarybucks
binarybucks / gist:3707944
Created September 12, 2012 16:35
Prosody not starting
alexander@Heisenberg ~/Downloads/luaexpat-1.2.0 > prosodyctl
lua: /usr/local/bin/prosodyctl:122: module 'core.loggingmanager' not found:
no field package.preload['core.loggingmanager']
no file '/usr/share/lua/5.1/core/loggingmanager.lua'
no file '/usr/share/lua/5.1/core/loggingmanager/init.lua'
no file '/Users/alexander/.luarocks/share/lua/5.1/core/loggingmanager.lua'
no file '/Users/alexander/.luarocks/share/lua/5.1/core/loggingmanager/init.lua'
no file '/usr/lib/prosody/core/loggingmanager.lua'
no file '/usr/share/lua/5.1/core/loggingmanager.lua'
no file '/usr/share/lua/5.1/core/loggingmanager/init.lua'
Process: Osfoora [11072]
Path: /Applications/Osfoora.app/Contents/MacOS/Osfoora
Identifier: osfoora.osfooramac
Version: 1.3 (06)
App Item ID: 502401238
App External ID: 11808934
Code Type: X86-64 (Native)
Parent Process: launchd [144]
User ID: 501
define Timer {
tag : '',
date: undefined,
constructor : function(tag, date){
this.tag = tag;
this.date = date;
}
}
rule rulename {