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
#!/bin/bash | |
# https://stackoverflow.com/questions/37242217/access-docker-container-from-host-using-containers-name | |
docker run --hostname dns.mageddo --name dns-proxy-server -p 5380:5380 \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
-v /etc/resolv.conf:/etc/resolv.conf \ | |
defreitas/dns-proxy-server |
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 drecom/centos-ruby:2.2.3 | |
MAINTAINER Rainer Schuster <[email protected]> | |
ENV TZ Europe/Berlin | |
ENV LANG en_US.UTF-8 | |
ENV APP_USER myapp | |
ENV APP_GROUP web | |
ENV HOME_DIR /home/${APP_USER} |
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
// Win32 : Minimal VST 2.x Synth host in C++11. | |
// | |
// This is a simplified version of the following project by hotwatermorning : | |
// A sample VST Host Application for C++ Advent Calendar 2013 5th day. | |
// https://github.com/hotwatermorning/VstHostDemo | |
// | |
// Usage : | |
// 1. Compile & Run this program. | |
// 2. Select your VST Synth DLL. | |
// 3. Press QWERTY, ZXCV, etc. |
Loading
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
import React from 'react'; | |
import { FormattedMessage } from 'react-intl'; | |
import { Field, reduxForm } from 'redux-form/immutable'; | |
import muiThemeable from 'material-ui/styles/muiThemeable'; | |
import './form'; | |
import validatejs from 'validate.js'; | |
const ExampleForm = ({onSubmit, ...props}) => ( | |
<form onSubmit={onSubmit}> |
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): |
Loading
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
(ns hello-debug) | |
(require '[ipdb :as pdb]) | |
(pdb/set_trace) | |
(def greet "hello world!") | |
(println greet) |
NewerOlder