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
int main(int argc, char const* argv[]) { | |
[](){}(); | |
return 0; | |
} |
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
CC=go tool 6g | |
LL=go tool 6l | |
LIBS= | |
LNAME=smsdemon.6 | |
CFLAGS=-o $(LNAME) -p smsdemon | |
EXECNAME=smsdemon | |
.PHONY: all | |
all: smsdemon |
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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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
- (IBAction) buttonOneClick:(id)sender { | |
NSRect frm = [button2 frame]; | |
frm.origin.x += 150; | |
#if 1 | |
[NSAnimationContext beginGrouping]; | |
[[NSAnimationContext currentContext] setDuration: 5.0]; | |
[[NSAnimationContext currentContext] setTimingFunction: [CAMediaTimingFunction functionWithName: kCAMediaTimingFunctionEaseOut]]; | |
[button2.animator setFrame: frm]; | |
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
#include <stdio.h> | |
#include <memory> | |
#include "lipido.h" | |
lipido::WebResponse test_handler(lipido::WebContext &context) { | |
lipido::WebResponse resp; | |
resp.body = "LOL ICH MACH DICH PLATT!"; | |
return resp; | |
} |
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
howto git fuer doff | |
neues repository: | |
git init | |
datei zufuegen: | |
git add <dateiname> | |
aenderungen commiten: | |
git commit -m irgend ein commit comment |
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
#include <stdio.h> | |
int main(int argc, char **argv) | |
{ | |
//lul, wie ich auf sowas reingefallen bin: ich erwartete dass | |
//der ptr um (2*4) byte inkrementiert wird. aber nein, dies | |
//war ein moismus. denn der pointer wird um (2*4)*sizeof(float) | |
//inkrementiert. | |
//*lach* keine skriptsprachen mehr fuer mich ... und keine | |
//typed pointer mehr. nur noch void und char! |
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
// | |
// main.m | |
// iKurzweil | |
// | |
// Created by Jaroslaw Szpilewski on 28/7/11. | |
// Copyright 2011 Flux Forge. All rights reserved. | |
// | |
#import <Foundation/Foundation.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
#include <pthread.h> | |
#include <stdio.h> | |
#include <inttypes.h> | |
#include <signal.h> | |
#include <mach/mach_types.h> | |
// compile: | |
// monoco% gcc -m32 -o break break.m -lpthread -F/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Kernel.framework | |
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
if (!statusItem) { | |
if ([defs boolForKey: @"keepAlwaysLeft"] && | |
[statusBar respondsToSelector:@selector(_statusItemWithLength:withPriority:)]) { | |
NSLog(@"will keep always left!"); | |
statusItem = [statusBar _statusItemWithLength:0 withPriority:INT_MIN ]; | |
[statusItem setLength:0]; | |
} else { | |
statusItem = [statusBar statusItemWithLength: NSVariableStatusItemLength]; | |
} |