Skip to content

Instantly share code, notes, and snippets.

View tobiasoberrauch's full-sized avatar
😀
Working

Tobias Oberrauch tobiasoberrauch

😀
Working
View GitHub Profile
# Technology
Angular
# Create new app
ng new frontend --directory=./frontend --interactive=false --routing=true --style=scss --packageManager=yarn
# Start app
yarn start
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Arkans-MacBook-Pro:word-vector-service tobiasoberrauch$ now
> Deploying ~/Repositories/tobiasoberrauch/word-vector-service under tobias.oberrauch@gmx.de
> https://word-vector-service-osrvnzchvh.now.sh [in clipboard] (bru1) [5s]
> Building…
> ▲ docker build
Sending build context to Docker daemon 13.31 kBkB
> Step 1/14 : FROM python:3.6-jessie
> ---> 11aa3556fb90
> Step 2/14 : MAINTAINER Tobias Oberrauch "tobias.oberrauch@tob.ag"
> ---> Using cache
@tobiasoberrauch
tobiasoberrauch / ddd.md
Created July 23, 2016 02:04 — forked from zsup/ddd.md
Documentation-Driven Development (DDD)

Documentation-Driven Development

The philosophy behind Documentation-Driven Development is a simple: from the perspective of a user, if a feature is not documented, then it doesn't exist, and if a feature is documented incorrectly, then it's broken.

  • Document the feature first. Figure out how you're going to describe the feature to users; if it's not documented, it doesn't exist. Documentation is the best way to define a feature in a user's eyes.
  • Whenever possible, documentation should be reviewed by users (community or Spark Elite) before any development begins.
  • Once documentation has been written, development should commence, and test-driven development is preferred.
  • Unit tests should be written that test the features as described by the documentation. If the functionality ever comes out of alignment with the documentation, tests should fail.
  • When a feature is being modified, it should be modified documentation-first.
  • When documentation is modified, so should be the tests.
@tobiasoberrauch
tobiasoberrauch / xdebug.php.ini
Created June 23, 2016 20:47 — forked from larsvegas/xdebug.php.ini
xdebug php.ini default config
xdebug.auto_trace=1
;;Type: boolean, Default value: 0
;;When this setting is set to on, the tracing of function calls will be enabled just before the script is run. This makes it possible to trace code in the auto_prepend_file.
xdebug.cli_color=1
;;Type: integer, Default value: 0, Introduced in Xdebug 2.2
;;If this setting is 1, Xdebug will color var_dumps and stack traces output when in CLI mode and when the output is a tty. On Windows, the ANSICON tool needs to be installed.
;;If the setting is 2, then Xdebug will always color var_dumps and stack trace, no matter whether it's connected to a tty or whether ANSICON is installed. In this case, you might end up seeing escape codes.
;xdebug.collect_assignments=0
0 info it worked if it ends with ok
1 verbose cli [ 'node', '/usr/local/bin/npm', 'i' ]
2 info using npm@2.7.4
3 info using node@v0.12.2
4 verbose install where, deps [ '/Users/tobiasoberrauch/www/tobiasoberrauch/Ender',
4 verbose install [ 'archy',
4 verbose install 'async',
4 verbose install 'errno',
4 verbose install 'glob',
4 verbose install 'mkdirp',
@tobiasoberrauch
tobiasoberrauch / LICENSE.txt
Last active August 29, 2015 14:26 — forked from eliperelman/LICENSE.txt
140byt.es polyfill for Array.filter
DO WHAT THE **** YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Eli Perelman http://eliperelman.com
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE **** YOU WANT TO PUBLIC LICENSE
// Generated on <%= (new Date).toISOString().split('T')[0] %> using <%= pkg.name %> <%= pkg.version %>
'use strict';
var moment = require('moment');
var LIVERELOAD_PORT = 35729;
var lrSnippet = require('connect-livereload')({port: LIVERELOAD_PORT});
var mountFolder = function (connect, dir) {
return connect.static(require('path').resolve(dir));
};
function namespace (ns) {
var parts = ns.split('.'),
root = window || this;
return (function walk (obj) {
if (!root[obj]) { root[obj] = {}; }
root = root[obj];
if (parts.length) { walk(parts.shift()); }
return root;
}(parts.shift()));
@tobiasoberrauch
tobiasoberrauch / gist:9271364
Created February 28, 2014 13:45
create-zip.php
<?php
function createZip($source, $destination)
{
if (!extension_loaded('zip') || !file_exists($source)) {
return false;
}
$zip = new ZipArchive();
if (!$zip->open($destination, ZIPARCHIVE::CREATE)) {
return false;