This file contains hidden or 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
on replace_chars(this_text, search_string, replacement_string) | |
set AppleScript's text item delimiters to the search_string | |
set the item_list to every text item of this_text | |
set AppleScript's text item delimiters to the replacement_string | |
set this_text to the item_list as string | |
set AppleScript's text item delimiters to "" | |
return this_text | |
end replace_chars | |
set myTrack to "" |
This file contains hidden or 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
on parse_input_string(theString) | |
set AppleScript's text item delimiters to " " | |
set theFromAmount to text item 1 of theString as text | |
if length of text items of theString is greater than 1 then | |
set theFromCurrency to text item 2 of theString as text | |
set theToCurrency to text item -1 of theString as text | |
set currenciesGiven to true | |
else | |
set theFromCurrency to "USD" | |
set theToCurrency to "EUR" |
This file contains hidden or 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
on safari_is_ready(docNum, interval) | |
repeat | |
tell application "Safari" | |
try | |
do JavaScript "document.readyState" in document docNum | |
set readyState to result | |
set finishedLoading to (source of document docNum contains "</html>") | |
if finishedLoading and readyState is "Complete" then exit repeat | |
end try | |
end tell |
This file contains hidden or 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
# Script to process background data (.ibs files) generated by the Optotrak 3020 system | |
# Carmine Paolino <[email protected]> | |
require 'csv' | |
num_pattern = /[+-]?\d*\.?\d+/ | |
allowed_frenquencies = [ 1, 2.5, 4 ] | |
trials = [] | |
class ListableAccessors |
This file contains hidden or 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
diff --git a/src/unexmacosx.c b/src/unexmacosx.c | |
index df4c0da..e5254de 100644 | |
--- a/src/unexmacosx.c | |
+++ b/src/unexmacosx.c | |
@@ -822,6 +822,7 @@ copy_data_segment (struct load_command *lc) | |
} | |
else if (strncmp (sectp->sectname, "__la_symbol_ptr", 16) == 0 | |
|| strncmp (sectp->sectname, "__nl_symbol_ptr", 16) == 0 | |
+ || strncmp (sectp->sectname, "__got", 16) == 0 | |
|| strncmp (sectp->sectname, "__la_sym_ptr2", 16) == 0 |
This file contains hidden or 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
diff --git a/src/nsterm.m b/src/nsterm.m | |
index 025486d..bb362a6 100644 | |
--- a/src/nsterm.m | |
+++ b/src/nsterm.m | |
@@ -1414,7 +1414,7 @@ ns_get_color (const char *name, NSColor **col) | |
if (r >= 0.0) | |
{ | |
- *col = [NSColor colorWithCalibratedRed: r green: g blue: b alpha: 1.0]; | |
+ *col = [NSColor colorWithDeviceRed: r green: g blue: b alpha: 1.0]; |
This file contains hidden or 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
Index: src/graph_partitioning/internal-timer.h | |
=================================================================== | |
--- src/graph_partitioning/internal-timer.h (revision 187) | |
+++ src/graph_partitioning/internal-timer.h (working copy) | |
@@ -30,7 +30,7 @@ | |
static struct timespec tic_ts; | |
#define USE_CLOCK_GETTIME | |
#else | |
-#warn "Falling back to gettimeofday ()." | |
+#warning "Falling back to gettimeofday ()." |
This file contains hidden or 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
hlink.o | |
hlink |
This file contains hidden or 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
(* | |
Opens the generated source of the current Safari page in TextMate. | |
To make it a System Service (with keyboard shorcuts!), visit: | |
http://iflipbits.com/post/880085979/view-source-in-textmate-for-safari | |
*) | |
tell application "Safari" | |
if not (exists front document) then | |
display alert "An error as occurred" message "You need to open a web site first!" as warning |
This file contains hidden or 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 <iostream> | |
#include <string> | |
#include <map> | |
using namespace std; | |
int main (int argc, char const *argv[]) | |
{ | |
string array[] = { "zero", "one", "one", "zero", "two", "three", "zero" }; |