32+ results for 'osx' (0 ms)

Not the results you expected?

DataDrivenTemplateExample.java (https://github.com/michelpohle/drools.git) Java · 184 lines

90 ProductType rrc = new ProductType( "RRC" );

91 ActivityType iss = new ActivityType( "ISS" );

92 ActivityType osx = new ActivityType( "OSX" );

93 FeeType commission = new FeeType( "Commission" );

94 FeeType postage = new FeeType( "Postage" );

135 "",

136 sblc,

137 osx,

138 telex,

139 "",

OSXTimeBar.m (https://github.com/NikolausMB/workrave.git) Objective C · 276 lines

1 #import "OSXTimeBar.h"

2

3

4 @implementation OSXTimeBar

5

6 - (void) setText: (NSString*) aText

ofFileUtils.h (https://github.com/damiannz/openFrameworks.git) C Header · 278 lines

176 static bool copyFromTo(string pathSrc, string pathDst, bool bRelativeToData = true, bool overwrite = false);

177

178 //be careful with slashes here - appending a slash when moving a folder will causes mad headaches in osx

179 static bool moveFromTo(string pathSrc, string pathDst, bool bRelativeToData = true, bool overwrite = false);

180 static bool doesFileExist(string fPath, bool bRelativeToData = true);

ofDirectShowGrabber.cpp (https://gitlab.com/cocoroac/walkingartists) C++ · 304 lines

174 for(int j=0;j<height;j++){

175

176 float posx = i * scaleW;

177 float posy = j * scaleH;

178

182 // for linear interpolation

183

184 int xbase = (int)floor(posx);

185 int xhigh = (int)ceil(posx);

186 float pctx = (posx - xbase);

187

188 int ybase = (int)floor(posy);

191 */

192

193 int posPix = (((int)posy * inputW * 3) + ((int)posx * 3));

194

195 pixels.getData()[(j*width*3) + i*3 ] = viPixels[posPix ];

Trivial.php (https://bitbucket.org/blackriver/openx.git) PHP · 260 lines

232 function _reset()

233 {

234 $this->_posX = 0;

235 return $this->_posX;

244 function _next()

245 {

246 if ($this->_posX >= $this->count()) {

247 return false;

248 }

249 $x = $this->_getPointX($this->_posX);

250 $y = $this->_getPointY($this->_posX);

251 $ID = $this->_getPointID($this->_posX);

252 $data = $this->_getPointData($this->_posX);

dataview.h (https://gitlab.com/Hexexpeck/dolphin-emulator) C Header · 113 lines

1

2 /////////////////////////////////////////////////////////////////////////////

3 // Name: wx/osx/core/dataview.h

4 // Purpose: wxDataViewCtrl native implementation header for OSX

16

17 // ---------------------------------------------------------

18 // Helper functions for dataview implementation on OSX

19 // ---------------------------------------------------------

20 wxWidgetImplType* CreateDataView(wxWindowMac* wxpeer, wxWindowMac* parent, wxWindowID id,

README.md (https://github.com/maniacbug/ncore.git) Markdown · 212 lines

23 ## What do I need to use it?

24

25 NCORE runs on Linux and Mac. I use it on Ubuntu 11.04 and Mac OSX 10.6 (Snow Leopard).

26

27 NCORE runs from the command-line. It requires an understanding of build scripts and running build tools from the command-line.

tkPlatDecls.h (https://gitlab.com/orvi2014/rcs-db-ext) C Header · 253 lines

66 #endif

67 #endif /* WIN */

68 #ifdef MAC_OSX_TK /* AQUA */

69 #ifndef Tk_MacOSXSetEmbedHandler_TCL_DECLARED

70 #define Tk_MacOSXSetEmbedHandler_TCL_DECLARED

71 /* 0 */

72 EXTERN void Tk_MacOSXSetEmbedHandler(

73 Tk_MacOSXEmbedRegisterWinProc *registerWinProcPtr,

74 Tk_MacOSXEmbedGetGrafPortProc *getPortProcPtr,

75 Tk_MacOSXEmbedMakeContainerExistProc *containerExistProcPtr,

76 Tk_MacOSXEmbedGetClipProc *getClipProc,

144 #ifdef MAC_OSX_TK /* AQUA */

145 void (*tk_MacOSXSetEmbedHandler) (Tk_MacOSXEmbedRegisterWinProc *registerWinProcPtr, Tk_MacOSXEmbedGetGrafPortProc *getPortProcPtr, Tk_MacOSXEmbedMakeContainerExistProc *containerExistProcPtr, Tk_MacOSXEmbedGetClipProc *getClipProc, Tk_MacOSXEmbedGetOffsetInParentProc *getOffsetProc); /* 0 */

146 void (*tk_MacOSXTurnOffMenus) (void); /* 1 */

nsModule.cpp (https://github.com/apakhotin/mozilla-central.git) C++ · 190 lines

44 #if defined(XP_WIN)

45 #include "nsWindowsShellService.h"

46 #elif defined(XP_MACOSX)

47 #include "nsMacShellService.h"

48 #elif defined(MOZ_WIDGET_GTK2)

56 #if defined(XP_WIN) && !defined(__MINGW32__)

57 #include "nsIEProfileMigrator.h"

58 #elif defined(XP_MACOSX)

59 #include "nsSafariProfileMigrator.h"

60 #endif

75 #if defined(XP_WIN)

76 NS_GENERIC_FACTORY_CONSTRUCTOR(nsWindowsShellService)

77 #elif defined(XP_MACOSX)

78 NS_GENERIC_FACTORY_CONSTRUCTOR(nsMacShellService)

79 #elif defined(MOZ_WIDGET_GTK2)

CrtLayout12.java (https://bitbucket.org/giovanniroos/openxls.git) Java · 144 lines

39 Width of the legend in pixels.

40 Height of the legend in pixels.

41 The fAutoPosX field of Legend record.

42 The fAutoPosY field of Legend record.

43 The fAutoSize of the Frame record in the in the sequence of records that contains this CrtLayout12 record and conforms to the LD rule.

AbstractPanel.java (https://bitbucket.org/aurecchia/railwayexpress.git) Java · 266 lines

160 */

161 @Override

162 public void setLocation(final int newPosX, final int newPosY) {

163 final int deltaX = this.getX() - newPosX;

166 child.setLocation(child.getX() - deltaX, child.getY() - deltaY);

167 }

168 super.setLocation(newPosX, newPosY);

169 }

170

index.css (https://github.com/easysoft/zentaopms.git) CSS · 80 lines

22 #task .task-desc > ul > li[data-target].finish {color: #999; text-decoration: line-through;}

23 #task .task-desc > ul > li[data-target].finish .task-nav {opacity: .6; text-decoration: line-through;}

24 #task .task-desc > ul > li:before {font-family: ZentaoIcon; font-size: 14px; font-style: normal; font-weight: 400; font-variant: normal; line-height: 1; text-transform: none; speak: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: '\e836'; display: block; width: 26px; height: 20px; line-height: 20px; text-align: center; opacity: .6; color: #808080; position: absolute; top: 2px; left: 0;}

25 #task .task-desc > ul > li[data-target]:after {content: ' '; display: block; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; border: 2px solid #F1A325; transition: top .5s; pointer-events: none; border-radius: 4px;}

26 #task .task-desc > ul > li[data-target]:before {font-family: ZentaoIcon; content: '\e836'; color: #333;}

initialize_mysql.sql (https://github.com/omtetra/openmentor-grails.git) SQL · 355 lines

1 -- MySQL dump 10.13 Distrib 5.6.22, for osx10.8 (x86_64)

2 --

3 -- Host: 127.0.0.1 Database: openmentor

nsIDOMHTMLOptionElement.h (https://github.com/asynchrony/Selenium2.git) C Header · 233 lines

1 /*

2 * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/rel-2.0-xr-osx64-bld/build/dom/interfaces/html/nsIDOMHTMLOptionElement.idl

3 */

4

integer_sort.hpp (https://gitlab.com/cdeclare/intcrypt) C++ Header · 185 lines

45 <a href="../../doc/graph/windows_integer_sort.htm"> windows_integer_sort</a>

46 \n

47 <a href="../../doc/graph/osx_integer_sort.htm"> osx_integer_sort</a>

48

49 \param[in] first Iterator pointer to first element.

94 <a href="../../doc/graph/windows_integer_sort.htm"> windows_integer_sort</a>

95 \n

96 <a href="../../doc/graph/osx_integer_sort.htm"> osx_integer_sort</a>

97

98 \param[in] first Iterator pointer to first element.

144 Some performance plots of runtime vs. n and log(range) are provided:\n

145 * <a href="../../doc/graph/windows_integer_sort.htm"> windows_integer_sort</a>\n

146 * <a href="../../doc/graph/osx_integer_sort.htm"> osx_integer_sort</a>

147

148 \param[in] first Iterator pointer to first element.

config.guess (https://bitbucket.org/volca/open-ps2-loader/) Shell · 1503 lines ✨ Summary

This shell script is used to guess the operating system of a computer based on various methods such as uname, hostinfo, and other commands. It tries different methods until one succeeds in guessing the operating system. If none of the methods work, it outputs an error message asking the user to send information about their system to config-patches@gnu.org.

130 esac ; set_cc_for_build= ;'

131

132 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.

133 # (ghazi@noc.rutgers.edu 1994-08-24)

134 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then

308 echo hppa1.1-hitachi-hiuxmpp

309 exit ;;

310 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)

311 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.

312 if test "`(/bin/universe) 2>/dev/null`" = att ; then

316 fi

317 exit ;;

318 NILE*:*:*:dcosx)

319 echo pyramid-pyramid-svr4

320 exit ;;

test_io.py (git://github.com/IronLanguages/main.git) Python · 2782 lines ✨ Summary

This is a unit testing script for the io module in Python. It defines several test classes that inherit from the unittest.TestCase class and contain methods that define test cases. The script runs these tests using the unittest module, which provides a simple way to write and run tests.

The script first imports the io module and the unittest module. It then defines several test classes that inherit from the unittest.TestCase class and contain methods that define test cases. These test classes are used to test different aspects of the io module, such as reading and writing files, handling signals, and more.

The script then runs these tests using the unittest module, which provides a simple way to write and run tests. The output of the script will show the results of each test case, including any failures or errors that occurred during testing.

379

380 def test_large_file_ops(self):

381 # On Windows and Mac OSX this test comsumes large resources; It takes

382 # a long time to build the >2GB file and takes >2GB of disk space

383 # therefore the resource must be enabled to run this test.

build.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 24 lines

1 <?xml version="1.0"?>

2 <project name="MacOSX"

3 default="build">

4 <description>

5 This is an ant build.xml file for building the MacOSX plugin for jEdit.

6 </description>

7

19

20 <selector id="packageFiles">

21 <filename name="docs/MacOSX.html" />

22 </selector>

23 </project>

malloc.c (https://bitbucket.org/ultra_iter/qt-vtl.git) C · 5515 lines

508

509 #if defined(DARWIN) || defined(_DARWIN)

510 /* Mac OSX docs advise not to use sbrk; it seems better to use mmap */

511 #ifndef HAVE_MORECORE

512 #define HAVE_MORECORE 0

qmime_mac.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 1308 lines

126 \class QMacPasteboardMime

127 \brief The QMacPasteboardMime class converts between a MIME type and a

128 \l{http://developer.apple.com/macosx/uniformtypeidentifiers.html}{Uniform

129 Type Identifier (UTI)} format.

130 \since 4.2

PropertyListWriter.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 443 lines ✨ Summary

This Java code generates an XML file that represents a macOS application’s bundle metadata, including its name, version, and various settings such as classpath, services, and properties. The output is a standard format required by Apple for distributing applications on the Mac App Store. It creates an XML document with key-value pairs representing the bundle’s configuration.

71 * Write out a Java application bundle property list file. For descriptions of

72 * the property list keys, see <a

73 * href="http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/PListKeys.html"

74 * >Apple docs</a>.

75 */

ogg.factor (git://github.com/abeaumont/factor.git) Unknown · 144 lines

17 "ogg" {

18 { [ os windows? ] [ "ogg.dll" ] }

19 { [ os macosx? ] [ "libogg.0.dylib" ] }

20 { [ os unix? ] [ "libogg.so" ] }

21 } cond cdecl add-library

project.pbxproj (http://galaxyengine.googlecode.com/svn/trunk/) Unknown · 479 lines

435 ONLY_ACTIVE_ARCH = YES;

436 PREBINDING = NO;

437 SDKROOT = macosx10.5;

438 };

439 name = Debug;

448 GCC_WARN_UNUSED_VARIABLE = YES;

449 PREBINDING = NO;

450 SDKROOT = macosx10.5;

451 };

452 name = Release;

gtkspell.spec (git://github.com/repoforge/rpms.git) Unknown · 79 lines

21

22 %description

23 GtkSpell provides MSWord/MacOSX-style highlighting of misspelled words

24 in a GtkTextView widget. Right-clicking a misspelled word pops up a

25 menu of suggested replacements.

mac_osx.make (git://github.com/ticking/self.git) Unknown · 58 lines

4 # See the LICENSE file for license information.

5

6 # Makefile template for compiling on MAC OSX

7

8 TARGET_OS_VERSION = MACOSX_VERSION

9 # another name for the same thing

10 VM_SUBDIR = mac_osx

11 TARGET_ARCH = PPC_ARCH

12 HOST_ARCH = $(TARGET_ARCH)

CCSystem.java (http://creativecomputing.googlecode.com/svn/trunk/) Java · 511 lines ✨ Summary

This Java code provides a set of utility methods for printing and managing memory, objects, and other system information. It includes functions for printing object fields, memory usage, and garbage collection statistics, as well as logging and debugging capabilities. The output is designed to provide detailed information about the program’s state and behavior.

16

17 private static enum Platform{

18 WINDOWS, MACOS9, MACOSX, MACOSX_INTEL,LINUX, OTHER;

19

20 /**

33 // mac

34 if (platformName.equals("Mac OS X")){

35 if(System.getProperty("os.arch").equals("i386"))return MACOSX_INTEL;

36 return MACOSX;

54 public static final Platform WINDOWS = Platform.WINDOWS;

55

56 public static final Platform MACOSX = Platform.MACOSX;

57

58 public static final Platform MACOSX_INTEL = Platform.MACOSX_INTEL;

65

66 /**

67 * Current platform in use, one of the PConstants WINDOWS, MACOSX, MACOS9,

68 * LINUX or OTHER.

69 */

SRPGData.java (http://loon-simple.googlecode.com/svn/trunk/) Java · 454 lines ✨ Summary

This Java class manages a collection of status data for actors in a role-playing game (RPG). It provides methods to load, save, and manipulate the status data, including setting default statuses, copying existing statuses, and retrieving specific statuses by index. The class also keeps track of the number of actors and their corresponding status data.

76 bytes.writeInt(i);

77 bytes.writeInt(actor.getDirection());

78 bytes.writeInt(actor.getPosX());

79 bytes.writeInt(actor.getPosY());

80 }

103 int id = bytes.readInt();

104 int d = bytes.readInt();

105 int posX = bytes.readInt();

106 int posY = bytes.readInt();

107 positions[i].number = id;

108 positions[i].setPos(posX, posY);

109 positions[i].vector = d;

110 }

config.sub (https://swig.svn.sourceforge.net/svnroot/swig) Shell · 1617 lines ✨ Summary

This shell script determines the operating system and CPU type of a given machine, and outputs them as a string. It uses a combination of environment variables, regular expressions, and conditional statements to make this determination. The output is a string that identifies the OS and CPU type, such as “sunos riscix” or “hpux mpeix”.

521 dpx20 | dpx20-*)

522 basic_machine=rs6000-bull

523 os=-bosx

524 ;;

525 dpx2* | dpx2*-bull)

b07facde0a8000101cbdd28cb20c0c30 (https://code.google.com/p/minecraft-smp-mocreatures/) Unknown · 450 lines

142 if(entityitem1.item.itemID != Item.seeds.shiftedIndex)

143 continue;

144 double d2 = entityitem1.getDistanceSq(entity.posX, entity.posY, entity.posZ);

145 if((d < 0.0D || d2 < d * d) && (d1 == -1.0D || d2 < d1))

146 {

187 motionY += 0.15D;

188 }

189 if(posX < entity.posX)

190 {

191 double d = entity.posX - posX;

194 } else

195 {

196 double d1 = posX - entity.posX;

197 if(d1 > 0.5D)

198 motionX -= 0.05D;

calendar-uncompressed.js (https://bitbucket.org/kraymitchell/fcd.git) JavaScript · 1806 lines

468 return false;

469 }

470 var posX;

471 var posY;

472 if (Calendar.is_ie) {

473 posY = window.event.clientY + document.body.scrollTop;

474 posX = window.event.clientX + document.body.scrollLeft;

475 } else {

476 posX = ev.pageX;

479 cal.hideShowCovered();

480 var st = cal.element.style;

481 st.left = (posX - cal.xOffs) + "px";

482 st.top = (posY - cal.yOffs) + "px";

483 return Calendar.stopEvent(ev);

Makefile.in (git://github.com/gmarceau/PLT.git) Autoconf · 848 lines ✨ Summary

This Autoconf code defines a build system for a garbage collector. It generates various object files and libraries based on platform-specific dependencies, such as threads and operating systems. The @LTO suffix indicates that these objects are generated with Link Time Optimization (LTO) enabled. The code also includes various source files for the garbage collector’s core functionality, such as memory management and data structures.

378 include/private/openbsd_stop_world.h $(CORD_SRCS)

379

380 DOC_FILES= README.QUICK doc/README.Mac doc/README.MacOSX doc/README.O2 \

381 doc/README.amiga doc/README.cords doc/debugging.html \

382 doc/porting.html doc/overview.html \

matroxfb_Ti3026.c (http://omnia2droid.googlecode.com/svn/trunk/) C · 746 lines ✨ Summary

This C code initializes and configures a Matrox Millennium graphics card, specifically the Ti3026 model. It sets up the card’s registers, initializes the RAMDAC, and configures the output settings for the primary display. The code also handles various device flags and preserves certain VGA I/O settings to ensure compatibility with older systems.

104 #define TVP3026_X_DATAREG 0x0A

105 #define TVP3026_CURRAMDATA 0x0B

106 #define TVP3026_CURPOSXL 0x0C

107 #define TVP3026_CURPOSXH 0x0D