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
#!/usr/bin/ruby | |
require 'appscript' | |
output = String.new | |
$stdin.each_line do |line| | |
output << line.rstrip! + $/ | |
end | |
document = Appscript.app('Xcode').text_documents.first | |
document.contents.set output |
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
#!/bin/bash | |
# esed 's/foo/bar/g' files.... | |
script=$1 | |
shift 1 | |
CHANGED=1 # diff returns 1 for differences. (0 for no difference, 2 for errors.) | |
for file in $* | |
do | |
sed -e ${script} ${file} > ${file}~ | |
diff ${file} ${file}~ > /dev/null |
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 <stdio.h> | |
int main( void ) { | |
double f = 5/2; | |
printf("%f\n", f); | |
} |
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 <boost/shared_ptr.hpp> | |
template <class T> | |
class Engine | |
{ | |
public: | |
virtual T Execute() = 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
#include <gtest/gtest.h> | |
#include <boost/multi_array.hpp> | |
TEST(MultiArrayTest, Fill) { | |
boost::multi_array<int, 2> subject(boost::extents[20][10]); | |
for (auto x : subject) { | |
for (auto &y : x) { | |
y = 10; | |
} | |
} |
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 <gtest/gtest.h> | |
#include <valarray> | |
TEST(ValarrayTest, InitializeWithRawPointer) { | |
int *p = (int*)malloc(sizeof(int)*10); | |
p[0] = 4; | |
ASSERT_EQ(4, p[0]); | |
std::valarray<int> subject(p, 10); | |
ASSERT_EQ(4, subject[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
#include <gtest/gtest.h> | |
enum { | |
CONSTRUCTOR, | |
COPY_CONSTRUCTOR, | |
}; | |
class Bar | |
{ | |
public: |
This file has been truncated, but you can view the full file.
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 libsrcs/angelscript/angelSVN/sdk/angelscript/projects/xcode/angelscript.xcodeproj/project.pbxproj libsrcs/angelscript/angelSVN/sdk/angelscript/projects/xcode/angelscript.xcodeproj/project.pbxproj | |
index 42aed37..b9daa61 100644 | |
--- libsrcs/angelscript/angelSVN/sdk/angelscript/projects/xcode/angelscript.xcodeproj/project.pbxproj | |
+++ libsrcs/angelscript/angelSVN/sdk/angelscript/projects/xcode/angelscript.xcodeproj/project.pbxproj | |
@@ -1,512 +1,827 @@ | |
-// !$*UTF8*$! | |
-{ | |
- archiveVersion = 1; | |
- classes = { | |
- }; |
This file has been truncated, but you can view the full file.
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 libsrcs/angelscript/angelSVN/sdk/angelscript/projects/xcode/angelscript.xcodeproj/project.pbxproj libsrcs/angelscript/angelSVN/sdk/angelscript/projects/xcode/angelscript.xcodeproj/project.pbxproj | |
index 42aed37..b9daa61 100644 | |
--- libsrcs/angelscript/angelSVN/sdk/angelscript/projects/xcode/angelscript.xcodeproj/project.pbxproj | |
+++ libsrcs/angelscript/angelSVN/sdk/angelscript/projects/xcode/angelscript.xcodeproj/project.pbxproj | |
@@ -1,512 +1,827 @@ | |
-// !$*UTF8*$! | |
-{ | |
- archiveVersion = 1; | |
- classes = { | |
- }; |
This file has been truncated, but you can view the full file.
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 libsrcs/angelscript/angelSVN/sdk/angelscript/projects/xcode/angelscript.xcodeproj/project.pbxproj libsrcs/angelscript/angelSVN/sdk/angelscript/projects/xcode/angelscript.xcodeproj/project.pbxproj | |
index 42aed37..b9daa61 100644 | |
--- libsrcs/angelscript/angelSVN/sdk/angelscript/projects/xcode/angelscript.xcodeproj/project.pbxproj | |
+++ libsrcs/angelscript/angelSVN/sdk/angelscript/projects/xcode/angelscript.xcodeproj/project.pbxproj | |
@@ -1,512 +1,827 @@ | |
-// !$*UTF8*$! | |
-{ | |
- archiveVersion = 1; | |
- classes = { | |
- }; |
OlderNewer