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 <nrf.h> | |
| #include <cstdint> | |
| #include <type_traits> | |
| #include <utility> | |
| #include "bootloader/services.hpp" | |
| /* we need a large constant data section to simulate a real firmware size-wise */ | |
| /* The data should be random enough that it can not be compressed to easy and | |
| care should be taken, that it doesn't get optimized away */ |
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
| set(ANT_LIB_SOURCE "${EXTERNAL_LIBRARIES_SOURCE_DIR}/ANT_Library_MacOSX_Package/ANT_LIB/") | |
| set(DISABLES_WARNINGS "-Wno-comment -Wno-unused-function -Wno-unused-const-variable -Wno-reorder -Wno-null-conversion") | |
| set(DISABLES_WARNINGS "${DISABLES_WARNINGS} -Wno-implicit-function-declaration -Wno-int-to-void-pointer-cast -Wno-sometimes-uninitialized") | |
| set(DISABLES_WARNINGS "${DISABLES_WARNINGS} -Wno-unused-private-field -Wno-non-literal-null-conversion -Wno-unsequenced -Wno-tautological-constant-out-of-range-compare") | |
| set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${DISABLES_WARNINGS}") | |
| set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${DISABLES_WARNINGS}") | |
| set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -framework IOKit -framework CoreFoundation") |
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
| #define BOOST_TEST_MAIN | |
| #include <boost/test/unit_test.hpp> | |
| #include <string> | |
| BOOST_AUTO_TEST_CASE( test_concatenation_of_strings ) | |
| { | |
| BOOST_CHECK_EQUAL( std::string( "abc" ) + std::string( "def" ), "abcdef" ); | |
| } |
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
| module JasminPhantomHelper | |
| def self.manifest_file_name | |
| @cached_name ||= if Pland::Application.config.assets.manifest | |
| path = File.join(cPland::Application.onfig.assets.manifest, "manifest.yml") | |
| else | |
| path = File.join(Rails.public_path, Pland::Application.config.assets.prefix, "manifest.yml") | |
| end | |
| @cached_name | |
| end |
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
| page = require('webpage').create(); | |
| page.viewportSize = { width: 1000, height: 700 }; | |
| phantom.viewportSize = { width: 1000, height: 700 }; | |
| page.open( "http://robitzki.de", function(status) { | |
| try { | |
| if ( status == "success" && page.injectJs( "jquery.min.js" ) ) | |
| { | |
| result = page.evaluate( function() { | |
| $('body').append('<div class="test_canvas"></div>') |
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
| var page = require('webpage').create(); | |
| page.viewportSize = { width: 480, height: 800 }; | |
| ( function() { | |
| var load = function( name ) { | |
| if ( !page.injectJs( name ) ) throw ( "error loading " + name ); | |
| } | |
| load( "/Users/todi/.rvm/gems/ruby-1.9.3-p327/gems/jasmine-core-1.2.0/lib/jasmine-core/jasmine.js" ); | |
| load( "/Users/todi/pland/lib/jasmine/console-runner.js" ); |