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 zrun() { | |
SPEC_FILE=$1 | |
SPEC_LOG=/tmp/rspec.log | |
if [ $SPEC_FILE ]; then | |
rspec $SPEC_FILE 2>&1 | tee $SPEC_LOG | |
else | |
cat $SPEC_LOG | grep "^rspec" | cut -d ' ' -f 2 | xargs rspec 2>&1 | tee $SPEC_LOG | |
fi | |
} |
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
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
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
pt-BR: | |
views: | |
admin: | |
home: | |
name: Home | |
pagination: | |
previous: "« Anterior" | |
next: "Próximo »" | |
truncate: "…" | |
misc: |
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
//deve ser inserido no metodo createStatechartModel da classe FactoryUtils | |
//path: org.yakindu.sct.ui.editor/src/org/yakindu/sct/ui/editor/factories/FactoryUtils.java | |
State myState = SGraphFactory.eINSTANCE.createState(); | |
myState.setName("Hudson"); | |
region.getVertices().add(myState); | |
Node myStateNode = ViewService.createNode( | |
getRegionCompartmentView(regionView), myState, | |
SemanticHints.STATE, preferencesHint); |
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
from elementtree import ElementTree as ET | |
from os.path import join, basename, dirname | |
from nltk.util import clean_html | |
from nltk.corpus.reader import PlaintextCorpusReader | |
import re | |
class EisParser(object): | |
def __init__(self, path): | |
self._name = basename(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
from elementtree import ElementTree as ET | |
class XmlnsParser(object): | |
def __init__(self, path): | |
self.path = path | |
def tags_and_texts(self): | |
self.tags_n_text = {} | |
file = open(self.path, 'r') |
NewerOlder