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
// | |
// Created by Cédric Luthi on 2011-05-03 | |
// Copyright 2011-2012 Cédric Luthi. All rights reserved. | |
// | |
#import <AppKit/AppKit.h> | |
@interface NSRunningApplication (DockIcon) | |
- (BOOL) setDockIconHidden_xcd:(BOOL)dockIconHidden; |
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 <setjmp.h> | |
struct Exception { | |
jmp_buf jb; | |
int code; | |
}; | |
/* Definitely not thread-safe... But we don't care :-) */ | |
struct Exception *cur_ex_ptr = NULL; |
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
#!/bin/bash | |
# | |
# Copyright (c) 2011-2014 Laurent Etiemble (laurent dot etiemble at gmail dot com) | |
# | |
# This script is provided as-is without any warranties. Use it at your own risks. | |
# | |
# Get parameter | |
APP_BUNDLE=$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
#include <stdio.h> | |
#define NEXT goto **ip++ | |
int main() | |
{ | |
int fact = 6, fact_b0 = 16; | |
void* program[] = { | |
&&push, (void*)5, &&call, (void*)fact, &&printi, &&end, | |
&&beq0, (void*)fact_b0, &&dup, &&push, (void*)1, &&sub, &&call, (void*)fact, &&mult, &&ret, | |
&&pop, &&push, (void*)1, &&ret }; |