Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 behave import * | |
from os.path import join | |
from subprocess import Popen | |
import os | |
@when(u'the requirements are generated for documentation') | |
def step_impl(context): | |
cmd = " ".join(["my_fictional_command", | |
"input1", | |
context.requirements_filename, |
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: Tracing | |
Scenario Outline: Generating a two column CSV | |
When I execute: my_fictional_command input1.xml input2.xml --header=COL1;COL2 | |
Then the generated csv with <COL1> should map to <COL2> | |
Examples: COL1 maps to COL2 | |
| REQ_ID| RELATED_ID | | |
| COL1| COL2 | | |
| A | 1 | |
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 IPython import display | |
from IPython.core.magic import register_cell_magic, Magics, magics_class, cell_magic | |
import jinja2 | |
@magics_class | |
class JinjaMagics(Magics): | |
'''Magics class containing the jinja2 magic and state''' | |
def __init__(self, shell): |
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
(ns hello-debug) | |
(require '[ipdb :as pdb]) | |
(pdb/set_trace) | |
(def greet "hello world!") | |
(println greet) |
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
;reference wpf assemblys | |
(import '(System.Reflection Assembly)) | |
(Assembly/LoadWithPartialName "PresentationFramework") | |
(Assembly/LoadWithPartialName "PresentationCore") | |
(Assembly/LoadWithPartialName "WindowsBase") | |
(Assembly/LoadWithPartialName "System.Xml") | |
(ns wpf | |
(:import (System.Windows Application Window)) | |
(:import (System.Windows.Threading Dispatcher DispatcherPriority)) |
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
# Projekt Structure | |
- project_root | |
| | |
+ doc/ | |
+ src/ | |
+ tests/ | |
+ run_tests.bat | |
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
import inspect | |
import logging | |
def interrogate(item): | |
"""Print useful information about item.""" | |
if hasattr(item, '__name__'): | |
logging.debug( "NAME: " + item.__name__) | |
if hasattr(item, '__class__'): | |
logging.debug("CLASS: " + item.__class__.__name__) | |
logging.debug("ID: {0}".format(id(item))) |
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
# $0 = date of format 201203220650 | |
# $1 = source | |
# $2 = target | |
touch -t $0 .probe | |
find $1 -type f -newer .probe -exec cp {} $2 \; |
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
// Script from Tomas Petricek | |
// http://stackoverflow.com/questions/4174852/how-to-force-f-interactive-to-reference-gtk-by-default | |
[<AutoOpen>] | |
module GtkSharp | |
// Load some common Gtk# assemblies (from /usr/lib/mono/2.0/../gtk-sharp-2.0) | |
#r "../gtk-sharp-2.0/gtk-sharp.dll" | |
#r "../gtk-sharp-2.0/gdk-sharp.dll" | |
#r "../gtk-sharp-2.0/glib-sharp.dll" |