Skip to content

Instantly share code, notes, and snippets.

Arne Wieding awdng

Block or report user

Report or block awdng

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View buildings.json
This file has been truncated, but you can view the full file.
"height": "44",
"polygon": [
awdng /
Last active Oct 26, 2017
The goal is to walk through all dirs and subdirs from a given path (as parameter) and show all subdirs and files recursively. For all files compute an md5 hash and show it. Catch exceptions.
import sys, os
import hashlib
color_white = '\033[0;0m'
color_green = '\033[0;32m'
base_path = os.path.dirname(os.path.realpath(sys.argv[0]))
cli_path = sys.argv[1]
def dirwalk(base, relpath):
View hash
View SampleController.js
angular.module('company').controller('CompanyProfileCtrl', function($scope, $routeParams, Restangular, ngTableParams, $filter, $location, $q, $upload, formBuilderApi) {
var app = angular.module('app');
var init = function() {'companies/' + global_company_id).get().then(function (company) {
// bind the company model data to the form
awdng / es.json
Created Dec 15, 2015
elasticsearch query built by elastica 2.x
View es.json
"query": {
"function_score": {
"query": {
"filtered": {
"query": {
"bool": {
"minimum_number_should_match": 0
View gist:7680431
# CMF/CMS related stuff
type: doctrinedbal
workspace: default
auto_mapping: true
View gist:6783949
"pagination_data": {
"last": 2,
"current": 1,
"numItemsPerPage": 10,
"first": 1,
"pageCount": 2,
"totalCount": 18,
"pageRange": 2,
"startPage": 1,
View gist:6725321
/* In-Tab sidebar */
.tab_sidebar{/*margin-left:-100%*/float:left;position:relative; background-color: #ffffff;width: 246px; margin-left: 1px;}
.tab_sidebar_sep{background:#efefef;clear:both;float:none;height:5px;border-color:#ccc;border-style:solid;border-width:1px 0;margin:14px 0}
.on_switch {background: transparent;}
.off_switch {background: transparent;}
.tab_sidebar_inner {margin-left: 15px;margin-top: 50px;}
.tab_sidebar_inner form{padding:14px 0 9px 15px}
.tab_sidebar_inner form input{margin:0}
View gist:6606638
Create new concept / template:
- The name I enter here is the same name/title as I have to enter again in the concept edit-mode page - can this be prefilled then?
View gist:6586497
->add('subject', 'text')
->add('message', 'textarea')
// ist das gleiche wie
$builder->add('subject', 'text')->add('message', 'textarea');
// oder
$builder->add('subject', 'text');
You can’t perform that action at this time.