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
var extensions = { | |
low_hp: 9, | |
check_actions: { | |
'enemy': 'attack', | |
'diamond': 'collect' | |
}, | |
check_and_act: function (direction) { | |
var status = this.check(direction); | |
if(this.check_actions.hasOwnProperty(status)) { | |
var method = this.check_actions[status]; |
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
@implementation PXScrubberView | |
+ (Class)layerClass | |
{ | |
return [PXScrubberLayer class]; | |
} | |
- (void)setFillHeight:(float)fillHeight animated:(BOOL)animated | |
{ | |
if (animated) { |
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
Feature: Authentication | |
As a user | |
I can use my credentials | |
So I can login to the app | |
And be remembered when the app launches | |
And log out of the app | |
Scenario: Email and password submit using keyboard | |
Given the app is clean | |
And I am on the Login Screen |
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
Given /^I am on the Login Screen$/ do | |
# login becomes visible | |
wait_for_elements_exist(["view marked:'login view'"]) | |
# fields fade in | |
wait_for_elements_exist(["textField marked:'username field'"]) | |
check_element_exists("textField marked:'password field'") | |
# TODO: add checks to make sure loading indicator and error box aren't visible | |
sleep(STEP_PAUSE) | |
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
//------------------------------ | |
// The method we're documenting: | |
//------------------------------ | |
- (BOOL)maybeDoWork:(dispatch_block_t)something; | |
//------------------------------------------------------------------------------------------- | |
/** | |
* @brief You just called me, and this is crazy. But here's a `BOOL`, I did work maybe? |
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
" Automatic commands | |
if has("autocmd") | |
" Enable file type detection | |
filetype on | |
" Recognize the following as Ruby files | |
autocmd BufNewFile,BufRead *.podspec set filetype=ruby syntax=ruby | |
autocmd BufNewFile,BufRead Podfile set filetype=ruby syntax=ruby | |
endif |
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
Show hidden characters
{ | |
"extensions": | |
[ | |
"Podfile", | |
"podspec" | |
] | |
} | |
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
git filter-branch --tree-filter \ | |
'find . \ | |
\( -name ".gitignore" -o -path "./.git*" \) -prune -o \ | |
\( -type f -o -type l \) -exec echo \"{}\" ";" \ | |
| grep -vE -f ~/file_patterns \ | |
| xargs rm \ | |
&& find . -empty -delete' \ | |
--prune-empty HEAD | |
# 1: rewrite git history by running the following command for each commit |
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
find . \( -name "*.h" -o -name "*.m" \) -not -path ./Project-X/Tests/\* -exec git mv {} Classes/ \; |
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
find . -empty -not -path "./.git*" -delete |
OlderNewer