32+ results for 'osx' (0 ms)
Not the results you expected?
DataDrivenTemplateExample.java (https://github.com/michelpohle/drools.git) Java · 184 lines
OSXTimeBar.m (https://github.com/NikolausMB/workrave.git) Objective C · 276 lines
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);
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++){
176 float posx = i * scaleW;
177 float posy = j * scaleH;
182 // for linear interpolation
184 int xbase = (int)floor(posx);
185 int xhigh = (int)ceil(posx);
186 float pctx = (posx - xbase);
188 int ybase = (int)floor(posy);
191 */
193 int posPix = (((int)posy * inputW * 3) + ((int)posx * 3));
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
2 /////////////////////////////////////////////////////////////////////////////
3 // Name: wx/osx/core/dataview.h
4 // Purpose: wxDataViewCtrl native implementation header for OSX
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
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
AbstractPanel.java (https://bitbucket.org/aurecchia/railwayexpress.git) Java · 266 lines
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
nsIDOMHTMLOptionElement.h (https://github.com/asynchrony/Selenium2.git) C Header · 233 lines
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>
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>
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>
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.
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= ;'
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.
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.
build.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 24 lines
malloc.c (https://bitbucket.org/ultra_iter/qt-vtl.git) C · 5515 lines
qmime_mac.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 1308 lines
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.
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.
ogg.factor (git://github.com/abeaumont/factor.git) Unknown · 144 lines
project.pbxproj (http://galaxyengine.googlecode.com/svn/trunk/) Unknown · 479 lines
gtkspell.spec (git://github.com/repoforge/rpms.git) Unknown · 79 lines
mac_osx.make (git://github.com/ticking/self.git) Unknown · 58 lines
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.
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.
17 private static enum Platform{
18 WINDOWS, MACOS9, MACOSX, MACOSX_INTEL,LINUX, OTHER;
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;
56 public static final Platform MACOSX = Platform.MACOSX;
58 public static final Platform MACOSX_INTEL = Platform.MACOSX_INTEL;
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.
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”.
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”.
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.
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.
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.
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.