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
// | |
// KBCollectionExtensions.h | |
// | |
// Created by Guy English on 25/02/08. | |
// Copyright 2008 Kickingbear. All rights reserved. | |
// | |
#import <Cocoa/Cocoa.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
#!/bin/sh | |
## | |
# Install autoconf, automake and libtool smoothly on Mac OS X. | |
# Newer versions of these libraries are available and may work better on OS X | |
# | |
# This script is originally from http://jsdelfino.blogspot.com.au/2012/08/autoconf-and-automake-on-mac-os-x.html | |
# | |
export build=~/devtools # or wherever you'd like to build |
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
/** | |
* Gets the string representation for a given SMCVal_t struct (as NSString). | |
*/ | |
-(BOOL) stringRepresentationFromVal:(SMCVal_t)val toString:(NSString**)abri | |
{ | |
if (val.dataSize > 0) { | |
if ((strcmp(val.dataType, DATATYPE_UINT8) == 0) || | |
(strcmp(val.dataType, DATATYPE_UINT16) == 0) || | |
(strcmp(val.dataType, DATATYPE_UINT32) == 0)) | |
*abri = [[NSString alloc] initWithFormat:@"%u", (unsigned int)[self _strtoul:(char *)val.bytes forSize:val.dataSize inBase:10]]; |
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 <GUIConstantsEx.au3> | |
HotKeySet("{BACKSPACE}","_BackSpace") | |
Global $gui = GUICreate("...",600) | |
Global $Input = GUICtrlCreateInput("", 8, 150, 584, 35) | |
GUICtrlSetLimit($Input,29) | |
GUICtrlSetFont($Input,20) | |
Global $LastInput = "" | |
GUISetState() | |
Local $Temp, $LenPart = 5 |
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
listen_for /Mac play (.*)/i do |play| | |
#Only for french speaking !!! | |
replacements = [ ["My", "Me"], ["col", "Call"], ["radiant", "Radian"] ] | |
replacements.each {|replacement| play.gsub!(replacement[0], replacement[1])} | |
#Only for french speaking !!! [End] | |
itunescheck = system("osascript -e 'if application \"iTunes\" is running then return 1'"); | |
if play==nil then | |
say "Viva la musica !", spoken: "Vivaa la mousiica !" |
NewerOlder