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
Index: error/Hoptoad.php | |
=================================================================== | |
--- error/Hoptoad.php (revision 2525) | |
+++ error/Hoptoad.php (working copy) | |
@@ -245,6 +245,8 @@ | |
$node = $parent->addChild($key); | |
foreach ($source as $key => $val) { | |
+ if (is_array($val)) | |
+ $val = str_replace("\n", ' ', print_r($val, true)); |
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
Index: include/error/Hoptoad.php | |
=================================================================== | |
--- include/error/Hoptoad.php (revision 2530) | |
+++ include/error/Hoptoad.php (working copy) | |
@@ -268,8 +268,8 @@ | |
if (isset($entry['class']) && $entry['class'] == 'Services_Hoptoad') continue; | |
$line_node = $backtrace->addChild('line'); | |
- $line_node->addAttribute('file', $entry['file']); | |
- $line_node->addAttribute('number', $entry['line']); |
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
@@ -248,5 +248,5 @@ | |
if (is_array($val)) | |
$val = str_replace("\n", ' ', print_r($val, true)); | |
- $var_node = $node->addChild('var', $val); | |
+ $var_node = $node->addChild('var', htmlspecialchars($val)); | |
$var_node->addAttribute('key', $key); | |
} |
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
Index: ProgramGLSL.cpp | |
=================================================================== | |
--- src/SiftGPU/ProgramGLSL.cpp (revision 400) | |
+++ src/SiftGPU/ProgramGLSL.cpp (working copy) | |
@@ -458,7 +458,7 @@ | |
{ | |
out<<"coord = gl_TexCoord[0].xy + vec2(float("<<i-nhpixel<<"),0);\n"; | |
out<<"pc=texture2DRect(tex, coord);\n"; | |
- if(GlobalUtil::_PreciseBorder) out<<"if(coord.x < 0) pc = pc.rrbb;\n"; | |
+ if(GlobalUtil::_PreciseBorder) out<<"if(coord.x < 0.0) pc = pc.rrbb;\n"; |
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
--- makefile 2012-05-31 16:13:38.000000000 +0800 | |
+++ makefile.new 2012-05-31 16:15:44.000000000 +0800 | |
@@ -7,7 +7,7 @@ | |
siftgpu_enable_opencl = 0 | |
#------------------------------------------------------------------------------------------------ | |
# enable CUDA-based SiftGPU? | |
-siftgpu_enable_cuda = 1 | |
+siftgpu_enable_cuda = 0 | |
CUDA_INSTALL_PATH = /usr/local/cuda | |
#change additional settings, like SM version here if it is not 1.0 (eg. -arch sm_13 for GTX280) |
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
desc "remotely console" | |
task :console, :roles => :app do | |
input = '' | |
run "cd #{current_path} && rails console #{ENV['RAILS_ENV']}" do |channel, stream, data| | |
next if data.chomp == input.chomp || data.chomp == '' | |
print data | |
channel.send_data(input = $stdin.gets) if data =~ /:\d{3}:\d+(\*|>)/ | |
end | |
end |
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
['teaserwrapper', 'meteroverlay'].forEach(function (id) { | |
document.getElementById(id).style.display = 'none' } | |
); | |
document.body.style.overflow = ''; |
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 | |
# | |
# Iconizer shell script by Steve Richey ([email protected]) | |
# | |
# This is a simple tool to generate all necessary app icon sizes and the JSON file for an *EXISTING* Xcode project from one file. | |
# To use: specify the path to your vector graphic (PDF format) and the path to your Xcode folder containing Images.xcassets | |
# Example: sh iconizer.sh MyVectorGraphic.pdf MyXcodeProject | |
# | |
# Requires ImageMagick: http://www.imagemagick.org/ |
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
<?php | |
namespace app; | |
use Illuminate\Database\Eloquent\Model; | |
class CamelCasedModel extends Model | |
{ | |
public function getForeignKey() |
OlderNewer