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
void A() | |
{ | |
B(); | |
C(); | |
} | |
void B() | |
{ | |
int *v = malloc(sizeof(int)); | |
if(NULL == v) { |
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
.globl _EaglePlan_getNextPageNumber | |
.align 4, 0x90 | |
_EaglePlan_getNextPageNumber: ## @EaglePlan_getNextPageNumber | |
.cfi_startproc | |
Lfunc_begin14: | |
.loc 1 263 0 ## /Users/elliot/Xcode/eagle/eagle/eagle/EaglePlan.c:263:0 | |
## BB#0: | |
pushq %rbp | |
Ltmp214: | |
.cfi_def_cfa_offset 16 |
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
<?xml version="1.0"?> | |
<testsuites errors="0" failures="0" tests="392" name=""> | |
<testsuite errors="0" failures="0" tests="116" name="MainSuite"> | |
<testcase classname="" name="EagleObject_equals" time="0"/> | |
<testcase classname="" name="EagleLogger_GetLogFile" time="0"/> | |
<testcase classname="" name="EagleUtils_CompareWithoutCase" time="0"/> | |
<testcase classname="" name="EagleLinkedList_isEmpty" time="0"/> | |
<testcase classname="" name="EagleLinkedList_begin" time="0"/> | |
<testcase classname="" name="EagleLinkedList_end" time="0"/> | |
<testcase classname="" name="EagleLinkedListItem_Delete" time="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
" INSTALL (run this): | |
" cd ~ && curl -s https://gist.github.com/elliotchance/5801752/download | tar -x --strip-components=1 && cat .vimrc | grep '^\"% ' .vimrc | cut -c 3- | bash | |
" Lines started with % will be executed on install: | |
" | |
"% # install ctags-exuberant | |
"% if [ ! -f /usr/local/bin/ctags ]; then | |
"% wget http://prdownloads.sourceforge.net/ctags/ctags-5.8.tar.gz | |
"% tar -zxf ctags-5.8.tar.gz | |
"% cd ctags-5.8 && ./configure && make && sudo make install && sudo rm -f /usr/bin/ctags && sudo ln -s /usr/local/bin/ctags /usr/bin/ctags && cd .. |
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
public boolean compareLists(int[] list1, int[] list2, int allowedFailures = 1) | |
{ | |
if(list1.length != list2.length) { | |
return false; | |
} | |
int len = list1.length; | |
boolean[] checklist = new boolean[len]; | |
int allowedFailures = 1, encounteredFailures = 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
[root@ip-172-32-11-33 DEV htdocs]$ time ./vendor/squizlabs/php_codesniffer/scripts/phpcs -p -n --standard=CodeStandard.xml lib --report=gitblame -s | |
E.EEE......E......E...EEE.E...E.EE.E.....E..EEEEE..E........ 60 / 181 | |
.........E..EEEEE..E.EE..E.E....E.....E.........EEEEEEEEE... 120 / 181 | |
...........E.E.E.....E......................E.E..E...E.E...E 180 / 181 | |
E | |
PHP CODE SNIFFER GIT BLAME SUMMARY | |
-------------------------------------------------------------------------------- | |
AUTHOR SOURCE (Author %) (Overall %) COUNT |
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" | |
using namespace testing; | |
class ConfigurableEventListener : public TestEventListener | |
{ | |
protected: | |
TestEventListener* eventListener; | |
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
Produces an output like (will use the full available screen width): | |
............................................................ 60 / 1136 ( 5%) | |
............................................................ 120 / 1136 ( 10%) | |
...........F................................................ 180 / 1136 ( 15%) | |
............................................................ 240 / 1136 ( 21%) | |
............................................................ 300 / 1136 ( 26%) | |
............................................................ 360 / 1136 ( 31%) | |
............................................................ 420 / 1136 ( 36%) | |
............................................................ 480 / 1136 ( 42%) |
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
Time shows total time for 1024 iterations | |
Size | in_array | array_key_exists | |
1 | 0.000 | 0.000 | |
2 | 0.001 | 0.000 | |
4 | 0.001 | 0.000 | |
8 | 0.001 | 0.001 | |
16 | 0.001 | 0.000 | |
32 | 0.001 | 0.000 | |
64 | 0.001 | 0.000 |
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
#import <Foundation/Foundation.h> | |
@interface NSString (Split) | |
- (NSArray *)componentsSeparatedByString:(NSString *)separator | |
limit:(NSUInteger)limit; | |
@end |
OlderNewer