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
LAUNCH_DIR=$PWD | |
cd ../../ | |
PROJECT_ROOT=$PWD | |
mkdir deployment | |
cd deployment | |
DEPLOYMENT_DIR=$PWD | |
cd "$LAUNCH_DIR" |
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
-(void)testStructAndBlocks | |
{ | |
SDRefreshTraits traits_ = { YES, NO }; | |
__block BOOL forceRefresh_ = NO; | |
TestAsyncRequestBlock block_ = ^( JFFSimpleBlock finishBlock_ ) | |
{ | |
forceRefresh_ = traits_.forceRefresh; | |
finishBlock_(); |
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
static BOOL forceRefresh_ = NO; | |
-(TestAsyncRequestBlock)structBlockBuilder | |
{ | |
SDRefreshTraits traits_ = { YES, NO }; | |
TestAsyncRequestBlock block_ = ^( JFFSimpleBlock finishBlock_ ) | |
{ | |
forceRefresh_ = traits_.forceRefresh; | |
finishBlock_(); |
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
-(void)testStructChangeAndBlocks | |
{ | |
SDRefreshTraits traits_ = { YES, NO }; | |
__block BOOL forceRefresh_ = NO; | |
TestAsyncRequestBlock block_ = ^( JFFSimpleBlock finishBlock_ ) | |
{ | |
forceRefresh_ = traits_.forceRefresh; | |
finishBlock_(); |
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
SELECT * FROM | |
( | |
SELECT * FROM | |
( | |
SELECT | |
CASE | |
WHEN (0 = AllFacetValue) THEN 0 | |
ELSE ( round( ( AverageRelevence - ItemRelevance ) * ItemVisits, 2 ) * 100.0 / AllFacetValue ) | |
END AS Particle, |
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
describe "Fail test" do | |
it "always fails" do | |
(1).should.equal 2 | |
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
(in /Users/dodikk/projects/ruby/RubyMotionTestApp-master) | |
Build ./build/iPhoneSimulator-6.0-Development | |
Compile ./spec/fail_test.rb | |
Link ./build/iPhoneSimulator-6.0-Development/HelloMotion_spec.app/HelloMotion | |
Create ./build/iPhoneSimulator-6.0-Development/HelloMotion_spec.dSYM | |
Simulate ./build/iPhoneSimulator-6.0-Development/HelloMotion_spec.app | |
2013-01-08 23:44:15.201 HelloMotion[2228:11303] Application windows are expected to have a root view controller at the end of application launch | |
HelloMotion(2228,0xacd202c0) malloc: *** error for object 0x8a9a560: pointer being freed was not allocated | |
*** set a breakpoint in malloc_error_break to debug | |
dodikk-macbook:spec dodikk$ cat result.txt |
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
-(void)clientCode | |
{ | |
JFFAsyncOperation dataLoader_ = [ builder buildDataLoaderWithAuthentication ]; | |
dataLoader_( nil, nil, ^void( id result, NSError* error ) | |
{ | |
// your data is ready. Show it to the user | |
} ); | |
} |
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
error_count=0 | |
## | |
function verify_clang_analysis_at_path() | |
{ | |
local analysis_path=$1 | |
local plist_tool=/usr/libexec/PlistBuddy | |
local diagnostics=$($plist_tool -c "print diagnostics" $analysis_path) |
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
function createScriptElementWithWebPlugins() { | |
var headID = document.getElementsByTagName("HEAD")[0]; | |
var newScript = document.createElement('script'); | |
newScript.type = 'text/javascript'; | |
newScript.onload=function(){ | |
//scmobile.device.name = 'Igor's iPhone'; // JS interpreter error | |
scmobile.device.name = unescape( 'Igor%27s%20iPhone' ); | |
alert( scmobile.device.name ); // Shows |Igor's iPhone| |
OlderNewer